react-native-nami-sdk 3.2.10-beta.1 → 3.2.10-rc.1

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.
@@ -85,8 +85,8 @@ dependencies {
85
85
  implementation fileTree(dir: 'libs', include: ['*.jar'])
86
86
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
87
87
 
88
- playImplementation "com.namiml:sdk-android:3.2.9"
89
- amazonImplementation "com.namiml:sdk-amazon:3.2.9"
88
+ playImplementation "com.namiml:sdk-android:3.2.10-rc.01"
89
+ amazonImplementation "com.namiml:sdk-amazon:3.2.10-rc.01"
90
90
 
91
91
  implementation "com.facebook.react:react-native:+" // From node_modules
92
92
  coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
@@ -232,7 +232,7 @@ class NamiPaywallManagerBridgeModule(reactContext: ReactApplicationContext) :
232
232
 
233
233
  @ReactMethod
234
234
  fun allowUserInteraction(allowed: Boolean) {
235
- // NamiPaywallManager.allowUserInteraction(allow = allowed)
235
+ NamiPaywallManager.allowPaywallInteraction(allow = allowed)
236
236
  }
237
237
 
238
238
  @ReactMethod
@@ -43,7 +43,7 @@ RCT_EXTERN_METHOD(setProductDetails:(NSString *)productDetails allowOffers:(null
43
43
 
44
44
  RCT_EXTERN_METHOD(setAppSuppliedVideoDetails:(NSString *)url name:(nullable NSString *))
45
45
 
46
- RCT_EXTERN_METHOD(allowUserInteraction: allowed:(nullable BOOL *))
46
+ RCT_EXTERN_METHOD(allowUserInteraction:(BOOL *)allowed)
47
47
 
48
48
  + (BOOL)requiresMainQueueSetup {
49
49
  return YES;
@@ -165,6 +165,8 @@ class RNNamiPaywallManager: RCTEventEmitter {
165
165
 
166
166
  @objc(allowUserInteraction:)
167
167
  func allowUserInteraction(allowed: Bool) {
168
- NamiPaywallManager.allowUserInteraction(allowed)
168
+ DispatchQueue.main.async {
169
+ NamiPaywallManager.allowUserInteraction(allowed)
170
+ }
169
171
  }
170
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nami-sdk",
3
- "version": "3.2.10-beta.1",
3
+ "version": "3.2.10-rc.1",
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.2.10-beta.01'
23
+ s.dependency 'Nami', '3.2.10-rc.01'
24
24
  s.dependency 'React'
25
25
 
26
26
  end