@onekeyfe/react-native-bundle-update 1.1.45 → 1.1.47
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
|
@@ -282,10 +282,10 @@ object BundleUpdateStoreAndroid {
|
|
|
282
282
|
val currentAppVersion = getAppVersion(context) ?: return
|
|
283
283
|
if (taskObj.optString("scheduledEnvAppVersion") != currentAppVersion) return
|
|
284
284
|
|
|
285
|
-
val
|
|
285
|
+
val scheduledBuildNumber = taskObj.optString("scheduledEnvBuildNumber", "")
|
|
286
286
|
val currentBuildNumber = getBuildNumber(context)
|
|
287
|
-
if (
|
|
288
|
-
OneKeyLog.info("BundleUpdate", "processPreLaunchPendingTask: buildNumber changed from $
|
|
287
|
+
if (scheduledBuildNumber.isNotEmpty() && currentBuildNumber.isNotEmpty() && scheduledBuildNumber != currentBuildNumber) {
|
|
288
|
+
OneKeyLog.info("BundleUpdate", "processPreLaunchPendingTask: buildNumber changed from $scheduledBuildNumber to $currentBuildNumber, skipping stale task")
|
|
289
289
|
return
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -240,10 +240,10 @@ public class BundleUpdateStore: NSObject {
|
|
|
240
240
|
let currentAppVersion = getCurrentNativeVersion()
|
|
241
241
|
guard taskDict["scheduledEnvAppVersion"] as? String == currentAppVersion else { return }
|
|
242
242
|
|
|
243
|
-
let
|
|
243
|
+
let scheduledBuildNumber = taskDict["scheduledEnvBuildNumber"] as? String ?? ""
|
|
244
244
|
let currentBuildNumber = getCurrentNativeBuildNumber()
|
|
245
|
-
if !
|
|
246
|
-
OneKeyLog.info("BundleUpdate", "processPreLaunchPendingTask: buildNumber changed from \(
|
|
245
|
+
if !scheduledBuildNumber.isEmpty && !currentBuildNumber.isEmpty && scheduledBuildNumber != currentBuildNumber {
|
|
246
|
+
OneKeyLog.info("BundleUpdate", "processPreLaunchPendingTask: buildNumber changed from \(scheduledBuildNumber) to \(currentBuildNumber), skipping stale task")
|
|
247
247
|
return
|
|
248
248
|
}
|
|
249
249
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-bundle-update",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.47",
|
|
4
4
|
"description": "react-native-bundle-update",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"nitrogen": "0.31.10",
|
|
81
81
|
"prettier": "^2.8.8",
|
|
82
82
|
"react": "19.2.0",
|
|
83
|
-
"react-native": "0.83.0",
|
|
83
|
+
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
|
|
84
84
|
"react-native-builder-bob": "^0.40.13",
|
|
85
85
|
"react-native-nitro-modules": "0.33.2",
|
|
86
86
|
"release-it": "^19.0.4",
|