@hot-updater/react-native 0.35.4 → 0.35.5
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/hotupdater/BundleFileStorageService.kt +3 -1
- package/lib/commonjs/sdkVersion.js +1 -1
- package/lib/module/sdkVersion.js +1 -1
- package/lib/typescript/commonjs/sdkVersion.d.ts +1 -1
- package/lib/typescript/module/sdkVersion.d.ts +1 -1
- package/package.json +6 -6
- package/src/sdkVersion.ts +1 -1
|
@@ -429,7 +429,9 @@ class BundleFileStorageService(
|
|
|
429
429
|
if (!HashUtils.verifyHash(patchDownloadResult.file, patch.patchFileHash)) {
|
|
430
430
|
false
|
|
431
431
|
} else {
|
|
432
|
-
|
|
432
|
+
withContext(Dispatchers.IO) {
|
|
433
|
+
BsdiffPatch.apply(sourceFile, patchDownloadResult.file, targetFile)
|
|
434
|
+
}
|
|
433
435
|
HashUtils.verifyHash(targetFile, expectedHash).also { patched ->
|
|
434
436
|
if (patched) {
|
|
435
437
|
Log.d(
|
|
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HOT_UPDATER_SDK_VERSION = void 0;
|
|
7
|
-
const HOT_UPDATER_SDK_VERSION = exports.HOT_UPDATER_SDK_VERSION = "0.35.
|
|
7
|
+
const HOT_UPDATER_SDK_VERSION = exports.HOT_UPDATER_SDK_VERSION = "0.35.5";
|
|
8
8
|
//# sourceMappingURL=sdkVersion.js.map
|
package/lib/module/sdkVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const HOT_UPDATER_SDK_VERSION = "0.35.
|
|
1
|
+
export declare const HOT_UPDATER_SDK_VERSION = "0.35.5";
|
|
2
2
|
//# sourceMappingURL=sdkVersion.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const HOT_UPDATER_SDK_VERSION = "0.35.
|
|
1
|
+
export declare const HOT_UPDATER_SDK_VERSION = "0.35.5";
|
|
2
2
|
//# sourceMappingURL=sdkVersion.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/react-native",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.5",
|
|
4
4
|
"description": "React Native OTA solution for self-hosted",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -130,14 +130,14 @@
|
|
|
130
130
|
"react-native": "0.79.1",
|
|
131
131
|
"react-native-builder-bob": "0.41.0",
|
|
132
132
|
"typescript": "^6.0.2",
|
|
133
|
-
"hot-updater": "0.35.
|
|
133
|
+
"hot-updater": "0.35.5"
|
|
134
134
|
},
|
|
135
135
|
"dependencies": {
|
|
136
136
|
"use-sync-external-store": "1.5.0",
|
|
137
|
-
"@hot-updater/
|
|
138
|
-
"@hot-updater/
|
|
139
|
-
"@hot-updater/
|
|
140
|
-
"@hot-updater/
|
|
137
|
+
"@hot-updater/core": "0.35.5",
|
|
138
|
+
"@hot-updater/js": "0.35.5",
|
|
139
|
+
"@hot-updater/plugin-core": "0.35.5",
|
|
140
|
+
"@hot-updater/cli-tools": "0.35.5"
|
|
141
141
|
},
|
|
142
142
|
"scripts": {
|
|
143
143
|
"build": "node ./scripts/sync-sdk-version.mjs run -- bob build && tsc -p plugin/tsconfig.build.json",
|
package/src/sdkVersion.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const HOT_UPDATER_SDK_VERSION = "0.35.
|
|
1
|
+
export const HOT_UPDATER_SDK_VERSION = "0.35.5";
|