Skip to content

Commit 7ffdbcb

Browse files
Merge branch 'main' into cp-13334
2 parents b4a049f + b1fe482 commit 7ffdbcb

File tree

14 files changed

+452
-812
lines changed

14 files changed

+452
-812
lines changed

.yarn/patches/@noble-curves-patch-8bddd6a892.patch

Lines changed: 0 additions & 31 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,6 @@
5656
"lodash@4.17.3": "4.17.21",
5757
"@ledgerhq/hw-transport": "6.31.0",
5858
"jail-monkey@2.8.0": "patch:jail-monkey@npm%3A2.8.0#./.yarn/patches/jail-monkey-npm-2.8.0-77e4d06b40.patch",
59-
"@noble/curves@1.9.7": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
60-
"@noble/curves@^1.7.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
61-
"@noble/curves@1.3.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
62-
"@noble/curves@^1.6.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
63-
"@noble/curves@1.2.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
64-
"@noble/curves@1.6.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
65-
"@noble/curves@1.4.2": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
66-
"@noble/curves@~1.3.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
67-
"@noble/curves@^1.4.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
68-
"@noble/curves@~1.4.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
69-
"@noble/curves@~1.6.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
70-
"@noble/curves@1.1.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
71-
"@noble/curves@~1.2.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
72-
"@noble/curves@~1.1.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
73-
"@noble/curves@^1.8.0": "patch:@noble/curves@patch%3A@noble/curves@npm%253A1.9.7%23./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch%3A%3Aversion=1.9.7&hash=9b53f1&locator=mobile-monorepo%2540workspace%253A.#./.yarn/patches/@noble-curves-patch-8bddd6a892.patch",
7459
"@bitcoinerlab/secp256k1@1.2.0": "patch:@bitcoinerlab/secp256k1@npm%3A1.2.0#./.yarn/patches/@bitcoinerlab-secp256k1-npm-1.2.0-1098d4b329.patch",
7560
"@bitcoinerlab/secp256k1@^1.0.5": "patch:@bitcoinerlab/secp256k1@npm%3A1.2.0#./.yarn/patches/@bitcoinerlab-secp256k1-npm-1.2.0-1098d4b329.patch"
7661
},

packages/core-mobile/ios/Podfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ abstract_target 'common' do
8383

8484
pod 'RNFS', :path => '../node_modules/react-native-fs'
8585

86+
# specify OpenSSL version explicitly due to https://github.com/margelo/react-native-quick-crypto/issues/189
87+
pod "OpenSSL-Universal", "1.1.1100"
8688
pod 'GoogleUtilities', :modular_headers => true;
8789
pod 'FirebaseCore', :modular_headers => true
8890
pod 'react-native-branch', path: '../node_modules/react-native-branch'
@@ -138,6 +140,14 @@ abstract_target 'common' do
138140
system(command)
139141
end
140142

143+
framework_paths = [
144+
"Pods/OpenSSL-Universal/Frameworks/OpenSSL.xcframework/ios-arm64_armv7/OpenSSL.framework/OpenSSL",
145+
]
146+
147+
framework_paths.each do |framework_relative_path|
148+
strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
149+
end
150+
141151
# Disable Swift modules for RNArgon2 to fix the build error on Xcode 26
142152
installer.pods_project.targets.each do |target|
143153
target.build_configurations.each do |config|

