react-native-nami-sdk 3.2.10-beta.1 → 3.2.10-rc.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/android/build.gradle
CHANGED
|
@@ -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.
|
|
89
|
-
amazonImplementation "com.namiml:sdk-amazon:3.2.
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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-
|
|
3
|
+
"version": "3.2.10-rc.2",
|
|
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",
|