react-native-nami-sdk 3.1.28 → 3.1.30

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.
@@ -97,7 +97,7 @@ jobs:
97
97
  working-directory: source/examples/Basic
98
98
 
99
99
  - name: Install iOS pods
100
- run: RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install
100
+ run: RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install --repo-update
101
101
  working-directory: source/examples/Basic/ios
102
102
 
103
103
  - name: Rebuild cache detox
@@ -196,7 +196,7 @@ jobs:
196
196
 
197
197
  - name: Install test iOS dependencies
198
198
  run: |
199
- pod install
199
+ pod install --repo-update
200
200
  working-directory: source/examples/Basic/ios
201
201
 
202
202
  - name: Build resolve Swift dependencies
@@ -316,7 +316,7 @@ jobs:
316
316
 
317
317
  - name: Install test tvOS dependencies
318
318
  run: |
319
- RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install
319
+ RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install --repo-update
320
320
  working-directory: source/examples/TestNamiTV/ios
321
321
 
322
322
  - name: Build resolve Swift dependencies
@@ -196,7 +196,7 @@ jobs:
196
196
 
197
197
  - name: Install test iOS dependencies
198
198
  run: |
199
- pod install
199
+ pod install --repo-update
200
200
  working-directory: source/examples/Basic/ios
201
201
 
202
202
  - name: Build resolve Swift dependencies
@@ -316,7 +316,7 @@ jobs:
316
316
 
317
317
  - name: Install test tvOS dependencies
318
318
  run: |
319
- RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install
319
+ RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install --repo-update
320
320
  working-directory: source/examples/TestNamiTV/ios
321
321
 
322
322
  - name: Build resolve Swift dependencies
@@ -84,7 +84,7 @@ dependencies {
84
84
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
85
85
 
86
86
  implementation 'com.github.jeziellago:compose-markdown:0.3.0'
87
- compileOnly "com.namiml:sdk-amazon:3.1.24"
87
+ compileOnly "com.namiml:sdk-amazon:3.1.30"
88
88
 
89
89
  implementation 'com.facebook.react:react-native:+' // From node_modules
90
90
  coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
@@ -106,7 +106,7 @@ class NamiBridgeModule(reactContext: ReactApplicationContext) :
106
106
  } else {
107
107
  Arguments.createArray()
108
108
  }
109
- val settingsList = mutableListOf("extendedClientInfo:react-native:3.1.28")
109
+ val settingsList = mutableListOf("extendedClientInfo:react-native:3.1.30")
110
110
  namiCommandsReact?.toArrayList()?.filterIsInstance<String>()?.let { commandsFromReact ->
111
111
  settingsList.addAll(commandsFromReact)
112
112
  }
package/ios/Nami.m CHANGED
@@ -50,7 +50,7 @@ RCT_EXPORT_METHOD(configure: (NSDictionary *)configDict completion: (RCTResponse
50
50
  }
51
51
 
52
52
  // Start commands with header iformation for Nami to let them know this is a React client.
53
- NSMutableArray *namiCommandStrings = [NSMutableArray arrayWithArray:@[@"extendedClientInfo:react-native:3.1.28"]];
53
+ NSMutableArray *namiCommandStrings = [NSMutableArray arrayWithArray:@[@"extendedClientInfo:react-native:3.1.30"]];
54
54
 
55
55
  // Add additional namiCommands app may have sent in.
56
56
  NSObject *appCommandStrings = configDict[@"namiCommands"];
@@ -99,14 +99,20 @@ class RNNamiPurchaseManager: RCTEventEmitter {
99
99
 
100
100
  @objc(skuPurchased:resolver:rejecter:)
101
101
  func skuPurchased(skuId: String, resolve: @escaping RCTPromiseResolveBlock, reject _: @escaping RCTPromiseRejectBlock) {
102
- let isSkuPurchased = NamiPurchaseManager.skuPurchased(skuId)
103
- resolve(isSkuPurchased)
102
+ Task {
103
+ let isSkuPurchased = await NamiPurchaseManager.skuPurchased(skuId)
104
+ resolve(isSkuPurchased)
105
+ }
106
+ resolve(false)
104
107
  }
105
108
 
106
109
  @objc(anySkuPurchased:resolver:rejecter:)
107
110
  func anySkuPurchased(skuIds: [String], resolve: @escaping RCTPromiseResolveBlock, reject _: @escaping RCTPromiseRejectBlock) {
108
- let isSkusPurchased = NamiPurchaseManager.anySkuPurchased(skuIds)
109
- resolve(isSkusPurchased)
111
+ Task {
112
+ let isSkusPurchased = await NamiPurchaseManager.anySkuPurchased(skuIds)
113
+ resolve(isSkusPurchased)
114
+ }
115
+ resolve(false)
110
116
  }
111
117
 
112
118
  @objc(consumePurchasedSku:)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nami-sdk",
3
- "version": "3.1.28",
3
+ "version": "3.1.30",
4
4
  "description": "React Native Module for Nami - Easy subscriptions & in-app purchases, with powerful built-in paywalls and A/B testing.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
20
20
  s.source_files = "ios/**/*.{h,m,swift}"
21
21
  s.requires_arc = true
22
22
 
23
- s.dependency 'Nami', '3.1.28'
23
+ s.dependency 'Nami', '3.1.30'
24
24
  s.dependency 'React'
25
25
 
26
26
  end