packages/core-mobile/ios/Podfile.lock

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ PODS:
543543
- glog
544544
- hermes-engine
545545
- NitroModules
546-
- QuickCrypto
547546
- RCT-Folly (= 2024.11.18.00)
548547
- RCTRequired
549548
- RCTTypeSafety
@@ -616,35 +615,10 @@ PODS:
616615
- ReactCommon/turbomodule/bridging
617616
- ReactCommon/turbomodule/core
618617
- Yoga
618+
- OpenSSL-Universal (1.1.1100)
619619
- OpenTelemetrySwiftApi (1.13.1)
620620
- PLCrashReporter (1.12.0)
621621
- PromisesObjC (2.4.0)
622-
- QuickCrypto (1.0.7):
623-
- DoubleConversion
624-
- glog
625-
- hermes-engine
626-
- NitroModules
627-
- RCT-Folly (= 2024.11.18.00)
628-
- RCTRequired
629-
- RCTTypeSafety
630-
- React-callinvoker
631-
- React-Core
632-
- React-debug
633-
- React-Fabric
634-
- React-featureflags
635-
- React-graphics
636-
- React-hermes
637-
- React-ImageManager
638-
- React-jsi
639-
- React-NativeModulesApple
640-
- React-RCTFabric
641-
- React-renderercss
642-
- React-rendererdebug
643-
- React-utils
644-
- ReactCodegen
645-
- ReactCommon/turbomodule/bridging
646-
- ReactCommon/turbomodule/core
647-
- Yoga
648622
- RCT-Folly (2024.11.18.00):
649623
- boost
650624
- DoubleConversion
@@ -2314,6 +2288,32 @@ PODS:
23142288
- ReactCommon/turbomodule/bridging
23152289
- ReactCommon/turbomodule/core
23162290
- Yoga
2291+
- react-native-quick-crypto (0.7.15):
2292+
- DoubleConversion
2293+
- glog
2294+
- hermes-engine
2295+
- OpenSSL-Universal
2296+
- RCT-Folly (= 2024.11.18.00)
2297+
- RCTRequired
2298+
- RCTTypeSafety
2299+
- React
2300+
- React-Core
2301+
- React-debug
2302+
- React-Fabric
2303+
- React-featureflags
2304+
- React-graphics
2305+
- React-hermes
2306+
- React-ImageManager
2307+
- React-jsi
2308+
- React-NativeModulesApple
2309+
- React-RCTFabric
2310+
- React-renderercss
2311+
- React-rendererdebug
2312+
- React-utils
2313+
- ReactCodegen
2314+
- ReactCommon/turbomodule/bridging
2315+
- ReactCommon/turbomodule/core
2316+
- Yoga
23172317
- react-native-restart (0.0.27):
23182318
- React-Core
23192319
- react-native-safe-area-context (5.5.2):
@@ -3522,7 +3522,7 @@ DEPENDENCIES:
35223522
- NitroAvalabsCrypto (from `../node_modules/react-native-nitro-avalabs-crypto`)
35233523
- NitroFetch (from `../node_modules/react-native-nitro-fetch`)
35243524
- NitroModules (from `../node_modules/react-native-nitro-modules`)
3525-
- QuickCrypto (from `../node_modules/react-native-quick-crypto`)
3525+
- OpenSSL-Universal (= 1.1.1100)
35263526
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
35273527
- RCT-Folly/Fabric (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
35283528
- RCTDeprecation (from `../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`)
@@ -3574,6 +3574,7 @@ DEPENDENCIES:
35743574
- react-native-passkey (from `../node_modules/react-native-passkey`)
35753575
- react-native-performance (from `../node_modules/react-native-performance`)
35763576
- react-native-quick-base64 (from `../node_modules/react-native-quick-base64`)
3577+
- react-native-quick-crypto (from `../node_modules/react-native-quick-crypto`)
35773578
- react-native-restart (from `../node_modules/react-native-restart`)
35783579
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
35793580
- "react-native-skia (from `../node_modules/@shopify/react-native-skia`)"
@@ -3678,6 +3679,7 @@ SPEC REPOS:
36783679
- lottie-ios
36793680
- MultiplatformBleAdapter
36803681
- nanopb
3682+
- OpenSSL-Universal
36813683
- OpenTelemetrySwiftApi
36823684
- PLCrashReporter
36833685
- PromisesObjC
@@ -3778,8 +3780,6 @@ EXTERNAL SOURCES:
37783780
:path: "../node_modules/react-native-nitro-fetch"
37793781
NitroModules:
37803782
:path: "../node_modules/react-native-nitro-modules"
3781-
QuickCrypto:
3782-
:path: "../node_modules/react-native-quick-crypto"
37833783
RCT-Folly:
37843784
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
37853785
RCTDeprecation:
@@ -3878,6 +3878,8 @@ EXTERNAL SOURCES:
38783878
:path: "../node_modules/react-native-performance"
38793879
react-native-quick-base64:
38803880
:path: "../node_modules/react-native-quick-base64"
3881+
react-native-quick-crypto:
3882+
:path: "../node_modules/react-native-quick-crypto"
38813883
react-native-restart:
38823884
:path: "../node_modules/react-native-restart"
38833885
react-native-safe-area-context:
@@ -4095,13 +4097,13 @@ SPEC CHECKSUMS:
40954097
LVModalQueue: 79984475a7adaccb33e8e3ef9ad06742852ff81b
40964098
MultiplatformBleAdapter: b1fddd0d499b96b607e00f0faa8e60648343dc1d
40974099
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
4098-
NitroAvalabsCrypto: 51a5d05222529a10c7ac99d963bab93fb1070072
4100+
NitroAvalabsCrypto: 1e5e1dbdc072022443c355b70d6d598841bf8557
40994101
NitroFetch: 23ea318ee7382714fc4d32a4777583dba391833a
41004102
NitroModules: 6a2c62dd870fa31c50daa55b63f59adecc68a8eb
4103+
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
41014104
OpenTelemetrySwiftApi: aaee576ed961e0c348af78df58b61300e95bd104
41024105
PLCrashReporter: db59ef96fa3d25f3650040d02ec2798cffee75f2
41034106
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
4104-
QuickCrypto: d18e0bbaba69c477f6d6296175322d058da6f28a
41054107
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
41064108
RCTDeprecation: 5f638f65935e273753b1f31a365db6a8d6dc53b5
41074109
RCTRequired: 8b46a520ea9071e2bc47d474aa9ca31b4a935bd8
@@ -4152,6 +4154,7 @@ SPEC CHECKSUMS:
41524154
react-native-passkey: 3aac247c18127443ef4a002b59d8e12dc7e99f2e
41534155
react-native-performance: 4194ce7222056671d8f0ce10e96a8fead7278550
41544156
react-native-quick-base64: 651d972291fd5d9902869636a1b3c46820324490
4157+
react-native-quick-crypto: 71b622aa0a231ac068759f5eef37982ad5eae58c
41554158
react-native-restart: 0bc732f4461709022a742bb29bcccf6bbc5b4863
41564159
react-native-safe-area-context: 7e926a200d4bc9c56562275743705c6b56176455
41574160
react-native-skia: 5c086469906cf854e26126b5b88dcbb6c93eb90f
@@ -4229,6 +4232,6 @@ SPEC CHECKSUMS:
42294232
Yoga: adb397651e1c00672c12e9495babca70777e411e
42304233
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5
42314234

4232-
PODFILE CHECKSUM: a2419b0d699403a5728ebd8c44ade7e08b6edb43
4235+
PODFILE CHECKSUM: 5c40fea57eb45cbbb8186acd410997f14944226c
42334236

42344237
COCOAPODS: 1.16.2

packages/core-mobile/metro.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const baseConfig = {
2929
// mute warnings about circular dependencies
3030
requireCycleIgnorePatterns: [/^app\/.*/, /^node_modules\/.*/],
3131
extraNodeModules: {
32+
stream: require.resolve('./node_modules/stream-browserify'),
3233
'@noble/hashes': require.resolve('./node_modules/@noble/hashes')
3334
},
3435
// sbmodern is needed for storybook
@@ -119,11 +120,6 @@ const baseConfig = {
119120
platform
120121
)
121122
}
122-
if (moduleName === 'stream') {
123-
// when importing stream, resolve to readable-stream
124-
return context.resolveRequest(context, 'readable-stream', platform)
125-
}
126-
127123
// optionally, chain to the standard Metro resolver.
128124
return context.resolveRequest(context, moduleName, platform)
129125
}

