| 488 | if (context != nullptr) { |
| 489 | context->onCreate(); |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | void ValdiAndroid::NativeBridge::updateResource( // NOLINT |
| 494 | fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT |
| 495 | jlong runtimeHandle, |
| 496 | jbyteArray resource, |
| 497 | jstring bundleName, |
| 498 | jstring filePathWithinBundle) { |
| 499 | auto* runtime = getRuntime(runtimeHandle); |
| 500 | if (runtime == nullptr) { |
| 501 | return; |
| 502 | } |
| 503 | |
| 504 | auto javaEnv = ValdiAndroid::JavaEnv(); |
| 505 | auto bytes = ValdiAndroid::toByteArray(javaEnv, resource); |
| 506 | auto cppBundleName = ValdiAndroid::toInternedString(javaEnv, bundleName); |
| 507 | auto cppFilePathWithinBundle = ValdiAndroid::toInternedString(javaEnv, filePathWithinBundle); |
| 508 |
nothing calls this directly
no test coverage detected