react-native-nami-sdk 3.1.22 → 3.1.24-beta.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.
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/nami/reactlibrary/NamiBridgeModule.kt +1 -1
- package/android/src/main/java/com/nami/reactlibrary/NamiPaywallManagerBridgeModule.kt +7 -1
- package/ios/Nami.m +1 -1
- package/ios/NamiPaywallManagerBridge.swift +1 -2
- package/package.json +1 -1
- package/react-native-nami-sdk.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
87
|
+
compileOnly "com.namiml:sdk-amazon:3.1.23"
|
|
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.
|
|
109
|
+
val settingsList = mutableListOf("extendedClientInfo:react-native:3.1.24-beta.1")
|
|
110
110
|
namiCommandsReact?.toArrayList()?.filterIsInstance<String>()?.let { commandsFromReact ->
|
|
111
111
|
settingsList.addAll(commandsFromReact)
|
|
112
112
|
}
|
|
@@ -210,7 +210,13 @@ class NamiPaywallManagerBridgeModule(reactContext: ReactApplicationContext) :
|
|
|
210
210
|
@ReactMethod
|
|
211
211
|
fun buySkuCancel() {
|
|
212
212
|
reactApplicationContext.runOnUiQueueThread {
|
|
213
|
-
|
|
213
|
+
if (latestPaywallActivity != null) {
|
|
214
|
+
NamiPaywallManager.buySkuCancel(latestPaywallActivity!!)
|
|
215
|
+
} else if (currentActivity != null) {
|
|
216
|
+
NamiPaywallManager.buySkuCancel(currentActivity!!)
|
|
217
|
+
} else {
|
|
218
|
+
NamiPaywallManager.buySkuCancel()
|
|
219
|
+
}
|
|
214
220
|
}
|
|
215
221
|
}
|
|
216
222
|
|
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.
|
|
53
|
+
NSMutableArray *namiCommandStrings = [NSMutableArray arrayWithArray:@[@"extendedClientInfo:react-native:3.1.24-beta.1"]];
|
|
54
54
|
|
|
55
55
|
// Add additional namiCommands app may have sent in.
|
|
56
56
|
NSObject *appCommandStrings = configDict[@"namiCommands"];
|
|
@@ -111,10 +111,9 @@ class RNNamiPaywallManager: RCTEventEmitter {
|
|
|
111
111
|
func dismiss(resolve: @escaping RCTPromiseResolveBlock, reject _: @escaping RCTPromiseRejectBlock) {
|
|
112
112
|
DispatchQueue.main.async {
|
|
113
113
|
NamiPaywallManager.dismiss(animated: true) {
|
|
114
|
-
|
|
114
|
+
resolve(true)
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
resolve(true)
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
@objc(show)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nami-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.24-beta.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",
|