mobilyflow-react-native-sdk 0.5.1 → 0.5.2-alpha.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.
|
@@ -21,7 +21,7 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
s.swift_versions = '5.0'
|
|
22
22
|
|
|
23
23
|
# Install MobilyFlow SDK
|
|
24
|
-
s.dependency 'MobilyflowSDK', '0.5.
|
|
24
|
+
s.dependency 'MobilyflowSDK', '0.5.2-alpha.3'
|
|
25
25
|
|
|
26
26
|
#s.subspec 'MobilyflowSDK' do |ss|
|
|
27
27
|
# ss.source_files = '../mobilyflow-ios-sdk/Sources/MobilyflowSDK/**/*'
|
|
@@ -158,7 +158,7 @@ RCT_EXPORT_MODULE()
|
|
|
158
158
|
reject(@"3", @"MobilyflowSDK.MobilyError.unknown_error", [NSError errorWithDomain:@"MobilyflowSDK.MobilyError" code:3 userInfo:nil]);
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
|
|
162
162
|
[MobilyPurchaseSDK openRefundDialogForProduct:product completionHandler:^(NSString * _Nullable result, NSError * _Nullable error) {
|
|
163
163
|
if (error) {
|
|
164
164
|
reject([NSString stringWithFormat:@"%ld", error.code], error.description, error);
|
|
@@ -207,7 +207,7 @@ RCT_EXPORT_MODULE()
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
|
|
210
|
+
|
|
211
211
|
[MobilyPurchaseSDK purchaseProduct:product options:purchaseOptions completionHandler:^(MobilyEvent * _Nullable event, NSError * _Nullable error) {
|
|
212
212
|
if (error) {
|
|
213
213
|
reject([NSString stringWithFormat:@"%ld", error.code], error.description, error);
|
|
@@ -220,7 +220,7 @@ RCT_EXPORT_MODULE()
|
|
|
220
220
|
- (void)sendDiagnostic:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
|
|
221
221
|
NSError *error = nil;
|
|
222
222
|
[MobilyPurchaseSDK sendDiagnosticAndReturnError:&error];
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
if (error) {
|
|
225
225
|
reject([NSString stringWithFormat:@"%ld", error.code], error.description, error);
|
|
226
226
|
} else {
|
|
@@ -268,5 +268,14 @@ RCT_EXPORT_MODULE()
|
|
|
268
268
|
resolve([MobilyPurchaseSDK getSDKVersion]);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
- (void)debug:(NSArray *)skus resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
|
|
272
|
+
[MobilyPurchaseSDK debugWithSkus:skus completionHandler:^(NSError * _Nullable error) {
|
|
273
|
+
if (error) {
|
|
274
|
+
reject([NSString stringWithFormat:@"%ld", error.code], error.description, error);
|
|
275
|
+
} else {
|
|
276
|
+
resolve([NSNumber numberWithBool:true]);
|
|
277
|
+
}
|
|
278
|
+
}];
|
|
279
|
+
}
|
|
271
280
|
|
|
272
281
|
@end
|