react-native-quick-crypto 0.7.5 → 0.7.6

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.
@@ -65,12 +65,23 @@ target_include_directories(
65
65
 
66
66
  target_link_libraries(
67
67
  ${PACKAGE_NAME}
68
- ReactAndroid::turbomodulejsijni
69
68
  fbjni::fbjni # <-- fbjni
70
69
  ${LOG_LIB} # <-- Logcat logger
71
70
  ReactAndroid::jsi # <-- RN: JSI
72
- ReactAndroid::reactnativejni # <-- RN: React Native JNI bindings
73
- ReactAndroid::react_nativemodule_core # <-- RN: React Native native module core
74
71
  android # <-- Android JNI core
75
72
  openssl::crypto # <-- OpenSSL (Crypto)
76
73
  )
74
+
75
+ if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
76
+ target_link_libraries(
77
+ ${PACKAGE_NAME}
78
+ ReactAndroid::reactnative # <-- RN: Native Modules umbrella prefab
79
+ )
80
+ else()
81
+ target_link_libraries(
82
+ ${PACKAGE_NAME}
83
+ ReactAndroid::turbomodulejsijni
84
+ ReactAndroid::reactnativejni # <-- RN: React Native JNI bindings
85
+ ReactAndroid::react_nativemodule_core # <-- RN: React Native native module core
86
+ )
87
+ endif()
@@ -9,12 +9,17 @@
9
9
 
10
10
  @implementation QuickCryptoModule
11
11
 
12
+ @synthesize bridge=_bridge;
13
+
12
14
  RCT_EXPORT_MODULE(QuickCrypto)
13
15
 
16
+ - (void)setBridge:(RCTBridge *)bridge {
17
+ _bridge = bridge;
18
+ }
19
+
14
20
  RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) {
15
21
  NSLog(@"Installing JSI bindings for react-native-quick-crypto...");
16
- RCTBridge* bridge = [RCTBridge currentBridge];
17
- RCTCxxBridge* cxxBridge = (RCTCxxBridge*)bridge;
22
+ RCTCxxBridge* cxxBridge = (RCTCxxBridge*)_bridge;
18
23
  if (cxxBridge == nil) {
19
24
  return @false;
20
25
  }
@@ -26,7 +31,7 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) {
26
31
  return @false;
27
32
  }
28
33
  auto& runtime = *jsiRuntime;
29
- auto callInvoker = bridge.jsCallInvoker;
34
+ auto callInvoker = _bridge.jsCallInvoker;
30
35
 
31
36
  auto workerQueue =
32
37
  std::make_shared<margelo::DispatchQueue::dispatch_queue>("margelo crypto thread");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-quick-crypto",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "A fast implementation of Node's `crypto` module written in C/C++ JSI",
5
5
  "packageManager": "bun@1.1.26",
6
6
  "main": "lib/commonjs/index",
@@ -80,17 +80,17 @@
80
80
  "@types/node": "^22.0.0",
81
81
  "@types/react": "^18.0.33",
82
82
  "@types/readable-stream": "^4.0.11",
83
- "eslint": "9.9.1",
83
+ "eslint": "9.12.0",
84
84
  "eslint-plugin-react-native": "^4.1.0",
85
85
  "jest": "^29.7.0",
86
86
  "prettier": "3.3.3",
87
87
  "react": "^18.2.0",
88
88
  "react-native": "^0.72.7",
89
- "react-native-builder-bob": "0.30.0",
89
+ "react-native-builder-bob": "0.30.2",
90
90
  "release-it": "^17.2.0",
91
91
  "sscrypto": "^1.1.1",
92
- "typescript": "5.5.4",
93
- "typescript-eslint": "8.3.0"
92
+ "typescript": "5.6.3",
93
+ "typescript-eslint": "8.9.0"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "react": "*",