@breeztech/breez-sdk-spark-react-native 0.6.4-dev5 → 0.6.4-dev6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.6.4-dev5",
3
+ "version": "0.6.4-dev6",
4
4
  "description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -197,7 +197,7 @@
197
197
  "version": "0.49.0"
198
198
  },
199
199
  "checksums": {
200
- "android": "2c89ea9184b14313c3c3abf495fc16609e39db1f7311ef291d0180921af4a11c",
201
- "ios": "52174887ad7cbe1cb76b7d5bbc3ebf0db9f77b75208e2f61df7bde802e764a07"
200
+ "android": "7ca7604821bde3daa87aff071408b9ee8941e9b9a6fdd66c188dab6592aa8379",
201
+ "ios": "a8ff4b11866fdfc520655d7864d413070bb7e9038c5bc95085f1d369cc8db019"
202
202
  }
203
203
  }
@@ -0,0 +1,52 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ # Download prebuilt binary artifacts from the release
5
+ # Skip if running in Expo managed workflow (prebuild will handle it)
6
+
7
+ # Skip if artifacts already exist (they may have been downloaded by the Expo plugin)
8
+ if [ -d "android/src/main/jniLibs" ] && [ -d "build/RnBreezSdkSpark.xcframework" ]; then
9
+ exit 0
10
+ fi
11
+
12
+ # Check for explicit skip flag
13
+ if [ -n "$EXPO_PUBLIC_SKIP_POSTINSTALL" ]; then
14
+ exit 0
15
+ fi
16
+
17
+ REPO=https://github.com/breez/breez-sdk-spark-react-native
18
+ TAG=$(node -p "require('./package.json').version")
19
+ ANDROID_CHECKSUM=$(node -p "require('./package.json').checksums.android")
20
+ IOS_CHECKSUM=$(node -p "require('./package.json').checksums.ios")
21
+
22
+ # Download and verify Android
23
+ ANDROID_URL=$REPO/releases/download/$TAG/android-artifacts.zip
24
+ curl -L $ANDROID_URL --output android-artifacts.zip
25
+
26
+ ACTUAL_ANDROID=$(shasum -a 256 android-artifacts.zip | cut -d' ' -f1)
27
+ if [ "$ACTUAL_ANDROID" != "$ANDROID_CHECKSUM" ]; then
28
+ echo "Error: Android artifacts checksum mismatch"
29
+ echo "Expected: $ANDROID_CHECKSUM"
30
+ echo "Got: $ACTUAL_ANDROID"
31
+ rm -f android-artifacts.zip
32
+ exit 1
33
+ fi
34
+
35
+ unzip -o android-artifacts.zip
36
+ rm -rf android-artifacts.zip
37
+
38
+ # Download and verify iOS
39
+ IOS_URL=$REPO/releases/download/$TAG/ios-artifacts.zip
40
+ curl -L $IOS_URL --output ios-artifacts.zip
41
+
42
+ ACTUAL_IOS=$(shasum -a 256 ios-artifacts.zip | cut -d' ' -f1)
43
+ if [ "$ACTUAL_IOS" != "$IOS_CHECKSUM" ]; then
44
+ echo "Error: iOS artifacts checksum mismatch"
45
+ echo "Expected: $IOS_CHECKSUM"
46
+ echo "Got: $ACTUAL_IOS"
47
+ rm -f ios-artifacts.zip
48
+ exit 1
49
+ fi
50
+
51
+ unzip -o ios-artifacts.zip
52
+ rm -rf ios-artifacts.zip