@onekeyfe/react-native-background-thread 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.
@@ -248,7 +248,7 @@ static NSURL *resolveBundleSourceURL(NSString *jsBundleSourceNS)
248
248
  // Default: load common bundle (shared polyfills + modules).
249
249
  // Prefer OTA-installed common.bundle so a three-bundle OTA update is
250
250
  // actually picked up by the background runtime; fall back to the IPA
251
- // built-in common.jsbundle when no OTA is active. Without this, OTA
251
+ // built-in common.bundle when no OTA is active. Without this, OTA
252
252
  // would push a new common.bundle to disk but the background runtime
253
253
  // would keep loading the stale built-in copy and crash on
254
254
  // moduleId mismatch with the OTA-loaded background.bundle.
@@ -276,11 +276,11 @@ static NSURL *resolveBundleSourceURL(NSString *jsBundleSourceNS)
276
276
  return nil;
277
277
  }
278
278
 
279
- NSURL *commonURL = resolveMainBundleResourceURL(@"common.jsbundle");
279
+ NSURL *commonURL = resolveMainBundleResourceURL(@"common.bundle");
280
280
  if (commonURL) {
281
281
  return commonURL;
282
282
  }
283
- return [[NSBundle mainBundle] URLForResource:@"common" withExtension:@"jsbundle"];
283
+ return [[NSBundle mainBundle] URLForResource:@"common" withExtension:@"bundle"];
284
284
  }
285
285
 
286
286
  - (NSString *)resolveBackgroundEntryBundlePath
@@ -295,7 +295,7 @@ static NSURL *resolveBundleSourceURL(NSString *jsBundleSourceNS)
295
295
  // Mixed-state guard: bundleURL set _otaActiveAtBundleResolve when it
296
296
  // observed an active OTA main on its most recent invocation (whether or
297
297
  // not OTA common itself resolved). The IPA built-in background.bundle was
298
- // built against the IPA common.jsbundle, so its moduleIds won't line up
298
+ // built against the IPA common.bundle, so its moduleIds won't line up
299
299
  // with whatever OTA bundle the foreground runtime is using — IPA fallback
300
300
  // would crash on first require(). Return nil; hostDidStart consults the
301
301
  // same flag and aborts loudly instead of continuing with a broken runtime.
@@ -109,7 +109,7 @@ static NSString *const MODULE_DEBUG_URL = @"http://localhost:8082/apps/mobile/ba
109
109
 
110
110
  // Only set jsBundleSource for debug HTTP URLs or explicit OTA overrides.
111
111
  // Leaving the default release name ("background.bundle") unset lets the
112
- // delegate fall back to split-bundle mode (common.jsbundle + entry).
112
+ // delegate fall back to split-bundle mode (common.bundle + entry).
113
113
  if (![entryURL isEqualToString:@"background.bundle"]) {
114
114
  [self.reactNativeFactoryDelegate setJsBundleSource:std::string([entryURL UTF8String])];
115
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-background-thread",
3
- "version": "3.0.21",
3
+ "version": "3.0.23",
4
4
  "description": "react-native-background-thread",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -84,7 +84,7 @@
84
84
  "typescript": "^5.9.2"
85
85
  },
86
86
  "peerDependencies": {
87
- "@onekeyfe/react-native-bundle-update": ">=3.0.21",
87
+ "@onekeyfe/react-native-bundle-update": ">=3.0.23",
88
88
  "react": "*",
89
89
  "react-native": "*"
90
90
  },