react-native-nami-sdk 3.2.7 → 3.2.8-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.
@@ -91,7 +91,7 @@ jobs:
91
91
  npx eslint . --ext .js,.jsx,.ts,.tsx
92
92
  working-directory: source/examples/TestNamiTV
93
93
  e2e-ios:
94
- runs-on: macos-12
94
+ runs-on: macos-13
95
95
  env:
96
96
  DETOX_CONFIGURATION: ios.sim.release
97
97
 
@@ -181,12 +181,12 @@ jobs:
181
181
 
182
182
  - name: Upload artifacts
183
183
  if: failure()
184
- uses: actions/upload-artifact@v3
184
+ uses: actions/upload-artifact@v4
185
185
  with:
186
186
  name: detox-artifacts
187
187
  path: artifacts
188
188
  e2e-android:
189
- runs-on: macos-12
189
+ runs-on: macos-13
190
190
  env:
191
191
  DETOX_CONFIGURATION: android.emu.release
192
192
 
@@ -329,7 +329,7 @@ jobs:
329
329
 
330
330
  - name: Upload artifacts
331
331
  if: failure()
332
- uses: actions/upload-artifact@v3
332
+ uses: actions/upload-artifact@v4
333
333
  with:
334
334
  name: detox-artifacts
335
335
  path: artifacts
@@ -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.7"
89
- amazonImplementation "com.namiml:sdk-amazon:3.2.7"
88
+ playImplementation "com.namiml:sdk-android:3.2.8"
89
+ amazonImplementation "com.namiml:sdk-amazon:3.2.8"
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"
@@ -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.2.7")
109
+ val settingsList = mutableListOf("extendedClientInfo:react-native:3.2.8")
110
110
  namiCommandsReact?.toArrayList()?.filterIsInstance<String>()?.let { commandsFromReact ->
111
111
  settingsList.addAll(commandsFromReact)
112
112
  }
@@ -84,6 +84,10 @@ fun NamiSKU.toSkuDict(): WritableMap {
84
84
  productDict.putString("promoId", this.promoId)
85
85
  }
86
86
 
87
+ if (this.promoOfferToken != null) {
88
+ productDict.putString("promoToken", this.promoOfferToken)
89
+ }
90
+
87
91
  return productDict
88
92
  }
89
93
 
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.2.7"]];
53
+ NSMutableArray *namiCommandStrings = [NSMutableArray arrayWithArray:@[@"extendedClientInfo:react-native:3.2.8"]];
54
54
 
55
55
  // Add additional namiCommands app may have sent in.
56
56
  NSObject *appCommandStrings = configDict[@"namiCommands"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nami-sdk",
3
- "version": "3.2.7",
3
+ "version": "3.2.8-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",
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
20
20
  s.source_files = "ios/**/*.{h,m,swift}"
21
21
  s.requires_arc = true
22
22
 
23
- s.dependency 'Nami', '3.2.7'
23
+ s.dependency 'Nami', '3.2.9'
24
24
  s.dependency 'React'
25
25
 
26
26
  end