packages/core-mobile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"react-native-progress": "5.0.1",
215215
"react-native-qrcode-svg": "6.3.2",
216216
"react-native-quick-base64": "2.1.2",
217-
"react-native-quick-crypto": "1.0.7",
217+
"react-native-quick-crypto": "0.7.15",
218218
"react-native-reanimated": "3.18.0",
219219
"react-native-redash": "18.1.3",
220220
"react-native-restart": "0.0.27",

packages/react-native-nitro-avalabs-crypto/NitroAvalabsCrypto.podspec

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Pod::Spec.new do |s|
2424

2525
s.dependency 'React-jsi'
2626
s.dependency 'React-callinvoker'
27-
s.dependency 'QuickCrypto'
2827

2928
load 'nitrogen/generated/ios/NitroAvalabsCrypto+autolinking.rb'
3029
add_nitrogen_files(s)
@@ -47,20 +46,18 @@ Pod::Spec.new do |s|
4746

4847
# Keep your C++/Swift flags (they are harmless)
4948
s.pod_target_xcconfig = {
50-
'HEADER_SEARCH_PATHS' => '$(inherited) $(PODS_TARGET_SRCROOT)/ios/secp-out/include "$(PODS_ROOT)/../node_modules/react-native-quick-crypto/OpenSSL.xcframework/ios-arm64/OpenSSL.framework/Headers" "$(PODS_ROOT)/../node_modules/react-native-quick-crypto/OpenSSL.xcframework/ios-arm64_x86_64-simulator/OpenSSL.framework/Headers"',
51-
'FRAMEWORK_SEARCH_PATHS' => '$(inherited) "$(PODS_ROOT)/../node_modules/react-native-quick-crypto"',
49+
'HEADER_SEARCH_PATHS' => '$(inherited) $(PODS_TARGET_SRCROOT)/ios/secp-out/include',
5250
'CLANG_CXX_LIBRARY' => 'libc++',
5351
'OTHER_CPLUSPLUSFLAGS' => '$(inherited) -std=gnu++20',
5452
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20',
5553
'SWIFT_OBJC_INTEROP_MODE' => 'objcxx',
5654
'DEFINES_MODULE' => 'YES',
57-
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
58-
'OTHER_LDFLAGS' => '$(inherited) -F"$(PODS_ROOT)/../node_modules/react-native-quick-crypto" -framework OpenSSL'
55+
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
5956
}
6057

6158
# Tell Xcode where the public headers live
6259
s.xcconfig = {
63-
'HEADER_SEARCH_PATHS' => '$(inherited) $(PODS_TARGET_SRCROOT)/ios/secp-out/include "$(PODS_ROOT)/../node_modules/react-native-quick-crypto/OpenSSL.xcframework/ios-arm64/OpenSSL.framework/Headers" "$(PODS_ROOT)/../node_modules/react-native-quick-crypto/OpenSSL.xcframework/ios-arm64_x86_64-simulator/OpenSSL.framework/Headers"',
60+
'HEADER_SEARCH_PATHS' => '$(inherited) $(PODS_TARGET_SRCROOT)/ios/secp-out/include',
6461
}
6562

6663
s.user_target_xcconfig = {

0 commit comments

Comments
 (0)