react-native-nami-sdk 3.4.0 → 3.4.1-dev.202605262345
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 +2 -2
- package/dist/specs/NativeNamiCampaignManager.d.ts +1 -1
- package/dist/src/types.d.ts +9 -1
- package/dist/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/react-native-nami-sdk.podspec +1 -1
- package/specs/NativeNamiCampaignManager.ts +1 -1
- package/src/types.ts +10 -1
- package/src/version.ts +1 -1
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.
|
|
89
|
-
amazonImplementation "com.namiml:sdk-amazon:3.4.
|
|
88
|
+
playImplementation "com.namiml:sdk-android:3.4.1-dev.202605262345"
|
|
89
|
+
amazonImplementation "com.namiml:sdk-amazon:3.4.1-dev.202605262345"
|
|
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"
|
|
@@ -3,7 +3,7 @@ export interface Spec extends TurboModule {
|
|
|
3
3
|
launch(label: string | null, withUrl: string | null, context: {
|
|
4
4
|
productGroups?: string[];
|
|
5
5
|
customAttributes?: {
|
|
6
|
-
[key: string]: string;
|
|
6
|
+
[key: string]: string | boolean | number;
|
|
7
7
|
};
|
|
8
8
|
customObject?: {
|
|
9
9
|
[key: string]: unknown;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -92,10 +92,18 @@ export declare enum LaunchCampaignResultAction {
|
|
|
92
92
|
export type FailureResultObject = {
|
|
93
93
|
error: string;
|
|
94
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* Permitted value types for entries in {@link PaywallLaunchContext.customAttributes}.
|
|
97
|
+
*
|
|
98
|
+
* Both native primitives and their string equivalents are accepted; the underlying
|
|
99
|
+
* Apple/Android SDKs treat the two wire formats identically when evaluating
|
|
100
|
+
* targeting predicates.
|
|
101
|
+
*/
|
|
102
|
+
export type CustomAttributeValue = string | boolean | number;
|
|
95
103
|
export type PaywallLaunchContext = {
|
|
96
104
|
productGroups?: string[];
|
|
97
105
|
customAttributes: {
|
|
98
|
-
[key: string]:
|
|
106
|
+
[key: string]: CustomAttributeValue;
|
|
99
107
|
};
|
|
100
108
|
customObject?: {
|
|
101
109
|
[key: string]: unknown;
|
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.
|
|
3
|
+
"version": "3.4.1-dev.202605262345",
|
|
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@namiml/expo-nami-iap": "3.4.
|
|
66
|
+
"@namiml/expo-nami-iap": "3.4.1-dev.202605262345",
|
|
67
67
|
"react": ">=18",
|
|
68
68
|
"react-native": ">=0.73"
|
|
69
69
|
},
|
|
@@ -7,7 +7,7 @@ export interface Spec extends TurboModule {
|
|
|
7
7
|
withUrl: string | null,
|
|
8
8
|
context: {
|
|
9
9
|
productGroups?: string[];
|
|
10
|
-
customAttributes?: { [key: string]: string };
|
|
10
|
+
customAttributes?: { [key: string]: string | boolean | number };
|
|
11
11
|
customObject?: { [key: string]: unknown };
|
|
12
12
|
} | null,
|
|
13
13
|
completion: (
|
package/src/types.ts
CHANGED
|
@@ -203,12 +203,21 @@ export type FailureResultObject = {
|
|
|
203
203
|
error: string;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Permitted value types for entries in {@link PaywallLaunchContext.customAttributes}.
|
|
208
|
+
*
|
|
209
|
+
* Both native primitives and their string equivalents are accepted; the underlying
|
|
210
|
+
* Apple/Android SDKs treat the two wire formats identically when evaluating
|
|
211
|
+
* targeting predicates.
|
|
212
|
+
*/
|
|
213
|
+
export type CustomAttributeValue = string | boolean | number;
|
|
214
|
+
|
|
206
215
|
export type PaywallLaunchContext = {
|
|
207
216
|
// Can contain multiple product group identifiers
|
|
208
217
|
productGroups?: string[];
|
|
209
218
|
// Key-value pairs used to override template values
|
|
210
219
|
customAttributes: {
|
|
211
|
-
[key: string]:
|
|
220
|
+
[key: string]: CustomAttributeValue;
|
|
212
221
|
};
|
|
213
222
|
// Custom object used as data source for advanced paywall components
|
|
214
223
|
customObject?: {
|
package/src/version.ts
CHANGED