209 {
210 static const JNINativeMethod methods[] = {
211 {
212 .name = "nativeInit",
213 .signature = "(Landroid/content/Context;[Ljava/lang/String;Ljava/"
214 "lang/String;Ljava/lang/String;Ljava/lang/String;J)V",
215 .fnPtr = reinterpret_cast<void*>(&Init),
216 },
217 {
218 .name = "nativePrefetchDefaultFontManager",
219 .signature = "()V",
221 },
222 };
223
224 jclass clazz =
env->FindClass(
"io/flutter/embedding/engine/FlutterJNI");
225
226 if (clazz == nullptr) {
227 return false;
228 }
229
230 return env->RegisterNatives(clazz, methods,
fml::size(methods)) == 0;
231}
static void PrefetchDefaultFontManager(JNIEnv *env, jclass jcaller)
constexpr std::size_t size(T(&array)[N])