react-native-nami-sdk 3.2.11 → 3.3.0-2
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/.prettierrc +4 -0
- package/README.md +9 -9
- package/android/README.md +3 -2
- package/android/build.gradle +27 -19
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradlew +0 -0
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/namiml/reactnative/Constants.kt +3 -0
- package/android/src/main/java/com/namiml/reactnative/NamiBridgeModule.kt +91 -0
- package/android/src/main/java/com/namiml/reactnative/NamiBridgePackage.java +140 -0
- package/android/src/main/java/com/{nami/reactlibrary → namiml/reactnative}/NamiCampaignManagerBridge.kt +26 -32
- package/android/src/main/java/com/{nami/reactlibrary → namiml/reactnative}/NamiCustomerManagerBridge.kt +14 -6
- package/android/src/main/java/com/{nami/reactlibrary/NamiEntitlementManagerBridgeModule.kt → namiml/reactnative/NamiEntitlementManagerBridge.kt} +18 -8
- package/android/src/main/java/com/namiml/reactnative/NamiFlowManagerBridge.kt +67 -0
- package/android/src/main/java/com/namiml/reactnative/NamiPaywallManagerBridgeModule.kt +196 -0
- package/android/src/main/java/com/namiml/reactnative/NamiPurchaseManagerBridge.kt +114 -0
- package/android/src/main/java/com/{nami/reactlibrary → namiml/reactnative}/NamiUtil.kt +26 -23
- package/{index.d.ts → dist/index.d.ts} +1 -2
- package/dist/specs/NativeNami.d.ts +15 -0
- package/dist/specs/NativeNamiCampaignManager.d.ts +82 -0
- package/dist/specs/NativeNamiCustomerManager.d.ts +29 -0
- package/dist/specs/NativeNamiEntitlementManager.d.ts +45 -0
- package/dist/specs/NativeNamiFlowManager.d.ts +8 -0
- package/dist/specs/NativeNamiPaywallManager.d.ts +71 -0
- package/dist/specs/NativeNamiPurchaseManager.d.ts +28 -0
- package/dist/src/Nami.d.ts +5 -0
- package/dist/src/NamiCampaignManager.d.ts +29 -0
- package/{src → dist/src}/NamiCustomerManager.d.ts +11 -13
- package/dist/src/NamiEntitlementManager.d.ts +13 -0
- package/dist/src/NamiFlowManager.d.ts +11 -0
- package/dist/src/NamiPaywallManager.d.ts +30 -0
- package/dist/src/NamiPurchaseManager.d.ts +17 -0
- package/dist/src/transformers.d.ts +3 -0
- package/{src → dist/src}/types.d.ts +41 -11
- package/dist/src/version.d.ts +5 -0
- package/index.ts +1 -2
- package/ios/Nami.m +8 -88
- package/ios/Nami.swift +85 -0
- package/ios/NamiCampaignManagerBridge.m +3 -3
- package/ios/NamiCampaignManagerBridge.swift +50 -62
- package/ios/NamiCustomerManager.m +2 -2
- package/ios/NamiCustomerManager.swift +13 -3
- package/ios/NamiEntitlementManagerBridge.m +2 -3
- package/ios/NamiEntitlementManagerBridge.swift +48 -39
- package/ios/NamiFlowManagerBridge.m +20 -0
- package/ios/NamiFlowManagerBridge.swift +57 -0
- package/ios/NamiPaywallManagerBridge.m +3 -3
- package/ios/NamiPaywallManagerBridge.swift +16 -6
- package/ios/NamiPurchaseManagerBridge.m +3 -2
- package/ios/NamiPurchaseManagerBridge.swift +15 -10
- package/ios/RNNami-Bridging-Header.h +1 -3
- package/package.json +20 -8
- package/react-native-config.js +9 -0
- package/react-native-nami-sdk.podspec +11 -3
- package/scripts/generate-version.ts +18 -0
- package/specs/NativeNami.ts +16 -0
- package/specs/NativeNamiCampaignManager.ts +94 -0
- package/specs/NativeNamiCustomerManager.ts +37 -0
- package/specs/NativeNamiEntitlementManager.ts +54 -0
- package/specs/NativeNamiFlowManager.ts +12 -0
- package/specs/NativeNamiPaywallManager.ts +85 -0
- package/specs/NativeNamiPurchaseManager.ts +33 -0
- package/src/Nami.ts +28 -18
- package/src/NamiCampaignManager.ts +57 -53
- package/src/NamiCustomerManager.ts +68 -58
- package/src/NamiEntitlementManager.ts +49 -36
- package/src/NamiFlowManager.ts +56 -0
- package/src/NamiPaywallManager.ts +84 -139
- package/src/NamiPurchaseManager.ts +69 -70
- package/src/transformers.ts +21 -0
- package/src/types.ts +39 -7
- package/src/version.ts +5 -0
- package/tsconfig.json +24 -22
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -52
- package/.github/workflows/CI.yaml +0 -341
- package/.github/workflows/app_prod.yaml +0 -387
- package/.github/workflows/app_stg.yaml +0 -386
- package/.github/workflows/build.yml +0 -70
- package/.pre-commit-config.yaml +0 -24
- package/.prettierrc.js +0 -7
- package/android/.project +0 -17
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/src/main/java/com/nami/reactlibrary/Constants.kt +0 -3
- package/android/src/main/java/com/nami/reactlibrary/NamiBridgeModule.kt +0 -141
- package/android/src/main/java/com/nami/reactlibrary/NamiBridgePackage.java +0 -50
- package/android/src/main/java/com/nami/reactlibrary/NamiMLManagerBridgeModule.kt +0 -58
- package/android/src/main/java/com/nami/reactlibrary/NamiManagerBridge.kt +0 -26
- package/android/src/main/java/com/nami/reactlibrary/NamiPaywallManagerBridgeModule.kt +0 -258
- package/android/src/main/java/com/nami/reactlibrary/NamiPurchaseManagerBridge.kt +0 -108
- package/build-utils/get_version_code.py +0 -140
- package/build-utils/preflight.py +0 -46
- package/ios/NamiMLManagerBridge.m +0 -93
- package/ios/NamiManager.m +0 -18
- package/ios/NamiManager.swift +0 -30
- package/ios/RNNami.h +0 -10
- package/ios/RNNami.m +0 -13
- package/ios/RNNami.xcodeproj/project.pbxproj +0 -365
- package/ios/RNNami.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RNNami.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/RNNami.xcodeproj/xcshareddata/xcschemes/RNNami.xcscheme +0 -67
- package/ios/RNNami.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RNNami.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/src/Nami.d.ts +0 -8
- package/src/NamiCampaignManager.d.ts +0 -18
- package/src/NamiEntitlementManager.d.ts +0 -15
- package/src/NamiMLManager.d.ts +0 -7
- package/src/NamiMLManager.ts +0 -13
- package/src/NamiManager.d.ts +0 -5
- package/src/NamiManager.ts +0 -14
- package/src/NamiPaywallManager.d.ts +0 -34
- package/src/NamiPurchaseManager.d.ts +0 -20
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
name: Generate Test React STG
|
|
2
|
-
env:
|
|
3
|
-
DEVELOPER_DIR: /Applications/Xcode_16.0.0.app/Contents/Developer
|
|
4
|
-
on:
|
|
5
|
-
workflow_dispatch:
|
|
6
|
-
inputs:
|
|
7
|
-
ref:
|
|
8
|
-
default: main
|
|
9
|
-
description: "Git Tag, Branch or SHA to build"
|
|
10
|
-
required: true
|
|
11
|
-
secrets:
|
|
12
|
-
BUILD_USER_PAT:
|
|
13
|
-
required: true
|
|
14
|
-
|
|
15
|
-
pull_request:
|
|
16
|
-
types:
|
|
17
|
-
- closed
|
|
18
|
-
branches:
|
|
19
|
-
- main
|
|
20
|
-
secrets:
|
|
21
|
-
BUILD_USER_PAT:
|
|
22
|
-
required: true
|
|
23
|
-
|
|
24
|
-
jobs:
|
|
25
|
-
build-android-stg:
|
|
26
|
-
name: Generate Play Store STG
|
|
27
|
-
permissions:
|
|
28
|
-
actions: write
|
|
29
|
-
contents: write
|
|
30
|
-
id-token: write
|
|
31
|
-
runs-on: ubuntu-latest
|
|
32
|
-
steps:
|
|
33
|
-
- uses: actions/setup-node@v3
|
|
34
|
-
with:
|
|
35
|
-
node-version: "18"
|
|
36
|
-
|
|
37
|
-
- name: 'Checkout ${{ inputs.ref }}'
|
|
38
|
-
uses: actions/checkout@v2
|
|
39
|
-
with:
|
|
40
|
-
path: source
|
|
41
|
-
ref: '${{ inputs.ref }}'
|
|
42
|
-
|
|
43
|
-
- name: Setup Java
|
|
44
|
-
uses: actions/setup-java@v3
|
|
45
|
-
with:
|
|
46
|
-
cache: gradle
|
|
47
|
-
distribution: temurin
|
|
48
|
-
java-version: 17
|
|
49
|
-
|
|
50
|
-
- name: Install Google API python client
|
|
51
|
-
run: |
|
|
52
|
-
pip install google-api-python-client
|
|
53
|
-
|
|
54
|
-
- name: Get new version code
|
|
55
|
-
run: |
|
|
56
|
-
echo $GOOGLE_PLAY_SERVICE_ACCOUNT > $RUNNER_TEMP/.service_account
|
|
57
|
-
python3 build-utils/get_version_code.py $RUNNER_TEMP/.service_account com.namiml.stg.testreactnative internal --quiet >> $RUNNER_TEMP/.new_version_code
|
|
58
|
-
rm -f .service_account
|
|
59
|
-
env:
|
|
60
|
-
GOOGLE_PLAY_SERVICE_ACCOUNT: '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}'
|
|
61
|
-
working-directory: source
|
|
62
|
-
|
|
63
|
-
- name: Update version code
|
|
64
|
-
working-directory: source/examples/Basic/android/app
|
|
65
|
-
run: |
|
|
66
|
-
NEW_VERSION_CODE=`cat $RUNNER_TEMP/.new_version_code`
|
|
67
|
-
echo $NEW_VERSION_CODE
|
|
68
|
-
sed -i "s/versionCode 1/versionCode $NEW_VERSION_CODE/" build.gradle
|
|
69
|
-
|
|
70
|
-
- name: Update App Platform ID
|
|
71
|
-
working-directory: source/examples/Basic/config/
|
|
72
|
-
run: |
|
|
73
|
-
sed -i "s/ANDROID_STG_APP_PLATFORM_ID/$BASIC_ANDROID_STG_APP_PLATFORM_ID/" index.ts
|
|
74
|
-
env:
|
|
75
|
-
BASIC_ANDROID_STG_APP_PLATFORM_ID: '${{ secrets.ANDROID_STG_APP_PLATFORM_ID }}'
|
|
76
|
-
|
|
77
|
-
- name: Create the Keystore
|
|
78
|
-
run: |
|
|
79
|
-
# import keystore from secrets
|
|
80
|
-
echo $KEYSTORE_BASE64 | base64 -d > $RUNNER_TEMP/my_production.keystore
|
|
81
|
-
env:
|
|
82
|
-
KEYSTORE_BASE64: '${{ secrets.KEY_STORE_BASE64 }}'
|
|
83
|
-
|
|
84
|
-
- name: Install test app dependencies
|
|
85
|
-
run: |
|
|
86
|
-
yarn install
|
|
87
|
-
working-directory: source/examples/Basic
|
|
88
|
-
|
|
89
|
-
- name: Manually create the bundle
|
|
90
|
-
run: |
|
|
91
|
-
mkdir -p android/app/src/main/assets/
|
|
92
|
-
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
|
|
93
|
-
working-directory: source/examples/Basic
|
|
94
|
-
|
|
95
|
-
- name: Build Android App Bundle
|
|
96
|
-
run: |
|
|
97
|
-
./gradlew clean bundleStagingRelease
|
|
98
|
-
working-directory: source/examples/Basic/android
|
|
99
|
-
|
|
100
|
-
- name: Sign Android App Bundle
|
|
101
|
-
run: |
|
|
102
|
-
jarsigner -keystore $RUNNER_TEMP/my_production.keystore -storepass '${{ secrets.KEY_STORE_PASSWORD }}' -keypass '${{ secrets.KEY_PASSWORD }}' -sigalg SHA256withRSA -digestalg SHA-256 -signedjar build/outputs/bundle/stagingRelease/app-staging-release-signed.aab build/outputs/bundle/stagingRelease/app-staging-release.aab '${{ secrets.KEY_ALIAS }}'
|
|
103
|
-
working-directory: source/examples/Basic/android/app
|
|
104
|
-
|
|
105
|
-
- name: Uploading to test track
|
|
106
|
-
uses: r0adkll/upload-google-play@v1.0.17
|
|
107
|
-
with:
|
|
108
|
-
packageName: 'com.namiml.stg.testreactnative'
|
|
109
|
-
releaseFiles: source/examples/Basic/android/app/build/outputs/bundle/stagingRelease/app-staging-release-signed.aab
|
|
110
|
-
serviceAccountJsonPlainText: '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}'
|
|
111
|
-
status: completed
|
|
112
|
-
track: internal
|
|
113
|
-
build-ios-stg:
|
|
114
|
-
name: Generate Apple STG
|
|
115
|
-
permissions:
|
|
116
|
-
actions: write
|
|
117
|
-
contents: write
|
|
118
|
-
id-token: write
|
|
119
|
-
runs-on: macos-15
|
|
120
|
-
timeout-minutes: 40
|
|
121
|
-
steps:
|
|
122
|
-
- uses: actions/setup-node@v3
|
|
123
|
-
with:
|
|
124
|
-
node-version: "18"
|
|
125
|
-
|
|
126
|
-
- name: "Checkout ${{ inputs.ref }}"
|
|
127
|
-
uses: actions/checkout@v2
|
|
128
|
-
with:
|
|
129
|
-
path: source
|
|
130
|
-
ref: "${{ inputs.ref }}"
|
|
131
|
-
|
|
132
|
-
- name: Checkout appstoreconnect-build-tools
|
|
133
|
-
uses: actions/checkout@v2
|
|
134
|
-
with:
|
|
135
|
-
path: appstoreconnect-build-tools
|
|
136
|
-
ref: main
|
|
137
|
-
repository: namiml/appstoreconnect-build-tools
|
|
138
|
-
|
|
139
|
-
- name: Set up Python
|
|
140
|
-
uses: actions/setup-python@v5
|
|
141
|
-
with:
|
|
142
|
-
python-version: "3.13"
|
|
143
|
-
|
|
144
|
-
- name: Get expected build number
|
|
145
|
-
run: |
|
|
146
|
-
pip3 install requests
|
|
147
|
-
pip3 install pydantic==1.10.11
|
|
148
|
-
pip3 install cryptography
|
|
149
|
-
pip3 install PyJWT
|
|
150
|
-
echo "1.0" > $RUNNER_TEMP/.current_version
|
|
151
|
-
export CURRENT_VERSION=`cat $RUNNER_TEMP/.current_version`
|
|
152
|
-
python3 get_next_build.py com.namiml.stg.testreactnative --prerelease --version=$CURRENT_VERSION --platform=IOS > $RUNNER_TEMP/.next_build_number
|
|
153
|
-
working-directory: appstoreconnect-build-tools
|
|
154
|
-
env:
|
|
155
|
-
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
156
|
-
APPSTORE_API_PRIVATE_KEY: "${{ secrets.APPSTORE_API_PRIVATE_KEY }}"
|
|
157
|
-
APPSTORE_ISSUER_ID: "${{ secrets.APPSTORE_ISSUER_ID }}"
|
|
158
|
-
|
|
159
|
-
- name: Install Apple Certificate
|
|
160
|
-
uses: apple-actions/import-codesign-certs@v1
|
|
161
|
-
with:
|
|
162
|
-
p12-file-base64: "${{ secrets.IOS_P12_BASE64 }}"
|
|
163
|
-
p12-password: "${{ secrets.IOS_CERTIFICATE_PASSWORD }}"
|
|
164
|
-
|
|
165
|
-
- name: Install the provisioning profile
|
|
166
|
-
run: |
|
|
167
|
-
PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
|
|
168
|
-
echo -n "$PROVISIONING_CERTIFICATE_BASE64" | base64 --decode -o $PP_PATH
|
|
169
|
-
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
|
170
|
-
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
|
|
171
|
-
env:
|
|
172
|
-
PROVISIONING_CERTIFICATE_BASE64: "${{ secrets.IOS_MOBILE_PROVISION_BASE64_TEST_REACT_STG }}"
|
|
173
|
-
|
|
174
|
-
- name: Store App Store Private Key
|
|
175
|
-
run: |
|
|
176
|
-
mkdir ~/.private_keys
|
|
177
|
-
echo '${{ secrets.APPSTORE_API_PRIVATE_KEY }}' > ~/.private_keys/AuthKey_'${{ secrets.APPSTORE_API_KEY_ID }}'.p8
|
|
178
|
-
|
|
179
|
-
- name: Update ExportOptions.plist
|
|
180
|
-
run: |
|
|
181
|
-
sed -i '' -e "s/APPSTORE_TEAM_ID/${{ secrets.APPSTORE_TEAM_ID }}/" ExportOptions.plist
|
|
182
|
-
sed -i '' -e "s/APPSTORE_PROVISIONING_PROFILE_UUID/${{ secrets.APPSTORE_PROV_PROFILE_UUID_TEST_REACT_STG }}/g" ExportOptions.plist
|
|
183
|
-
working-directory: source/examples/Basic/ios
|
|
184
|
-
|
|
185
|
-
- name: Adjust version & build number
|
|
186
|
-
run: |-
|
|
187
|
-
export CURRENT_VERSION=`cat $RUNNER_TEMP/.current_version`
|
|
188
|
-
export BUILD_NUMBER=`cat $RUNNER_TEMP/.next_build_number`
|
|
189
|
-
sed -i '' -e "s/CURRENT_PROJECT_VERSION = 1/CURRENT_PROJECT_VERSION = $BUILD_NUMBER/" ios/Basic.xcodeproj/project.pbxproj
|
|
190
|
-
sed -i '' -e "s/MARKETING_VERSION = 1.0/MARKETING_VERSION = $CURRENT_VERSION/" ios/Basic.xcodeproj/project.pbxproj
|
|
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
|
|
194
|
-
working-directory: source/examples/Basic
|
|
195
|
-
|
|
196
|
-
- name: Install test app dependencies
|
|
197
|
-
run: |
|
|
198
|
-
yarn install
|
|
199
|
-
working-directory: source/examples/Basic
|
|
200
|
-
|
|
201
|
-
- name: Update App Platform ID
|
|
202
|
-
working-directory: source/examples/Basic/config/
|
|
203
|
-
run: |
|
|
204
|
-
sed -i '' -e "s/APPLE_STG_APP_PLATFORM_ID/$BASIC_APPLE_STG_APP_PLATFORM_ID/" index.ts
|
|
205
|
-
env:
|
|
206
|
-
BASIC_APPLE_STG_APP_PLATFORM_ID: '${{ secrets.APPLE_STG_APP_PLATFORM_ID }}'
|
|
207
|
-
|
|
208
|
-
- name: Install test iOS dependencies
|
|
209
|
-
run: |
|
|
210
|
-
pod install --repo-update
|
|
211
|
-
working-directory: source/examples/Basic/ios
|
|
212
|
-
|
|
213
|
-
# - name: Apply Patches
|
|
214
|
-
# run: |
|
|
215
|
-
# patch -p0 < *.patch
|
|
216
|
-
# working-directory: source/examples/Basic/patches
|
|
217
|
-
|
|
218
|
-
- name: Build resolve Swift dependencies
|
|
219
|
-
run: |
|
|
220
|
-
xcodebuild -resolvePackageDependencies -workspace ios/Basic.xcworkspace -scheme Basic -configuration Release
|
|
221
|
-
working-directory: source/examples/Basic
|
|
222
|
-
|
|
223
|
-
- name: Build xArchive
|
|
224
|
-
run: |
|
|
225
|
-
xcodebuild -workspace ios/Basic.xcworkspace -scheme Basic -configuration Release DEVELOPMENT_TEAM='${{ secrets.APPSTORE_TEAM_ID }}' -sdk 'iphoneos' -destination 'generic/platform=iOS' -archivePath build-output/app-stg.xcarchive PROVISIONING_PROFILE='${{ secrets.APPSTORE_PROV_PROFILE_UUID_TEST_REACT_STG }}' clean archive CODE_SIGN_IDENTITY='${{ secrets.CODE_SIGNING_IDENTITY }}'
|
|
226
|
-
working-directory: source/examples/Basic
|
|
227
|
-
|
|
228
|
-
- name: Export IPA
|
|
229
|
-
run: |
|
|
230
|
-
xcodebuild -exportArchive -archivePath build-output/app-stg.xcarchive -exportPath build-output/ios-stg -exportOptionsPlist ios/ExportOptions.plist
|
|
231
|
-
working-directory: source/examples/Basic
|
|
232
|
-
|
|
233
|
-
- name: Upload app to TestFlight
|
|
234
|
-
run: |
|
|
235
|
-
xcrun altool --upload-app --type ios --file build-output/ios-stg/Basic.ipa --apiKey $APPSTORE_API_KEY_ID --apiIssuer $APPSTORE_ISSUER_ID
|
|
236
|
-
working-directory: source/examples/Basic
|
|
237
|
-
env:
|
|
238
|
-
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
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 }}
|
|
250
|
-
build-tvos-stg:
|
|
251
|
-
name: Build TestNamiTV tvOS STG
|
|
252
|
-
permissions:
|
|
253
|
-
actions: write
|
|
254
|
-
contents: write
|
|
255
|
-
id-token: write
|
|
256
|
-
runs-on: macos-15
|
|
257
|
-
timeout-minutes: 40
|
|
258
|
-
steps:
|
|
259
|
-
- uses: actions/setup-node@v3
|
|
260
|
-
with:
|
|
261
|
-
node-version: "18"
|
|
262
|
-
|
|
263
|
-
- name: "Checkout ${{ inputs.ref }}"
|
|
264
|
-
uses: actions/checkout@v2
|
|
265
|
-
with:
|
|
266
|
-
path: source
|
|
267
|
-
ref: "${{ inputs.ref }}"
|
|
268
|
-
|
|
269
|
-
- name: Checkout appstoreconnect-build-tools
|
|
270
|
-
uses: actions/checkout@v2
|
|
271
|
-
with:
|
|
272
|
-
path: appstoreconnect-build-tools
|
|
273
|
-
ref: main
|
|
274
|
-
repository: namiml/appstoreconnect-build-tools
|
|
275
|
-
|
|
276
|
-
- name: Set up Python
|
|
277
|
-
uses: actions/setup-python@v5
|
|
278
|
-
with:
|
|
279
|
-
python-version: "3.13"
|
|
280
|
-
|
|
281
|
-
- name: Get expected build number
|
|
282
|
-
run: |
|
|
283
|
-
pip3 install requests
|
|
284
|
-
pip3 install pydantic==1.10.11
|
|
285
|
-
pip3 install cryptography
|
|
286
|
-
pip3 install PyJWT
|
|
287
|
-
echo "1.0" > $RUNNER_TEMP/.current_version
|
|
288
|
-
export CURRENT_VERSION=`cat $RUNNER_TEMP/.current_version`
|
|
289
|
-
python3 get_next_build.py com.namiml.stg.testreactnative --prerelease --platform=TV_OS > $RUNNER_TEMP/.next_build_number
|
|
290
|
-
working-directory: appstoreconnect-build-tools
|
|
291
|
-
env:
|
|
292
|
-
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
293
|
-
APPSTORE_API_PRIVATE_KEY: "${{ secrets.APPSTORE_API_PRIVATE_KEY }}"
|
|
294
|
-
APPSTORE_ISSUER_ID: "${{ secrets.APPSTORE_ISSUER_ID }}"
|
|
295
|
-
|
|
296
|
-
- name: Install Apple Certificate
|
|
297
|
-
uses: apple-actions/import-codesign-certs@v1
|
|
298
|
-
with:
|
|
299
|
-
p12-file-base64: "${{ secrets.IOS_P12_BASE64 }}"
|
|
300
|
-
p12-password: "${{ secrets.IOS_CERTIFICATE_PASSWORD }}"
|
|
301
|
-
|
|
302
|
-
- name: Install the provisioning profile
|
|
303
|
-
run: |
|
|
304
|
-
PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
|
|
305
|
-
echo -n "$PROVISIONING_CERTIFICATE_BASE64" | base64 --decode -o $PP_PATH
|
|
306
|
-
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
|
307
|
-
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
|
|
308
|
-
env:
|
|
309
|
-
PROVISIONING_CERTIFICATE_BASE64: "${{ secrets.IOS_MOBILE_PROVISION_BASE64_TEST_REACT_TVOS_STG }}"
|
|
310
|
-
|
|
311
|
-
- name: Store App Store Private Key
|
|
312
|
-
run: |
|
|
313
|
-
mkdir ~/.private_keys
|
|
314
|
-
echo '${{ secrets.APPSTORE_API_PRIVATE_KEY }}' > ~/.private_keys/AuthKey_'${{ secrets.APPSTORE_API_KEY_ID }}'.p8
|
|
315
|
-
|
|
316
|
-
- name: Update ExportOptions.plist
|
|
317
|
-
run: |
|
|
318
|
-
sed -i '' -e "s/APPSTORE_TEAM_ID/${{ secrets.APPSTORE_TEAM_ID }}/" ExportOptions.plist
|
|
319
|
-
sed -i '' -e "s/APPSTORE_PROVISIONING_PROFILE_UUID/${{ secrets.APPSTORE_PROV_PROFILE_UUID_TEST_REACT_TVOS_STG }}/g" ExportOptions.plist
|
|
320
|
-
working-directory: source/examples/TestNamiTV/ios
|
|
321
|
-
|
|
322
|
-
- name: Adjust version & build number
|
|
323
|
-
run: |-
|
|
324
|
-
export CURRENT_VERSION=`cat $RUNNER_TEMP/.current_version`
|
|
325
|
-
export BUILD_NUMBER=`cat $RUNNER_TEMP/.next_build_number`
|
|
326
|
-
sed -i '' -e "s/CURRENT_PROJECT_VERSION = 1/CURRENT_PROJECT_VERSION = $BUILD_NUMBER/" ios/Basic.xcodeproj/project.pbxproj
|
|
327
|
-
sed -i '' -e "s/MARKETING_VERSION = 1.0/MARKETING_VERSION = $CURRENT_VERSION/" ios/Basic.xcodeproj/project.pbxproj
|
|
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
|
|
331
|
-
working-directory: source/examples/TestNamiTV
|
|
332
|
-
|
|
333
|
-
- name: Install test app dependencies
|
|
334
|
-
run: |
|
|
335
|
-
yarn install
|
|
336
|
-
working-directory: source/examples/TestNamiTV
|
|
337
|
-
|
|
338
|
-
- name: Update App Platform ID
|
|
339
|
-
working-directory: source/examples/TestNamiTV/config/
|
|
340
|
-
run: |
|
|
341
|
-
sed -i '' -e "s/APPLE_STAGE_APP_PLATFORM_ID/$TESTNAMITV_APPLE_STG_APP_PLATFORM_ID/" index.ts
|
|
342
|
-
env:
|
|
343
|
-
TESTNAMITV_APPLE_STG_APP_PLATFORM_ID: '${{ secrets.APPLE_STG_APP_PLATFORM_ID }}'
|
|
344
|
-
|
|
345
|
-
- name: Install test tvOS dependencies
|
|
346
|
-
run: |
|
|
347
|
-
RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install --repo-update
|
|
348
|
-
working-directory: source/examples/TestNamiTV/ios
|
|
349
|
-
|
|
350
|
-
# - name: Apply Patches
|
|
351
|
-
# run: |
|
|
352
|
-
# patch -p0 < *.patch
|
|
353
|
-
# working-directory: source/examples/TestNamiTV/patches
|
|
354
|
-
|
|
355
|
-
- name: Build resolve Swift dependencies
|
|
356
|
-
run: |
|
|
357
|
-
xcodebuild -resolvePackageDependencies -workspace ios/Basic.xcworkspace -scheme Basic-tvOS -configuration Release
|
|
358
|
-
working-directory: source/examples/TestNamiTV
|
|
359
|
-
|
|
360
|
-
- name: Build xArchive
|
|
361
|
-
run: |
|
|
362
|
-
xcodebuild -workspace ios/Basic.xcworkspace -scheme Basic-tvOS -configuration Release DEVELOPMENT_TEAM='${{ secrets.APPSTORE_TEAM_ID }}' -sdk 'appletvos' -destination 'generic/platform=tvOS' -archivePath build-output/app-stg.xcarchive PROVISIONING_PROFILE='${{ secrets.APPSTORE_PROV_PROFILE_UUID_TEST_REACT_TVOS_STG }}' clean archive CODE_SIGN_IDENTITY='${{ secrets.CODE_SIGNING_IDENTITY }}'
|
|
363
|
-
working-directory: source/examples/TestNamiTV
|
|
364
|
-
|
|
365
|
-
- name: Export IPA
|
|
366
|
-
run: |
|
|
367
|
-
xcodebuild -exportArchive -archivePath build-output/app-stg.xcarchive -exportPath build-output/tvos-stg -exportOptionsPlist ios/ExportOptions.plist
|
|
368
|
-
working-directory: source/examples/TestNamiTV
|
|
369
|
-
|
|
370
|
-
- name: Upload app to TestFlight
|
|
371
|
-
run: |
|
|
372
|
-
xcrun altool --upload-app --type tvos --file build-output/tvos-stg/Basic-tvOS.ipa --apiKey $APPSTORE_API_KEY_ID --apiIssuer $APPSTORE_ISSUER_ID
|
|
373
|
-
working-directory: source/examples/TestNamiTV
|
|
374
|
-
env:
|
|
375
|
-
APPSTORE_API_KEY_ID: "${{ secrets.APPSTORE_API_KEY_ID }}"
|
|
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 }}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
name: Build Bridge
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
ref:
|
|
7
|
-
description: "Git Tag, Branch or SHA to build"
|
|
8
|
-
required: true
|
|
9
|
-
default: "main"
|
|
10
|
-
earlyaccess:
|
|
11
|
-
description: "Is this a early access build?"
|
|
12
|
-
default: true
|
|
13
|
-
type: boolean
|
|
14
|
-
secrets:
|
|
15
|
-
BUILD_USER_PAT:
|
|
16
|
-
required: true
|
|
17
|
-
|
|
18
|
-
jobs:
|
|
19
|
-
build:
|
|
20
|
-
name: Build Bridge release
|
|
21
|
-
timeout-minutes: 30
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
permissions:
|
|
24
|
-
actions: write
|
|
25
|
-
contents: write
|
|
26
|
-
id-token: write
|
|
27
|
-
steps:
|
|
28
|
-
|
|
29
|
-
# clone the repo at a specific version
|
|
30
|
-
- name: Checkout ${{ inputs.ref }}
|
|
31
|
-
uses: actions/checkout@v2
|
|
32
|
-
with:
|
|
33
|
-
ref: ${{ inputs.ref }}
|
|
34
|
-
|
|
35
|
-
# human error checks
|
|
36
|
-
- name: Set up Python
|
|
37
|
-
uses: actions/setup-python@v1
|
|
38
|
-
with:
|
|
39
|
-
python-version: "3.10"
|
|
40
|
-
|
|
41
|
-
- name: Release Preflight Checks
|
|
42
|
-
run: |
|
|
43
|
-
python3 build-utils/preflight.py
|
|
44
|
-
env:
|
|
45
|
-
NAMI_SDK_VERSION: ${{ inputs.version }}
|
|
46
|
-
|
|
47
|
-
- name: Setup .npmrc
|
|
48
|
-
run: |
|
|
49
|
-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
|
|
50
|
-
env:
|
|
51
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
52
|
-
|
|
53
|
-
- name: Run Yarn
|
|
54
|
-
run: |
|
|
55
|
-
yarn --frozen-lockfile
|
|
56
|
-
env:
|
|
57
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
58
|
-
|
|
59
|
-
- name: Publish
|
|
60
|
-
run: |
|
|
61
|
-
npm publish --access public
|
|
62
|
-
env:
|
|
63
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
64
|
-
|
|
65
|
-
- name: Create Github Release
|
|
66
|
-
run: |-
|
|
67
|
-
#sh gh-release-command.sh
|
|
68
|
-
echo "Release me"
|
|
69
|
-
env:
|
|
70
|
-
GITHUB_TOKEN: ${{ github.token }}
|
package/.pre-commit-config.yaml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
repos:
|
|
2
|
-
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
3
|
-
rev: v8.8.0
|
|
4
|
-
hooks:
|
|
5
|
-
- id: eslint
|
|
6
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
7
|
-
rev: v2.3.0
|
|
8
|
-
hooks:
|
|
9
|
-
- id: check-added-large-files
|
|
10
|
-
- id: check-merge-conflict
|
|
11
|
-
- id: check-symlinks
|
|
12
|
-
- id: check-yaml
|
|
13
|
-
args: [--allow-multiple-documents]
|
|
14
|
-
- id: end-of-file-fixer
|
|
15
|
-
- id: trailing-whitespace
|
|
16
|
-
exclude: ^.*\b(\.(js|jsx|tsx).snap)\b$
|
|
17
|
-
- repo: https://github.com/nicklockwood/SwiftFormat
|
|
18
|
-
rev: 0.50.8
|
|
19
|
-
hooks:
|
|
20
|
-
- id: swiftformat
|
|
21
|
-
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
22
|
-
rev: v2.6.0
|
|
23
|
-
hooks:
|
|
24
|
-
- id: pretty-format-kotlin
|
package/.prettierrc.js
DELETED
package/android/.project
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>android___</name>
|
|
4
|
-
<comment>Project android___ created by Buildship.</comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
</buildSpec>
|
|
14
|
-
<natures>
|
|
15
|
-
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
|
16
|
-
</natures>
|
|
17
|
-
</projectDescription>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
arguments=
|
|
2
|
-
auto.sync=false
|
|
3
|
-
build.scans.enabled=false
|
|
4
|
-
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.0))
|
|
5
|
-
connection.project.dir=
|
|
6
|
-
eclipse.preferences.version=1
|
|
7
|
-
gradle.user.home=
|
|
8
|
-
java.home=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
|
|
9
|
-
jvm.arguments=
|
|
10
|
-
offline.mode=false
|
|
11
|
-
override.workspace.settings=true
|
|
12
|
-
show.console.view=true
|
|
13
|
-
show.executions.view=true
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
package com.nami.reactlibrary
|
|
2
|
-
|
|
3
|
-
import android.content.Context
|
|
4
|
-
import android.util.Log
|
|
5
|
-
import com.facebook.react.bridge.Arguments
|
|
6
|
-
import com.facebook.react.bridge.Callback
|
|
7
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
8
|
-
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
9
|
-
import com.facebook.react.bridge.ReactMethod
|
|
10
|
-
import com.facebook.react.bridge.ReadableArray
|
|
11
|
-
import com.facebook.react.bridge.ReadableMap
|
|
12
|
-
import com.namiml.Nami
|
|
13
|
-
import com.namiml.NamiConfiguration
|
|
14
|
-
import com.namiml.NamiLanguageCode
|
|
15
|
-
import com.namiml.NamiLogLevel
|
|
16
|
-
// import com.namiml.NamiApiResponseHandler
|
|
17
|
-
|
|
18
|
-
class NamiBridgeModule(reactContext: ReactApplicationContext) :
|
|
19
|
-
ReactContextBaseJavaModule(reactContext) {
|
|
20
|
-
|
|
21
|
-
companion object {
|
|
22
|
-
private const val CONFIG_MAP_PLATFORM_ID_KEY = "appPlatformID-android"
|
|
23
|
-
private const val CONFIG_MAP_LOG_LEVEL_KEY = "logLevel"
|
|
24
|
-
private const val CONFIG_MAP_DEVELOPMENT_MODE_KEY = "developmentMode"
|
|
25
|
-
private const val CONFIG_MAP_BYPASS_STORE_KEY = "bypassStore"
|
|
26
|
-
private const val CONFIG_MAP_NAMI_COMMANDS_KEY = "namiCommands"
|
|
27
|
-
private const val CONFIG_MAP_LANGUAGE_CODE_KEY = "namiLanguageCode"
|
|
28
|
-
private const val CONFIG_MAP_INITIAL_CONFIG_KEY = "initialConfig"
|
|
29
|
-
private const val PLATFORM_ID_ERROR_VALUE = "APPPLATFORMID_NOT_FOUND"
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
override fun getName(): String {
|
|
33
|
-
return "NamiBridge"
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@ReactMethod
|
|
37
|
-
fun configure(configDict: ReadableMap, completion: Callback) {
|
|
38
|
-
// Need to be sure we have some valid string.
|
|
39
|
-
val appPlatformID: String = if (configDict.hasKey(CONFIG_MAP_PLATFORM_ID_KEY)) {
|
|
40
|
-
configDict.getString(CONFIG_MAP_PLATFORM_ID_KEY) ?: PLATFORM_ID_ERROR_VALUE
|
|
41
|
-
} else {
|
|
42
|
-
PLATFORM_ID_ERROR_VALUE
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
val appContext: Context = reactApplicationContext.applicationContext
|
|
46
|
-
Log.d(LOG_TAG, "NAMI: RN Bridge - Configure called with appPlatformID $appPlatformID")
|
|
47
|
-
|
|
48
|
-
val builder: NamiConfiguration.Builder =
|
|
49
|
-
NamiConfiguration.Builder(appContext, appPlatformID)
|
|
50
|
-
|
|
51
|
-
// React native will crash if you request a key from a map that does not exist, so always check key first
|
|
52
|
-
val logLevelString = if (configDict.hasKey(CONFIG_MAP_LOG_LEVEL_KEY)) {
|
|
53
|
-
configDict.getString(CONFIG_MAP_LOG_LEVEL_KEY)
|
|
54
|
-
} else {
|
|
55
|
-
""
|
|
56
|
-
}
|
|
57
|
-
when (logLevelString) {
|
|
58
|
-
"INFO" -> {
|
|
59
|
-
builder.logLevel(NamiLogLevel.INFO)
|
|
60
|
-
}
|
|
61
|
-
"WARN" -> {
|
|
62
|
-
builder.logLevel(NamiLogLevel.WARN)
|
|
63
|
-
}
|
|
64
|
-
"ERROR" -> {
|
|
65
|
-
builder.logLevel(NamiLogLevel.ERROR)
|
|
66
|
-
}
|
|
67
|
-
else -> {
|
|
68
|
-
// Any other parameters, just turn on full debugging so they can see everything.
|
|
69
|
-
builder.logLevel(NamiLogLevel.DEBUG)
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
Log.d(LOG_TAG, "NAMI: RN Bridge - configuration log level is $logLevelString")
|
|
73
|
-
|
|
74
|
-
val developmentMode = if (configDict.hasKey(CONFIG_MAP_DEVELOPMENT_MODE_KEY)) {
|
|
75
|
-
configDict.getBoolean(CONFIG_MAP_DEVELOPMENT_MODE_KEY)
|
|
76
|
-
} else {
|
|
77
|
-
false
|
|
78
|
-
}
|
|
79
|
-
if (developmentMode) {
|
|
80
|
-
Log.d(LOG_TAG, "NAMI: RN Bridge - development mode is $developmentMode")
|
|
81
|
-
builder.developmentMode = true
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
val languageCode = if (configDict.hasKey(CONFIG_MAP_LANGUAGE_CODE_KEY)) {
|
|
85
|
-
configDict.getString(CONFIG_MAP_LANGUAGE_CODE_KEY)
|
|
86
|
-
} else {
|
|
87
|
-
null
|
|
88
|
-
}
|
|
89
|
-
languageCode?.let { code ->
|
|
90
|
-
NamiLanguageCode.values().find { it.code == code }.let { namiLanguageCode ->
|
|
91
|
-
if (namiLanguageCode == null) {
|
|
92
|
-
Log.w(
|
|
93
|
-
LOG_TAG,
|
|
94
|
-
"Nami language code from config dictionary \"$code\" not " +
|
|
95
|
-
"found in list of available Nami Language Codes:\n",
|
|
96
|
-
)
|
|
97
|
-
} else {
|
|
98
|
-
builder.namiLanguageCode = namiLanguageCode
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
val namiCommandsReact: ReadableArray? =
|
|
104
|
-
if (configDict.hasKey(CONFIG_MAP_NAMI_COMMANDS_KEY)) {
|
|
105
|
-
configDict.getArray(CONFIG_MAP_NAMI_COMMANDS_KEY)
|
|
106
|
-
} else {
|
|
107
|
-
Arguments.createArray()
|
|
108
|
-
}
|
|
109
|
-
val settingsList = mutableListOf("extendedClientInfo:react-native:3.2.11")
|
|
110
|
-
namiCommandsReact?.toArrayList()?.filterIsInstance<String>()?.let { commandsFromReact ->
|
|
111
|
-
settingsList.addAll(commandsFromReact)
|
|
112
|
-
}
|
|
113
|
-
Log.d(LOG_TAG, "Nami Configuration command settings are $settingsList")
|
|
114
|
-
builder.settingsList = settingsList
|
|
115
|
-
|
|
116
|
-
val initialConfig = if (configDict.hasKey(CONFIG_MAP_INITIAL_CONFIG_KEY)) {
|
|
117
|
-
configDict.getString(CONFIG_MAP_INITIAL_CONFIG_KEY)
|
|
118
|
-
} else {
|
|
119
|
-
null
|
|
120
|
-
}
|
|
121
|
-
initialConfig?.let { initialConfigString ->
|
|
122
|
-
Log.d(
|
|
123
|
-
LOG_TAG,
|
|
124
|
-
"Nami Configuration initialConfig found.",
|
|
125
|
-
)
|
|
126
|
-
builder.initialConfig = initialConfigString
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
val builtConfig: NamiConfiguration = builder.build()
|
|
130
|
-
Log.d(LOG_TAG, "Nami Configuration object is $builtConfig")
|
|
131
|
-
|
|
132
|
-
reactApplicationContext.runOnUiQueueThread {
|
|
133
|
-
// Configure must be called on main thread
|
|
134
|
-
Nami.configure(builtConfig) { result ->
|
|
135
|
-
val resultMap = Arguments.createMap()
|
|
136
|
-
resultMap.putBoolean("success", result)
|
|
137
|
-
completion.invoke(resultMap)
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|