@breeztech/breez-sdk-spark-react-native 0.6.4-rc3 → 0.6.5

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.
@@ -1,14 +1,52 @@
1
1
  #!/bin/sh
2
+ set -e
3
+
2
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
+
3
17
  REPO=https://github.com/breez/breez-sdk-spark-react-native
4
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")
5
21
 
22
+ # Download and verify Android
6
23
  ANDROID_URL=$REPO/releases/download/$TAG/android-artifacts.zip
7
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
+
8
35
  unzip -o android-artifacts.zip
9
36
  rm -rf android-artifacts.zip
10
37
 
38
+ # Download and verify iOS
11
39
  IOS_URL=$REPO/releases/download/$TAG/ios-artifacts.zip
12
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
+
13
51
  unzip -o ios-artifacts.zip
14
52
  rm -rf ios-artifacts.zip
@@ -62,6 +62,9 @@ interface NativeModuleInterface {
62
62
  ptr: bigint,
63
63
  listener: bigint
64
64
  ): bigint;
65
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_cancel_leaf_optimization(
66
+ ptr: bigint
67
+ ): bigint;
65
68
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(
66
69
  ptr: bigint,
67
70
  req: Uint8Array
@@ -88,6 +91,10 @@ interface NativeModuleInterface {
88
91
  ptr: bigint,
89
92
  request: Uint8Array
90
93
  ): bigint;
94
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_leaf_optimization_progress(
95
+ ptr: bigint,
96
+ uniffi_out_err: UniffiRustCallStatus
97
+ ): Uint8Array;
91
98
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(
92
99
  ptr: bigint
93
100
  ): bigint;
@@ -167,6 +174,10 @@ interface NativeModuleInterface {
167
174
  ptr: bigint,
168
175
  request: Uint8Array
169
176
  ): bigint;
177
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
178
+ ptr: bigint,
179
+ uniffi_out_err: UniffiRustCallStatus
180
+ ): void;
170
181
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
171
182
  ptr: bigint,
172
183
  request: Uint8Array
@@ -589,6 +600,7 @@ interface NativeModuleInterface {
589
600
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction(): number;
590
601
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees(): number;
591
602
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener(): number;
603
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization(): number;
592
604
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available(): number;
593
605
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(): number;
594
606
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit(): number;
@@ -596,6 +608,7 @@ interface NativeModuleInterface {
596
608
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address(): number;
597
609
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect(): number;
598
610
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info(): number;
611
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress(): number;
599
612
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address(): number;
600
613
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment(): number;
601
614
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer(): number;
@@ -617,6 +630,7 @@ interface NativeModuleInterface {
617
630
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(): number;
618
631
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(): number;
619
632
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(): number;
633
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization(): number;
620
634
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
621
635
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings(): number;
622
636
  ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies(): number;