react-native-nami-sdk 3.4.4-dev.202606252053 → 3.4.4-dev.202606260324
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.4.4-dev.
|
|
89
|
-
amazonImplementation "com.namiml:sdk-amazon:3.4.4-dev.
|
|
88
|
+
playImplementation "com.namiml:sdk-android:3.4.4-dev.202606260324"
|
|
89
|
+
amazonImplementation "com.namiml:sdk-amazon:3.4.4-dev.202606260324"
|
|
90
90
|
|
|
91
91
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
92
92
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.0.4"
|
|
@@ -4,7 +4,17 @@ import android.app.Activity
|
|
|
4
4
|
import android.net.Uri
|
|
5
5
|
import android.util.Log
|
|
6
6
|
import androidx.core.net.toUri
|
|
7
|
-
import com.facebook.react.bridge
|
|
7
|
+
import com.facebook.react.bridge.Arguments
|
|
8
|
+
import com.facebook.react.bridge.Callback
|
|
9
|
+
import com.facebook.react.bridge.Promise
|
|
10
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
11
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
12
|
+
import com.facebook.react.bridge.ReactMethod
|
|
13
|
+
import com.facebook.react.bridge.ReadableMap
|
|
14
|
+
import com.facebook.react.bridge.ReadableType
|
|
15
|
+
import com.facebook.react.bridge.WritableArray
|
|
16
|
+
import com.facebook.react.bridge.WritableMap
|
|
17
|
+
import com.facebook.react.bridge.WritableNativeArray
|
|
8
18
|
import com.facebook.react.module.annotations.ReactModule
|
|
9
19
|
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
10
20
|
import com.facebook.react.turbomodule.core.interfaces.TurboModule
|
|
@@ -106,7 +116,15 @@ class NamiCampaignManagerBridgeModule internal constructor(
|
|
|
106
116
|
attr.getDouble(key)
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
|
-
ReadableType.Null ->
|
|
119
|
+
ReadableType.Null -> {
|
|
120
|
+
// A JSON null from JS must stay "not set". Coercing it to
|
|
121
|
+
// "" makes the launch-context presence check (raw != null)
|
|
122
|
+
// report it as "set" and reroutes flow branches (NAM-2227).
|
|
123
|
+
// Omit the key so it resolves to null, matching sdk/core and
|
|
124
|
+
// the Apple NSNull->nil normalization (NAM-1368).
|
|
125
|
+
Log.d(NAME, "customAttribute '$key' is null; omitting (treated as not set)")
|
|
126
|
+
continue
|
|
127
|
+
}
|
|
110
128
|
ReadableType.Array -> attr.getArray(key)?.toArrayList() ?: emptyList<Any>()
|
|
111
129
|
ReadableType.Map -> attr.getMap(key)?.toHashMap() ?: emptyMap<String, Any>()
|
|
112
130
|
}
|
|
@@ -140,9 +158,15 @@ class NamiCampaignManagerBridgeModule internal constructor(
|
|
|
140
158
|
}
|
|
141
159
|
|
|
142
160
|
if (context.hasKey("productGroups")) {
|
|
143
|
-
paywallLaunchContext =
|
|
161
|
+
paywallLaunchContext =
|
|
162
|
+
PaywallLaunchContext(
|
|
163
|
+
productGroups = productGroups.toList(),
|
|
164
|
+
customAttributes = customAttributes,
|
|
165
|
+
customObject = customObject,
|
|
166
|
+
)
|
|
144
167
|
} else {
|
|
145
|
-
paywallLaunchContext =
|
|
168
|
+
paywallLaunchContext =
|
|
169
|
+
PaywallLaunchContext(productGroups = null, customAttributes = customAttributes, customObject = customObject)
|
|
146
170
|
}
|
|
147
171
|
}
|
|
148
172
|
|
package/dist/src/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nami-sdk",
|
|
3
|
-
"version": "3.4.4-dev.
|
|
3
|
+
"version": "3.4.4-dev.202606260324",
|
|
4
4
|
"description": "React Native SDK for Nami - No-code paywall and onboarding flows with A/B testing.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
s.requires_arc = true
|
|
22
22
|
s.swift_version = '5.0' # or your supported version
|
|
23
23
|
|
|
24
|
-
s.dependency 'Nami', '3.4.4-dev.
|
|
24
|
+
s.dependency 'Nami', '3.4.4-dev.202606260324'
|
|
25
25
|
|
|
26
26
|
pod_target_xcconfig = {
|
|
27
27
|
'DEFINES_MODULE' => 'YES',
|
package/src/version.ts
CHANGED