react-native-nami-sdk 3.4.0 → 3.4.1-dev.202605262144

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.4.0"
89
- amazonImplementation "com.namiml:sdk-amazon:3.4.0"
88
+ playImplementation "com.namiml:sdk-android:3.4.1-dev.202605262144"
89
+ amazonImplementation "com.namiml:sdk-amazon:3.4.1-dev.202605262144"
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;
@@ -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]: string;
106
+ [key: string]: CustomAttributeValue;
99
107
  };
100
108
  customObject?: {
101
109
  [key: string]: unknown;
@@ -2,4 +2,4 @@
2
2
  * Auto-generated file. Do not edit manually.
3
3
  * React Native Nami SDK version.
4
4
  */
5
- export declare const NAMI_REACT_NATIVE_VERSION = "3.4.0";
5
+ export declare const NAMI_REACT_NATIVE_VERSION = "3.4.1-dev.202605262144";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nami-sdk",
3
- "version": "3.4.0",
3
+ "version": "3.4.1-dev.202605262144",
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.0",
66
+ "@namiml/expo-nami-iap": "3.4.1-dev.202605262144",
67
67
  "react": ">=18",
68
68
  "react-native": ">=0.73"
69
69
  },
@@ -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.0'
24
+ s.dependency 'Nami', '3.4.1-dev.202605262144'
25
25
 
26
26
  pod_target_xcconfig = {
27
27
  'DEFINES_MODULE' => 'YES',
@@ -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]: 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
@@ -2,4 +2,4 @@
2
2
  * Auto-generated file. Do not edit manually.
3
3
  * React Native Nami SDK version.
4
4
  */
5
- export const NAMI_REACT_NATIVE_VERSION = '3.4.0';
5
+ export const NAMI_REACT_NATIVE_VERSION = '3.4.1-dev.202605262144';