@onekeyfe/react-native-bundle-update 3.0.21 → 3.0.23
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
|
@@ -990,11 +990,12 @@ object BundleUpdateStoreAndroid {
|
|
|
990
990
|
}
|
|
991
991
|
|
|
992
992
|
/**
|
|
993
|
-
* Walks bundleDir/web-embed
|
|
994
|
-
* the metadata entry (key is the bundle-relative
|
|
995
|
-
* files on disk that aren't listed in metadata, and
|
|
996
|
-
* whose backing file is missing. Returns true when
|
|
997
|
-
* from both disk and metadata (bundles without
|
|
993
|
+
* Walks every file under bundleDir/web-embed/ recursively and verifies
|
|
994
|
+
* each file's sha256 against the metadata entry (key is the bundle-relative
|
|
995
|
+
* path). Also rejects files on disk that aren't listed in metadata, and
|
|
996
|
+
* metadata entries whose backing file is missing. Returns true when
|
|
997
|
+
* web-embed is absent from both disk and metadata (bundles without
|
|
998
|
+
* web-embed).
|
|
998
999
|
*/
|
|
999
1000
|
fun validateWebEmbedSha256(bundleDir: String, metadata: Map<String, String>): Boolean {
|
|
1000
1001
|
val webEmbedRoot = File(bundleDir, "web-embed")
|