@walletconnect/react-native-compat 2.23.2-canary.1 → 2.23.2-canary.3

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.
@@ -112,7 +112,7 @@ dependencies {
112
112
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
113
113
 
114
114
  // Yttrium - WalletConnect Pay uniffi bindings
115
- implementation("com.github.reown-com.yttrium:yttrium-wcpay:0.9.119") {
115
+ implementation("com.github.reown-com.yttrium:yttrium-wcpay:0.10.3") {
116
116
  // Exclude JNA jar, we'll use the AAR version for Android
117
117
  exclude group: 'net.java.dev.jna', module: 'jna'
118
118
  }
@@ -52,13 +52,15 @@ RCT_EXPORT_METHOD(getPaymentOptions:(NSString *)requestJson
52
52
  resolve:(RCTPromiseResolveBlock)resolve
53
53
  reject:(RCTPromiseRejectBlock)reject)
54
54
  {
55
- [_bridge getPaymentOptions:requestJson completion:^(NSString *result, NSError *error) {
56
- if (error) {
57
- reject(@"PAY_ERROR", error.localizedDescription, error);
58
- } else {
59
- resolve(result);
60
- }
61
- }];
55
+ dispatch_async(_queue, ^{
56
+ [self->_bridge getPaymentOptions:requestJson completion:^(NSString *result, NSError *error) {
57
+ if (error) {
58
+ reject(@"PAY_ERROR", error.localizedDescription, error);
59
+ } else {
60
+ resolve(result);
61
+ }
62
+ }];
63
+ });
62
64
  }
63
65
 
64
66
  /**
@@ -71,13 +73,15 @@ RCT_EXPORT_METHOD(getRequiredPaymentActions:(NSString *)requestJson
71
73
  resolve:(RCTPromiseResolveBlock)resolve
72
74
  reject:(RCTPromiseRejectBlock)reject)
73
75
  {
74
- [_bridge getRequiredPaymentActions:requestJson completion:^(NSString *result, NSError *error) {
75
- if (error) {
76
- reject(@"PAY_ERROR", error.localizedDescription, error);
77
- } else {
78
- resolve(result);
79
- }
80
- }];
76
+ dispatch_async(_queue, ^{
77
+ [self->_bridge getRequiredPaymentActions:requestJson completion:^(NSString *result, NSError *error) {
78
+ if (error) {
79
+ reject(@"PAY_ERROR", error.localizedDescription, error);
80
+ } else {
81
+ resolve(result);
82
+ }
83
+ }];
84
+ });
81
85
  }
82
86
 
83
87
  /**
@@ -90,13 +94,15 @@ RCT_EXPORT_METHOD(confirmPayment:(NSString *)requestJson
90
94
  resolve:(RCTPromiseResolveBlock)resolve
91
95
  reject:(RCTPromiseRejectBlock)reject)
92
96
  {
93
- [_bridge confirmPayment:requestJson completion:^(NSString *result, NSError *error) {
94
- if (error) {
95
- reject(@"PAY_ERROR", error.localizedDescription, error);
96
- } else {
97
- resolve(result);
98
- }
99
- }];
97
+ dispatch_async(_queue, ^{
98
+ [self->_bridge confirmPayment:requestJson completion:^(NSString *result, NSError *error) {
99
+ if (error) {
100
+ reject(@"PAY_ERROR", error.localizedDescription, error);
101
+ } else {
102
+ resolve(result);
103
+ }
104
+ }];
105
+ });
100
106
  }
101
107
 
102
108
  + (BOOL)requiresMainQueueSetup
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walletconnect/react-native-compat",
3
3
  "description": "Native modules and shims for WalletConnect Protocol in React Native Projects",
4
- "version": "2.23.2-canary.1",
4
+ "version": "2.23.2-canary.3",
5
5
  "author": "WalletConnect, Inc. <walletconnect.com>",
6
6
  "homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
7
7
  "license": "SEE LICENSE IN LICENSE.md",