@breeztech/breez-sdk-spark-react-native 0.6.4-dev5 → 0.6.4-dev7
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 +3 -3
- package/scripts/postinstall.sh +52 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeztech/breez-sdk-spark-react-native",
|
|
3
|
-
"version": "0.6.4-
|
|
3
|
+
"version": "0.6.4-dev7",
|
|
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": "
|
|
201
|
-
"ios": "
|
|
200
|
+
"android": "eb85f1262481cada9a19594394972ec004d3972992dafd2bb467dc92e0636b17",
|
|
201
|
+
"ios": "1be93b09c01f9dae8256afb0aeb3898debaab94f73e86abaf74f70e42e8e8563"
|
|
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
|