| 154 | return g_MainActivityClass; |
| 155 | } |
| 156 | static jmethodID GetMainActivityStaticMethod(JNIEnv* env, jclass cls, const char* name, const char* signature) { |
| 157 | jmethodID mid = env->GetStaticMethodID(cls, name, signature); |
| 158 | if (!mid) { |
| 159 | if (env->ExceptionCheck()) { |
| 160 | env->ExceptionClear(); |
| 161 | } |
| 162 | Issue("MainActivity static method {}{} not found", name, signature); |
| 163 | } |
| 164 | return mid; |
| 165 | } |
| 166 | static char* CopyJString(JNIEnv* env, jstring jstr, const char* fallback) { |
| 167 | if (!jstr) { |
| 168 | size_t len = strlen(fallback); |
no test coverage detected