@onekeyfe/react-native-bundle-update 3.0.23 → 3.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdate.kt
CHANGED
|
@@ -943,14 +943,23 @@ object BundleUpdateStoreAndroid {
|
|
|
943
943
|
return entryFile.absolutePath
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
+
// @JvmStatic exposes these entry-point getters as true JVM-static methods
|
|
947
|
+
// so SplitBundleLoaderModule (and any future external module) can call them
|
|
948
|
+
// via Class.getMethod(...).invoke(null, ctx) reflection. Without it, Kotlin
|
|
949
|
+
// `object` members are INSTANCE methods on the singleton, the null-receiver
|
|
950
|
+
// invoke throws NPE, and the OTA segment lookup silently falls back to APK
|
|
951
|
+
// builtin assets — see #SBL-OTA-FALLBACK regression report.
|
|
952
|
+
@JvmStatic
|
|
946
953
|
fun getCurrentBundleMainJSBundle(context: Context): String? {
|
|
947
954
|
return getCurrentBundleEntryPath(context, MAIN_JS_BUNDLE_FILE_NAME)
|
|
948
955
|
}
|
|
949
956
|
|
|
957
|
+
@JvmStatic
|
|
950
958
|
fun getCurrentBundleBackgroundJSBundle(context: Context): String? {
|
|
951
959
|
return getCurrentBundleEntryPath(context, BACKGROUND_BUNDLE_FILE_NAME)
|
|
952
960
|
}
|
|
953
961
|
|
|
962
|
+
@JvmStatic
|
|
954
963
|
fun getCurrentBundleCommonJSBundle(context: Context): String? {
|
|
955
964
|
return getCurrentBundleEntryPath(context, COMMON_BUNDLE_FILE_NAME)
|
|
956
965
|
}
|