react-native-nami-sdk 3.2.10-rc.2 → 3.2.11
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/.github/workflows/CI.yaml +13 -7
- package/.github/workflows/app_prod.yaml +36 -6
- package/.github/workflows/app_stg.yaml +31 -7
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/nami/reactlibrary/NamiBridgeModule.kt +1 -1
- package/ios/Nami.m +1 -1
- package/ios/NamiCampaignManagerBridge.swift +3 -2
- package/package.json +1 -1
- package/react-native-nami-sdk.podspec +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
name: CI PR Checks
|
|
2
|
-
|
|
2
|
+
env:
|
|
3
|
+
DEVELOPER_DIR: /Applications/Xcode_16.0.0.app/Contents/Developer
|
|
3
4
|
on: pull_request
|
|
4
5
|
|
|
5
6
|
jobs:
|
|
@@ -91,7 +92,7 @@ jobs:
|
|
|
91
92
|
npx eslint . --ext .js,.jsx,.ts,.tsx
|
|
92
93
|
working-directory: source/examples/TestNamiTV
|
|
93
94
|
e2e-ios:
|
|
94
|
-
runs-on: macos-
|
|
95
|
+
runs-on: macos-15
|
|
95
96
|
env:
|
|
96
97
|
DETOX_CONFIGURATION: ios.sim.release
|
|
97
98
|
|
|
@@ -171,9 +172,10 @@ jobs:
|
|
|
171
172
|
|
|
172
173
|
- name: Detox test
|
|
173
174
|
run: |
|
|
175
|
+
export DETOX_SYNCHRONIZATION_DEBUG=1
|
|
174
176
|
yarn start &
|
|
175
177
|
METRO_BUNDLER_PID=$!
|
|
176
|
-
yarn detox test --configuration ${{ env.DETOX_CONFIGURATION }} e2e/ios --cleanup --headless --record-logs all
|
|
178
|
+
yarn detox test --configuration ${{ env.DETOX_CONFIGURATION }} e2e/ios --cleanup --headless --record-logs all --loglevel trace
|
|
177
179
|
DETOX_EXIT_CODE=$?
|
|
178
180
|
kill $METRO_BUNDLER_PID
|
|
179
181
|
exit $DETOX_EXIT_CODE
|
|
@@ -186,7 +188,7 @@ jobs:
|
|
|
186
188
|
name: detox-artifacts
|
|
187
189
|
path: artifacts
|
|
188
190
|
e2e-android:
|
|
189
|
-
runs-on:
|
|
191
|
+
runs-on: ubuntu-latest
|
|
190
192
|
env:
|
|
191
193
|
DETOX_CONFIGURATION: android.emu.release
|
|
192
194
|
|
|
@@ -223,7 +225,8 @@ jobs:
|
|
|
223
225
|
- name: Update App Platform ID
|
|
224
226
|
working-directory: source/examples/Basic/config/
|
|
225
227
|
run: |
|
|
226
|
-
sed -i
|
|
228
|
+
sed -i "s/ANDROID_PROD_APP_PLATFORM_ID/$BASIC_ANDROID_PROD_APP_PLATFORM_ID/" index.ts
|
|
229
|
+
#sed -i '' -e "s/ANDROID_PROD_APP_PLATFORM_ID/$BASIC_ANDROID_PROD_APP_PLATFORM_ID/" index.ts
|
|
227
230
|
env:
|
|
228
231
|
BASIC_ANDROID_PROD_APP_PLATFORM_ID: '${{ secrets.ANDROID_PROD_APP_PLATFORM_ID }}'
|
|
229
232
|
|
|
@@ -320,11 +323,14 @@ jobs:
|
|
|
320
323
|
with:
|
|
321
324
|
target: aosp_atd
|
|
322
325
|
api-level: 30
|
|
323
|
-
arch:
|
|
326
|
+
arch: x86_64
|
|
327
|
+
disable-animations: true
|
|
328
|
+
ram-size: 4096
|
|
329
|
+
heap-size: 512
|
|
324
330
|
channel: canary
|
|
325
331
|
profile: pixel
|
|
326
332
|
avd-name: Pixel_4_API_34
|
|
327
|
-
script: yarn detox test --configuration ${{ env.DETOX_CONFIGURATION }} e2e/android --headless --record-logs all
|
|
333
|
+
script: yarn detox test --configuration ${{ env.DETOX_CONFIGURATION }} e2e/android --headless --record-logs all --loglevel trace
|
|
328
334
|
working-directory: source/examples/Basic
|
|
329
335
|
|
|
330
336
|
- name: Upload artifacts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: Generate Test React PROD
|
|
2
2
|
env:
|
|
3
|
-
DEVELOPER_DIR: /Applications/
|
|
3
|
+
DEVELOPER_DIR: /Applications/Xcode_16.0.0.app/Contents/Developer
|
|
4
4
|
on:
|
|
5
5
|
workflow_dispatch:
|
|
6
6
|
inputs:
|
|
@@ -137,9 +137,9 @@ jobs:
|
|
|
137
137
|
repository: namiml/appstoreconnect-build-tools
|
|
138
138
|
|
|
139
139
|
- name: Set up Python
|
|
140
|
-
uses: actions/setup-python@
|
|
140
|
+
uses: actions/setup-python@v5
|
|
141
141
|
with:
|
|
142
|
-
python-version: "3.
|
|
142
|
+
python-version: "3.13"
|
|
143
143
|
|
|
144
144
|
- name: Get expected build number
|
|
145
145
|
run: |
|
|
@@ -189,6 +189,8 @@ jobs:
|
|
|
189
189
|
sed -i '' -e "s/CURRENT_PROJECT_VERSION = 1/CURRENT_PROJECT_VERSION = $BUILD_NUMBER/" ios/Basic.xcodeproj/project.pbxproj
|
|
190
190
|
sed -i '' -e "s/MARKETING_VERSION = 1.0/MARKETING_VERSION = $CURRENT_VERSION/" ios/Basic.xcodeproj/project.pbxproj
|
|
191
191
|
sed -i '' -e "s/<string>1<\/string>/<string>$BUILD_NUMBER<\/string>/" ios/Basic/Info.plist
|
|
192
|
+
echo "BUILD_NUMBER=$(cat ~/.next_build_number)" >> $GITHUB_ENV
|
|
193
|
+
echo "CURRENT_VERSION=$(cat ~/.current_version)" >> $GITHUB_ENV
|
|
192
194
|
working-directory: source/examples/Basic
|
|
193
195
|
|
|
194
196
|
- name: Install test app dependencies
|
|
@@ -230,13 +232,29 @@ jobs:
|
|
|
230
232
|
env:
|
|
231
233
|
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
232
234
|
APPSTORE_ISSUER_ID: "${{ secrets.APPSTORE_ISSUER_ID }}"
|
|
235
|
+
|
|
236
|
+
- name: Get PR info
|
|
237
|
+
id: pr
|
|
238
|
+
run: |
|
|
239
|
+
echo "PR_TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
|
|
240
|
+
|
|
241
|
+
- name: Upload PR Title to TestFlight Whats New
|
|
242
|
+
working-directory: appstoreconnect-build-tools
|
|
243
|
+
run: |-
|
|
244
|
+
sleep 120
|
|
245
|
+
python3 upload_testflight_whats_new.py com.namiml.app.testreactnative --notes="${{ env.PR_TITLE }}" --version=${{ env.CURRENT_VERSION }} --platform=IOS --prerelease
|
|
246
|
+
env:
|
|
247
|
+
APPSTORE_API_PRIVATE_KEY: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
|
|
248
|
+
APPSTORE_API_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
|
|
249
|
+
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
|
|
250
|
+
|
|
233
251
|
build-tvos-prod:
|
|
234
252
|
name: Build TestNamiTV tvOS PROD
|
|
235
253
|
permissions:
|
|
236
254
|
actions: write
|
|
237
255
|
contents: write
|
|
238
256
|
id-token: write
|
|
239
|
-
runs-on: macos-
|
|
257
|
+
runs-on: macos-15
|
|
240
258
|
timeout-minutes: 40
|
|
241
259
|
steps:
|
|
242
260
|
- uses: actions/setup-node@v3
|
|
@@ -257,9 +275,9 @@ jobs:
|
|
|
257
275
|
repository: namiml/appstoreconnect-build-tools
|
|
258
276
|
|
|
259
277
|
- name: Set up Python
|
|
260
|
-
uses: actions/setup-python@
|
|
278
|
+
uses: actions/setup-python@v5
|
|
261
279
|
with:
|
|
262
|
-
python-version: "3.
|
|
280
|
+
python-version: "3.13"
|
|
263
281
|
|
|
264
282
|
- name: Get expected build number
|
|
265
283
|
run: |
|
|
@@ -309,6 +327,8 @@ jobs:
|
|
|
309
327
|
sed -i '' -e "s/CURRENT_PROJECT_VERSION = 1/CURRENT_PROJECT_VERSION = $BUILD_NUMBER/" ios/Basic.xcodeproj/project.pbxproj
|
|
310
328
|
sed -i '' -e "s/MARKETING_VERSION = 1.0/MARKETING_VERSION = $CURRENT_VERSION/" ios/Basic.xcodeproj/project.pbxproj
|
|
311
329
|
sed -i '' -e "s/<string>1<\/string>/<string>$BUILD_NUMBER<\/string>/" ios/Info-PROD.plist
|
|
330
|
+
echo "BUILD_NUMBER=$(cat ~/.next_build_number)" >> $GITHUB_ENV
|
|
331
|
+
echo "CURRENT_VERSION=$(cat ~/.current_version)" >> $GITHUB_ENV
|
|
312
332
|
working-directory: source/examples/TestNamiTV
|
|
313
333
|
|
|
314
334
|
- name: Install test app dependencies
|
|
@@ -355,3 +375,13 @@ jobs:
|
|
|
355
375
|
env:
|
|
356
376
|
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
357
377
|
APPSTORE_ISSUER_ID: "${{ secrets.APPSTORE_ISSUER_ID }}"
|
|
378
|
+
|
|
379
|
+
- name: Upload PR Title to TestFlight Whats New
|
|
380
|
+
working-directory: appstoreconnect-build-tools
|
|
381
|
+
run: |-
|
|
382
|
+
sleep 120
|
|
383
|
+
python3 upload_testflight_whats_new.py com.namiml.app.testreactnative --notes="${{ env.PR_TITLE }}" --version=${{ env.CURRENT_VERSION }} --platform=TV_OS --prerelease
|
|
384
|
+
env:
|
|
385
|
+
APPSTORE_API_PRIVATE_KEY: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
|
|
386
|
+
APPSTORE_API_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
|
|
387
|
+
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: Generate Test React STG
|
|
2
2
|
env:
|
|
3
|
-
DEVELOPER_DIR: /Applications/
|
|
3
|
+
DEVELOPER_DIR: /Applications/Xcode_16.0.0.app/Contents/Developer
|
|
4
4
|
on:
|
|
5
5
|
workflow_dispatch:
|
|
6
6
|
inputs:
|
|
@@ -116,7 +116,7 @@ jobs:
|
|
|
116
116
|
actions: write
|
|
117
117
|
contents: write
|
|
118
118
|
id-token: write
|
|
119
|
-
runs-on: macos-
|
|
119
|
+
runs-on: macos-15
|
|
120
120
|
timeout-minutes: 40
|
|
121
121
|
steps:
|
|
122
122
|
- uses: actions/setup-node@v3
|
|
@@ -137,9 +137,9 @@ jobs:
|
|
|
137
137
|
repository: namiml/appstoreconnect-build-tools
|
|
138
138
|
|
|
139
139
|
- name: Set up Python
|
|
140
|
-
uses: actions/setup-python@
|
|
140
|
+
uses: actions/setup-python@v5
|
|
141
141
|
with:
|
|
142
|
-
python-version: "3.
|
|
142
|
+
python-version: "3.13"
|
|
143
143
|
|
|
144
144
|
- name: Get expected build number
|
|
145
145
|
run: |
|
|
@@ -189,6 +189,8 @@ jobs:
|
|
|
189
189
|
sed -i '' -e "s/CURRENT_PROJECT_VERSION = 1/CURRENT_PROJECT_VERSION = $BUILD_NUMBER/" ios/Basic.xcodeproj/project.pbxproj
|
|
190
190
|
sed -i '' -e "s/MARKETING_VERSION = 1.0/MARKETING_VERSION = $CURRENT_VERSION/" ios/Basic.xcodeproj/project.pbxproj
|
|
191
191
|
sed -i '' -e "s/<string>1<\/string>/<string>$BUILD_NUMBER<\/string>/" ios/Basic/Info.plist
|
|
192
|
+
echo "BUILD_NUMBER=$(cat ~/.next_build_number)" >> $GITHUB_ENV
|
|
193
|
+
echo "CURRENT_VERSION=$(cat ~/.current_version)" >> $GITHUB_ENV
|
|
192
194
|
working-directory: source/examples/Basic
|
|
193
195
|
|
|
194
196
|
- name: Install test app dependencies
|
|
@@ -235,13 +237,23 @@ jobs:
|
|
|
235
237
|
env:
|
|
236
238
|
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
237
239
|
APPSTORE_ISSUER_ID: "${{ secrets.APPSTORE_ISSUER_ID }}"
|
|
240
|
+
|
|
241
|
+
- name: Upload PR Title to TestFlight Whats New
|
|
242
|
+
working-directory: appstoreconnect-build-tools
|
|
243
|
+
run: |-
|
|
244
|
+
sleep 120
|
|
245
|
+
python3 upload_testflight_whats_new.py com.namiml.stg.testreactnative --notes="${{ env.PR_TITLE }}" --version=${{ env.CURRENT_VERSION }} --platform=IOS --prerelease
|
|
246
|
+
env:
|
|
247
|
+
APPSTORE_API_PRIVATE_KEY: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
|
|
248
|
+
APPSTORE_API_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
|
|
249
|
+
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
|
|
238
250
|
build-tvos-stg:
|
|
239
251
|
name: Build TestNamiTV tvOS STG
|
|
240
252
|
permissions:
|
|
241
253
|
actions: write
|
|
242
254
|
contents: write
|
|
243
255
|
id-token: write
|
|
244
|
-
runs-on: macos-
|
|
256
|
+
runs-on: macos-15
|
|
245
257
|
timeout-minutes: 40
|
|
246
258
|
steps:
|
|
247
259
|
- uses: actions/setup-node@v3
|
|
@@ -262,9 +274,9 @@ jobs:
|
|
|
262
274
|
repository: namiml/appstoreconnect-build-tools
|
|
263
275
|
|
|
264
276
|
- name: Set up Python
|
|
265
|
-
uses: actions/setup-python@
|
|
277
|
+
uses: actions/setup-python@v5
|
|
266
278
|
with:
|
|
267
|
-
python-version: "3.
|
|
279
|
+
python-version: "3.13"
|
|
268
280
|
|
|
269
281
|
- name: Get expected build number
|
|
270
282
|
run: |
|
|
@@ -314,6 +326,8 @@ jobs:
|
|
|
314
326
|
sed -i '' -e "s/CURRENT_PROJECT_VERSION = 1/CURRENT_PROJECT_VERSION = $BUILD_NUMBER/" ios/Basic.xcodeproj/project.pbxproj
|
|
315
327
|
sed -i '' -e "s/MARKETING_VERSION = 1.0/MARKETING_VERSION = $CURRENT_VERSION/" ios/Basic.xcodeproj/project.pbxproj
|
|
316
328
|
sed -i '' -e "s/<string>1<\/string>/<string>$BUILD_NUMBER<\/string>/" ios/Info-STG.plist
|
|
329
|
+
echo "BUILD_NUMBER=$(cat ~/.next_build_number)" >> $GITHUB_ENV
|
|
330
|
+
echo "CURRENT_VERSION=$(cat ~/.current_version)" >> $GITHUB_ENV
|
|
317
331
|
working-directory: source/examples/TestNamiTV
|
|
318
332
|
|
|
319
333
|
- name: Install test app dependencies
|
|
@@ -360,3 +374,13 @@ jobs:
|
|
|
360
374
|
env:
|
|
361
375
|
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
362
376
|
APPSTORE_ISSUER_ID: "${{ secrets.APPSTORE_ISSUER_ID }}"
|
|
377
|
+
|
|
378
|
+
- name: Upload PR Title to TestFlight Whats New
|
|
379
|
+
working-directory: appstoreconnect-build-tools
|
|
380
|
+
run: |-
|
|
381
|
+
sleep 120
|
|
382
|
+
python3 upload_testflight_whats_new.py com.namiml.stg.testreactnative --notes="${{ env.PR_TITLE }}" --version=${{ env.CURRENT_VERSION }} --platform=TV_OS --prerelease
|
|
383
|
+
env:
|
|
384
|
+
APPSTORE_API_PRIVATE_KEY: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
|
|
385
|
+
APPSTORE_API_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
|
|
386
|
+
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
|
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.2.
|
|
89
|
-
amazonImplementation "com.namiml:sdk-amazon:3.2.
|
|
88
|
+
playImplementation "com.namiml:sdk-android:3.2.11"
|
|
89
|
+
amazonImplementation "com.namiml:sdk-amazon:3.2.11"
|
|
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.
|
|
109
|
+
val settingsList = mutableListOf("extendedClientInfo:react-native:3.2.11")
|
|
110
110
|
namiCommandsReact?.toArrayList()?.filterIsInstance<String>()?.let { commandsFromReact ->
|
|
111
111
|
settingsList.addAll(commandsFromReact)
|
|
112
112
|
}
|
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.
|
|
53
|
+
NSMutableArray *namiCommandStrings = [NSMutableArray arrayWithArray:@[@"extendedClientInfo:react-native:3.2.11"]];
|
|
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.
|
|
3
|
+
"version": "3.2.11",
|
|
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",
|