react-native-update 10.39.0-beta.3 → 10.39.1

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.
@@ -162,11 +162,6 @@ android {
162
162
  resValue("string", "pushy_build_time", "0")
163
163
  }
164
164
  }
165
-
166
- packagingOptions {
167
- exclude "**/libc++_shared.so"
168
- }
169
-
170
165
  lintOptions {
171
166
  abortOnError false
172
167
  }
@@ -7,4 +7,4 @@ APP_CPPFLAGS += -std=c++17 -Oz -fno-exceptions -fno-rtti -fno-unwind-tables -fno
7
7
  APP_LDFLAGS += -Wl,--gc-sections -Wl,--exclude-libs,ALL
8
8
  APP_BUILD_SCRIPT := Android.mk
9
9
  APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
10
- APP_STL := c++_shared
10
+ APP_STL := c++_static
Binary file
Binary file
@@ -11,19 +11,11 @@ final class NativeUpdateCore {
11
11
  return;
12
12
  }
13
13
 
14
- try {
15
- System.loadLibrary("c++_shared");
16
- } catch (UnsatisfiedLinkError ignored) {
17
- // Fall back to the transitive dependency load path when the host app already
18
- // packages libc++_shared.so but the linker has not loaded it yet.
19
- }
20
-
21
14
  try {
22
15
  System.loadLibrary("rnupdate");
23
16
  } catch (UnsatisfiedLinkError error) {
24
17
  UnsatisfiedLinkError wrapped = new UnsatisfiedLinkError(
25
- "Failed to load rnupdate. Ensure the host app packages libc++_shared.so "
26
- + "when using the shared C++ runtime. Original error: "
18
+ "Failed to load rnupdate native library. Original error: "
27
19
  + error.getMessage());
28
20
  wrapped.initCause(error);
29
21
  throw wrapped;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.39.0-beta.3",
3
+ "version": "10.39.1",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "test": "bun test src/__tests__",
14
14
  "test:patch-core": "./scripts/test-patch-core.sh",
15
15
  "build:harmony-har": "node scripts/build-harmony-har.js",
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 && ./scripts/prune-host-stl.sh android/lib",
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
17
  "build:ios-debug": "cd Example/testHotUpdate && bun && detox build --configuration ios.sim.debug",
18
18
  "build:ios-release": "cd Example/testHotUpdate && bun && detox build --configuration ios.sim.release",
19
19
  "test:ios-debug": "cd Example/testHotUpdate && E2E_PLATFORM=ios detox test --configuration ios.sim.debug",
Binary file
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
- set -eu
3
-
4
- TARGET_DIR="${1:-android/lib}"
5
-
6
- find "$TARGET_DIR" -type f -name 'libc++_shared.so' -delete