Skip to content

Commit 8cf8c59

Browse files
authored
212 consider migrating to bdk rn 10 (#228)
* chore: update bdk-rn dependency to version 1.0.0 and refactor related code * chore: update dependencies in pnpm-lock.yaml and add patch for uniffi-bindgen-react-native
1 parent 16f08b8 commit 8cf8c59

36 files changed

Lines changed: 4078 additions & 2323 deletions

ios/Podfile.lock

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
PODS:
2-
- bdk-rn (2.3.1):
3-
- React
2+
- BdkRn (1.0.0):
3+
- DoubleConversion
4+
- glog
5+
- hermes-engine
6+
- RCT-Folly (= 2024.11.18.00)
7+
- RCTRequired
8+
- RCTTypeSafety
9+
- React-Core
10+
- React-debug
11+
- React-Fabric
12+
- React-featureflags
13+
- React-graphics
14+
- React-hermes
15+
- React-ImageManager
16+
- React-jsi
17+
- React-NativeModulesApple
18+
- React-RCTFabric
19+
- React-renderercss
20+
- React-rendererdebug
21+
- React-utils
22+
- ReactCodegen
23+
- ReactCommon/turbomodule/bridging
24+
- ReactCommon/turbomodule/core
25+
- uniffi-bindgen-react-native (= 0.30.0-1)
26+
- Yoga
427
- boost (1.84.0)
528
- BreezSdkSparkReactNative (0.15.0):
629
- DoubleConversion
@@ -25,7 +48,7 @@ PODS:
2548
- ReactCodegen
2649
- ReactCommon/turbomodule/bridging
2750
- ReactCommon/turbomodule/core
28-
- uniffi-bindgen-react-native (= 0.29.3-1)
51+
- uniffi-bindgen-react-native (= 0.30.0-1)
2952
- Yoga
3053
- DoubleConversion (1.1.6)
3154
- EXApplication (6.1.5):
@@ -2497,7 +2520,7 @@ PODS:
24972520
- libwebp (~> 1.0)
24982521
- SDWebImage/Core (~> 5.17)
24992522
- SocketRocket (0.7.1)
2500-
- uniffi-bindgen-react-native (0.29.3-1):
2523+
- uniffi-bindgen-react-native (0.30.0-1):
25012524
- React-Core
25022525
- Yoga (0.0.0)
25032526
- ZXingObjC/Core (3.6.9)
@@ -2507,7 +2530,7 @@ PODS:
25072530
- ZXingObjC/Core
25082531

25092532
DEPENDENCIES:
2510-
- bdk-rn (from `../node_modules/bdk-rn`)
2533+
- BdkRn (from `../node_modules/bdk-rn`)
25112534
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
25122535
- "BreezSdkSparkReactNative (from `../node_modules/@breeztech/breez-sdk-spark-react-native`)"
25132536
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
@@ -2636,7 +2659,7 @@ SPEC REPOS:
26362659
- ZXingObjC
26372660

26382661
EXTERNAL SOURCES:
2639-
bdk-rn:
2662+
BdkRn:
26402663
:path: "../node_modules/bdk-rn"
26412664
boost:
26422665
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
@@ -2861,9 +2884,9 @@ EXTERNAL SOURCES:
28612884
:path: "../node_modules/react-native/ReactCommon/yoga"
28622885

28632886
SPEC CHECKSUMS:
2864-
bdk-rn: 20fd2a21760f37d59f7d832bd6f3f942c19f671a
2887+
BdkRn: 84fcc41746ce9d219159821884789f4fab738f45
28652888
boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90
2866-
BreezSdkSparkReactNative: 067b06592b9457e66a16e4a1b400790c138a575b
2889+
BreezSdkSparkReactNative: d8c2e3ef913bee33ded24fd5690a1855a04f04be
28672890
DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb
28682891
EXApplication: 1e06972201838375ca1ec1ba34d586a98a5dc718
28692892
EXConstants: d3d551cb154718f5161c4247304e96aa59f6cca7
@@ -2980,7 +3003,7 @@ SPEC CHECKSUMS:
29803003
SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c
29813004
SDWebImageWebPCoder: e38c0a70396191361d60c092933e22c20d5b1380
29823005
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
2983-
uniffi-bindgen-react-native: 125eae9e3a0cf34bf8f3d4b0ceed517df7cc0733
3006+
uniffi-bindgen-react-native: 80b84792114d89b005d913b7b8d875b36111178f
29843007
Yoga: dc7c21200195acacb62fa920c588e7c2106de45e
29853008
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5
29863009

package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@tanstack/react-query": "^5.101.2",
5353
"app-icon-badge": "^0.1.2",
5454
"axios": "^1.18.1",
55-
"bdk-rn": "https://github.com/grimm-labs/bdk-rn.git#780c65d5968f39695d8644b902b8c0f2acd44854",
55+
"bdk-rn": "https://github.com/bitcoindevkit/bdk-rn/releases/download/v1.0.0/bdk-rn-1.0.0.tgz",
5656
"bignumber.js": "^9.3.1",
5757
"expo": "~53.0.27",
5858
"expo-application": "~6.1.5",
@@ -170,12 +170,27 @@
170170
"form-data": "4.0.6",
171171
"request>form-data": "2.5.6",
172172
"undici": "6.27.0",
173+
"@expo/cli>node-forge": "1.4.0",
174+
"metro>image-size": "1.2.1",
175+
"picomatch@<2.3.2": "2.3.2",
176+
"picomatch@>=3.0.0 <3.0.2": "3.0.2",
177+
"@xmldom/xmldom": "0.8.13",
178+
"@expo/devcert>lodash": "4.18.0",
179+
"tmp": "0.2.7",
180+
"shell-quote": "1.8.4",
181+
"ws@^6.0.0": "6.2.4",
182+
"ws@^7.0.0": "7.5.11",
183+
"ws@^8.0.0": "8.21.0",
184+
"uniffi-bindgen-react-native": "0.30.0-1",
173185
"eslint>ajv": "^6.12.6",
174186
"qs": "6.14.1",
175187
"file-type": "16.5.4",
176188
"postcss": "8.5.10",
177189
"tar": "7.5.16",
178190
"tough-cookie": "4.1.3"
191+
},
192+
"patchedDependencies": {
193+
"@breeztech/breez-sdk-spark-react-native@0.15.1": "patches/@breeztech__breez-sdk-spark-react-native@0.15.1.patch"
179194
}
180195
},
181196
"expo": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/BreezSdkSparkReactNative.podspec b/BreezSdkSparkReactNative.podspec
2+
index 5cfe1ef859a3b8b537ec7da621cac81199162d64..134321f031e8248f7751f91dd98c6747289bf405 100644
3+
--- a/BreezSdkSparkReactNative.podspec
4+
+++ b/BreezSdkSparkReactNative.podspec
5+
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
6+
7+
s.source_files = "ios/*.{h,m,mm,swift}", "ios/generated/**/*.{h}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
8+
s.vendored_frameworks = "build/RnBreezSdkSpark.xcframework"
9+
- s.dependency "uniffi-bindgen-react-native", "0.29.3-1"
10+
+ s.dependency "uniffi-bindgen-react-native", "0.30.0-1"
11+
12+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
13+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/BreezSdkSparkReactNative.podspec b/BreezSdkSparkReactNative.podspec
2+
index 5cfe1ef859a3b8b537ec7da621cac81199162d64..134321f031e8248f7751f91dd98c6747289bf405 100644
3+
--- a/BreezSdkSparkReactNative.podspec
4+
+++ b/BreezSdkSparkReactNative.podspec
5+
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
6+
7+
s.source_files = "ios/*.{h,m,mm,swift}", "ios/generated/**/*.{h}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
8+
s.vendored_frameworks = "build/RnBreezSdkSpark.xcframework"
9+
- s.dependency "uniffi-bindgen-react-native", "0.29.3-1"
10+
+ s.dependency "uniffi-bindgen-react-native", "0.30.0-1"
11+
12+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
13+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.

0 commit comments

Comments
 (0)