react-native-update 10.40.0-beta.0 → 10.40.0-beta.2
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/ios/RCTPushy/RCTPushy.mm
CHANGED
|
@@ -680,6 +680,8 @@ RCT_EXPORT_METHOD(markSuccess:(RCTPromiseResolveBlock)resolve
|
|
|
680
680
|
PushyToStdString(hash)
|
|
681
681
|
);
|
|
682
682
|
PushyApplyStateToDefaults(defaults, next);
|
|
683
|
+
// Re-enable first-load consumption and rollback checks for the newly selected bundle.
|
|
684
|
+
ignoreRollback = false;
|
|
683
685
|
return YES;
|
|
684
686
|
}
|
|
685
687
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-update",
|
|
3
|
-
"version": "10.40.0-beta.
|
|
3
|
+
"version": "10.40.0-beta.2",
|
|
4
4
|
"description": "react-native hot update",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"scripts": {
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
"test:patch-core": "./scripts/test-patch-core.sh",
|
|
15
15
|
"build:harmony-har": "node scripts/build-harmony-har.js",
|
|
16
16
|
"build:so": "bun submodule && $ANDROID_HOME/ndk/28.2.13676358/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_APPLICATION_MK=android/jni/Application.mk NDK_LIBS_OUT=android/lib",
|
|
17
|
-
"build:ios-debug": "cd Example/
|
|
18
|
-
"build:ios-release": "cd Example/
|
|
19
|
-
"test:ios-debug": "cd Example/
|
|
20
|
-
"test:ios-release": "cd Example/
|
|
21
|
-
"build:android-debug": "cd Example/
|
|
22
|
-
"build:android-release": "cd Example/
|
|
23
|
-
"test:android-release": "cd Example/
|
|
24
|
-
"test:android-debug": "cd Example/
|
|
17
|
+
"build:ios-debug": "cd Example/e2etest && bun && detox build --configuration ios.sim.debug",
|
|
18
|
+
"build:ios-release": "cd Example/e2etest && bun && detox build --configuration ios.sim.release",
|
|
19
|
+
"test:ios-debug": "cd Example/e2etest && E2E_PLATFORM=ios detox test --configuration ios.sim.debug",
|
|
20
|
+
"test:ios-release": "cd Example/e2etest && E2E_PLATFORM=ios bun detox test --configuration ios.sim.release",
|
|
21
|
+
"build:android-debug": "cd Example/e2etest && bun && detox build --configuration android.emu.debug",
|
|
22
|
+
"build:android-release": "cd Example/e2etest && bun && detox build --configuration android.emu.release",
|
|
23
|
+
"test:android-release": "cd Example/e2etest && E2E_PLATFORM=android bun detox test --configuration android.emu.release --headless --record-logs all",
|
|
24
|
+
"test:android-debug": "cd Example/e2etest && E2E_PLATFORM=android detox test --configuration android.emu.debug --headless --record-logs all",
|
|
25
25
|
"e2e:ios": "bun build:ios-release && bun test:ios-release",
|
|
26
26
|
"e2e:android": "bun build:android-release && bun test:android-release",
|
|
27
27
|
"tests:emulator:prepare": "cd .github/workflows/scripts/functions && bun && bun build",
|
|
28
28
|
"tests:emulator:start-ci": "bun tests:emulator:prepare && cd ./.github/workflows/scripts && ./start-firebase-emulator.sh",
|
|
29
|
-
"tests:packager:jet-ci": "cd Example/
|
|
30
|
-
"tests:ios:pod:install": "cd Example/
|
|
29
|
+
"tests:packager:jet-ci": "cd Example/e2etest && cross-env TMPDIR=$HOME/.metro REACT_DEBUGGER=\"echo nope\" node_modules/.bin/react-native start --no-interactive",
|
|
30
|
+
"tests:ios:pod:install": "cd Example/e2etest && bun && bun pod-install"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
Binary file
|
package/src/utils.ts
CHANGED
|
@@ -74,7 +74,14 @@ const ping = isWeb
|
|
|
74
74
|
|
|
75
75
|
export function joinUrls(paths: string[], fileName?: string) {
|
|
76
76
|
if (fileName) {
|
|
77
|
-
return paths.map(path =>
|
|
77
|
+
return paths.map(path => {
|
|
78
|
+
const normalizedPath = path.replace(/\/+$/, '');
|
|
79
|
+
// Keep explicit http(s) URLs for local/self-hosted update sources.
|
|
80
|
+
const baseUrl = /^[a-z][a-z0-9+.-]*:\/\//i.test(normalizedPath)
|
|
81
|
+
? normalizedPath
|
|
82
|
+
: `https://${normalizedPath}`;
|
|
83
|
+
return `${baseUrl}/${fileName}`;
|
|
84
|
+
});
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
|