react-native-zcash 0.7.1 → 0.7.2
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/CHANGELOG.md +4 -0
- package/ios/RNZcash.swift +12 -1
- package/ios/libzcashlc.xcframework/Info.plist +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.7.2 (2024-05-17)
|
|
6
|
+
|
|
7
|
+
- fixed: Pause synchronizer events until JavaScript is ready to receive them.
|
|
8
|
+
|
|
5
9
|
## 0.7.1 (2024-05-11)
|
|
6
10
|
|
|
7
11
|
- fixed: Stop depending on the iOS-provided SQLite, which causes crashes on iOS 13-15 because it is too old.
|
package/ios/RNZcash.swift
CHANGED
|
@@ -72,6 +72,7 @@ let genericError = NSError(domain: "", code: 0)
|
|
|
72
72
|
|
|
73
73
|
@objc(RNZcash)
|
|
74
74
|
class RNZcash: RCTEventEmitter {
|
|
75
|
+
var hasListeners: Bool = false
|
|
75
76
|
|
|
76
77
|
override static func requiresMainQueueSetup() -> Bool {
|
|
77
78
|
return true
|
|
@@ -440,7 +441,17 @@ class RNZcash: RCTEventEmitter {
|
|
|
440
441
|
|
|
441
442
|
// Events
|
|
442
443
|
public func sendToJs(name: String, data: Any) {
|
|
443
|
-
|
|
444
|
+
if (hasListeners) {
|
|
445
|
+
self.sendEvent(withName: name, body: data)
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
override func startObserving() -> Void {
|
|
450
|
+
hasListeners = true
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
override func stopObserving() -> Void {
|
|
454
|
+
hasListeners = false
|
|
444
455
|
}
|
|
445
456
|
|
|
446
457
|
override func supportedEvents() -> [String] {
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>libzcashlc.a</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>libzcashlc.a</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>libzcashlc.a</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>libzcashlc.a</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|