airbridge-react-native-sdk-restricted 2.8.8 → 2.9.0

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.
Files changed (143) hide show
  1. package/airbridge-react-native-sdk-restricted.podspec +1 -1
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeInAppPurchase.java +32 -0
  4. package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeRN.java +2 -1
  5. package/changelog.md +10 -0
  6. package/index.d.ts +40 -0
  7. package/ios/AirbridgeRN/ARNConfigReader.m +18 -15
  8. package/ios/AirbridgeRN/AirbridgeInAppPurchase.h +16 -0
  9. package/ios/AirbridgeRN/AirbridgeInAppPurchase.m +30 -0
  10. package/ios/AirbridgeRN/AirbridgeRN.m +3 -0
  11. package/ios/AirbridgeRN.xcodeproj/project.pbxproj +16 -0
  12. package/ios/copy-config.rb +1 -1
  13. package/package.json +1 -1
  14. package/src/Airbridge.js +25 -0
  15. package/src/InAppPurchase.js +38 -0
  16. package/src/WebInterface.js +1 -1
  17. package/.github/actions/add-github-check/action.yml +0 -78
  18. package/.github/actions/add-github-comment/action.yml +0 -48
  19. package/.github/actions/add-slack-message/action.yml +0 -32
  20. package/.github/actions/edit-github-check/action.yml +0 -59
  21. package/.github/actions/edit-github-comment/action.yml +0 -41
  22. package/.github/pull_request_template.md +0 -5
  23. package/.github/readme.md +0 -53
  24. package/.github/workflows/build.yml +0 -367
  25. package/.github/workflows/gitflow.yml +0 -20
  26. package/.github/workflows/release-restricted.yml +0 -35
  27. package/.github/workflows/release.yml +0 -32
  28. package/qa/.bundle/config +0 -2
  29. package/qa/.eslintrc.js +0 -4
  30. package/qa/.prettierrc.js +0 -7
  31. package/qa/.watchmanconfig +0 -1
  32. package/qa/Gemfile +0 -9
  33. package/qa/Gemfile.lock +0 -105
  34. package/qa/__tests__/App.test.tsx +0 -17
  35. package/qa/airbridge.json +0 -7
  36. package/qa/android/app/build.gradle +0 -130
  37. package/qa/android/app/debug.keystore +0 -0
  38. package/qa/android/app/google-services.json +0 -29
  39. package/qa/android/app/proguard-rules.pro +0 -10
  40. package/qa/android/app/src/debug/AndroidManifest.xml +0 -9
  41. package/qa/android/app/src/main/AndroidManifest.xml +0 -65
  42. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/ConfigurationLoader.kt +0 -49
  43. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainActivity.kt +0 -35
  44. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainApplication.kt +0 -46
  45. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoInteractor.kt +0 -60
  46. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoUtils.kt +0 -115
  47. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/IdentifiersInteractor.kt +0 -83
  48. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/InstallReferrerInteractor.kt +0 -91
  49. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/ModuleInjector.kt +0 -22
  50. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/PermissionInteractor.kt +0 -55
  51. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/UserInfoInteractor.kt +0 -74
  52. package/qa/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  53. package/qa/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  54. package/qa/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  55. package/qa/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  56. package/qa/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  57. package/qa/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  58. package/qa/android/app/src/main/res/values/strings.xml +0 -3
  59. package/qa/android/app/src/main/res/values/styles.xml +0 -9
  60. package/qa/android/build.gradle +0 -28
  61. package/qa/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  62. package/qa/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  63. package/qa/android/gradle.properties +0 -41
  64. package/qa/android/gradlew +0 -249
  65. package/qa/android/gradlew.bat +0 -92
  66. package/qa/android/settings.gradle +0 -4
  67. package/qa/app.json +0 -4
  68. package/qa/babel.config.js +0 -3
  69. package/qa/index.js +0 -5
  70. package/qa/ios/.xcode.env +0 -11
  71. package/qa/ios/AirbridgeQA/AirbridgeQA.entitlements +0 -17
  72. package/qa/ios/AirbridgeQA/AppDelegate.h +0 -6
  73. package/qa/ios/AirbridgeQA/AppDelegate.mm +0 -123
  74. package/qa/ios/AirbridgeQA/DeviceInfoInteractor.m +0 -14
  75. package/qa/ios/AirbridgeQA/DeviceInfoInteractor.swift +0 -151
  76. package/qa/ios/AirbridgeQA/IdentifiersInteractor.m +0 -14
  77. package/qa/ios/AirbridgeQA/IdentifiersInteractor.swift +0 -40
  78. package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  79. package/qa/ios/AirbridgeQA/Images.xcassets/Contents.json +0 -6
  80. package/qa/ios/AirbridgeQA/Info.plist +0 -66
  81. package/qa/ios/AirbridgeQA/LaunchScreen.storyboard +0 -47
  82. package/qa/ios/AirbridgeQA/PermissionInteractor.m +0 -14
  83. package/qa/ios/AirbridgeQA/PermissionInteractor.swift +0 -19
  84. package/qa/ios/AirbridgeQA/PrivacyInfo.xcprivacy +0 -39
  85. package/qa/ios/AirbridgeQA/UserInfoInteractor.m +0 -57
  86. package/qa/ios/AirbridgeQA/UserInfoInteractor.swift +0 -49
  87. package/qa/ios/AirbridgeQA/main.m +0 -10
  88. package/qa/ios/AirbridgeQA.xcodeproj/project.pbxproj +0 -771
  89. package/qa/ios/AirbridgeQA.xcodeproj/xcshareddata/xcschemes/AirbridgeQA.xcscheme +0 -88
  90. package/qa/ios/AirbridgeQA.xcworkspace/contents.xcworkspacedata +0 -10
  91. package/qa/ios/AirbridgeQA.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  92. package/qa/ios/AirbridgeQATests/AirbridgeQATests.m +0 -66
  93. package/qa/ios/AirbridgeQATests/Info.plist +0 -24
  94. package/qa/ios/GoogleService-Info.plist +0 -30
  95. package/qa/ios/Library/airbridge-ios-sdk-qa-library.podspec +0 -26
  96. package/qa/ios/Podfile +0 -44
  97. package/qa/ios/Podfile.lock +0 -1634
  98. package/qa/jest.config.js +0 -3
  99. package/qa/metro.config.js +0 -67
  100. package/qa/package-lock.json +0 -14289
  101. package/qa/package.json +0 -47
  102. package/qa/resource/arrow_back.png +0 -0
  103. package/qa/resource/home.png +0 -0
  104. package/qa/resource/info.png +0 -0
  105. package/qa/resource/link.png +0 -0
  106. package/qa/resource/refresh.png +0 -0
  107. package/qa/resource/token.png +0 -0
  108. package/qa/source/App.js +0 -58
  109. package/qa/source/common/Colors.js +0 -20
  110. package/qa/source/common/FCMService.js +0 -94
  111. package/qa/source/common/Native.ts +0 -39
  112. package/qa/source/common/Storage.js +0 -13
  113. package/qa/source/common/Styles.js +0 -39
  114. package/qa/source/component/AttributeEntryInputDialog.js +0 -117
  115. package/qa/source/component/AttributeTypeInputDialog.js +0 -100
  116. package/qa/source/component/ConfirmDialog.js +0 -72
  117. package/qa/source/component/CustomButton.js +0 -50
  118. package/qa/source/component/CustomEventParamsDialog.js +0 -150
  119. package/qa/source/component/CustomTextInput.js +0 -40
  120. package/qa/source/component/EntryInputDialog.js +0 -89
  121. package/qa/source/component/HorizontalPreference.js +0 -46
  122. package/qa/source/component/ImageButton.js +0 -35
  123. package/qa/source/component/InjectInputDialog.js +0 -80
  124. package/qa/source/component/MessageDialog.js +0 -81
  125. package/qa/source/component/UrlInputDialog.js +0 -80
  126. package/qa/source/component/ValueInputDialog.js +0 -80
  127. package/qa/source/component/VerticalPreference.js +0 -42
  128. package/qa/source/navigations/Stack.js +0 -110
  129. package/qa/source/pages/Browse.js +0 -118
  130. package/qa/source/pages/DeviceInfo.js +0 -135
  131. package/qa/source/pages/Event.js +0 -171
  132. package/qa/source/pages/Home.js +0 -136
  133. package/qa/source/pages/Identifiers.js +0 -108
  134. package/qa/source/pages/InstallReferrer.js +0 -64
  135. package/qa/source/pages/Placement.js +0 -38
  136. package/qa/source/pages/RequestPermissions.tsx +0 -41
  137. package/qa/source/pages/UserInfo.js +0 -168
  138. package/qa/source/pages/appInfo.js +0 -22
  139. package/qa/tsconfig.json +0 -3
  140. package/scripts/addiOSFramework.js +0 -48
  141. package/scripts/build-qa.sh +0 -64
  142. package/scripts/change_restricted.sh +0 -21
  143. package/scripts/update_native_version.sh +0 -104
@@ -1,41 +0,0 @@
1
- name: 'Edit GitHub comment'
2
- description: Edit GitHub comment
3
-
4
- inputs:
5
- owner:
6
- description: Owner of repository
7
- type: string
8
- default: ${context.repo.owner}
9
- required: false
10
- repository:
11
- description: Repository of release
12
- type: string
13
- default: ${context.repo.repo}
14
- required: false
15
- comment-id:
16
- description: Comment id to edit
17
- type: string
18
- required: true
19
- token:
20
- description: GitHub Token
21
- type: string
22
- required: false
23
- comment:
24
- description: Comment
25
- type: string
26
- required: true
27
-
28
- runs:
29
- using: 'composite'
30
- steps:
31
- - name: Edit comment
32
- uses: actions/github-script@v7
33
- with:
34
- script: |
35
- await github.rest.issues.updateComment({
36
- owner: `${{ inputs.owner }}`,
37
- repo: `${{ inputs.repository }}`,
38
- comment_id: `${{ inputs.comment-id }}`,
39
- body: `${{ inputs.comment }}`,
40
- })
41
- github-token: ${{ inputs.token || env.GITHUB_TOKEN || github.token }}
@@ -1,5 +0,0 @@
1
- ## Summary
2
- -
3
-
4
- ## Changes
5
- -
package/.github/readme.md DELETED
@@ -1,53 +0,0 @@
1
- # airbridge-react-native-sdk
2
-
3
- ## Requirements
4
-
5
- * Xcode
6
- * Android Studio
7
- * Cocoapods
8
- * Node.js
9
-
10
- ## Test
11
-
12
- 1. cd qa
13
- 2. `npm run ios` or `npm run android`
14
-
15
- > Run application using Xcode or Android Studio can lead below error.
16
-
17
- ```
18
- No bundle URL present.
19
-
20
- Make sure you're running a packager server or have included a .jsbundle file in your application bundle.
21
- ```
22
-
23
- ## Deployment
24
-
25
- ### Release
26
-
27
- ```
28
- npm publish
29
- ```
30
-
31
- ## Monitoring
32
-
33
- * Newrelic
34
- * 접속: https://insights.newrelic.com/
35
- * Kibana
36
- * 접속: http://kibana.ab180.co
37
- * Index pattern: `airbridge-fmt-*-event-results-*`
38
- * Snowflake
39
- * 접속: https://sj55259.ap-northeast-1.aws.snowflakecomputing.com/console
40
-
41
- ## Logging
42
-
43
- * Kibana
44
- * 접속: http://kibana.ab180.co
45
- * Index pattern: `airbridge-sdk-logs*`
46
-
47
- ## Disability Response Manual
48
-
49
- ### Revert
50
-
51
- ```
52
- npm unpublish airbridge-react-native-sdk@{version}
53
- ```
@@ -1,367 +0,0 @@
1
- name: build
2
-
3
- on:
4
- workflow_call:
5
- inputs:
6
- reference:
7
- description: Reference to build
8
- type: string
9
- required: true
10
- secrets:
11
- AWS_ROLE_TO_ASSUME:
12
- required: true
13
- APP_STORE_CONNECT_ISSUER_ID:
14
- required: true
15
- APP_STORE_CONNECT_KEY_ID:
16
- required: true
17
- APP_STORE_CONNECT_PRIVATE_KEY:
18
- required: true
19
- CERTIFICATE_DEVELOPMENT_PRIVATE_KEY:
20
- required: true
21
- CERTIFICATE_DEVELOPMENT_PRIVATE_KEY_PASSWORD:
22
- required: true
23
- CERTIFICATE_DISTRIBUTION_PRIVATE_KEY:
24
- required: true
25
- CERTIFICATE_DISTRIBUTION_PRIVATE_KEY_PASSWORD:
26
- required: true
27
- outputs:
28
- expire:
29
- description: Expire of build
30
- value: ${{ jobs.build-ios.outputs.expire }}
31
- version:
32
- description: Version of build
33
- value: ${{ jobs.prepare.outputs.version }}
34
- commit:
35
- description: Commit hash of build
36
- value: ${{ jobs.prepare.outputs.commit }}
37
- qa-ios-application-install-url:
38
- description: QA iOS Application install URL of build
39
- value: ${{ jobs.build-ios.outputs.install-url }}
40
- qa-ios-application-download-url:
41
- description: QA iOS Application download URL of build
42
- value: ${{ jobs.build-ios.outputs.download-url }}
43
- qa-android-application-download-url:
44
- description: QA Android Application download URL of build
45
- value: ${{ jobs.build-android.outputs.download-url }}
46
- issue_comment:
47
- types:
48
- - created
49
- pull_request:
50
- types: labeled
51
- workflow_dispatch:
52
-
53
- env:
54
- REPOSITORY: ab180/airbridge-react-native-sdk
55
- TRIGGER: ${{
56
- (inputs.reference != null) && 'workflow_call'
57
- || (github.event_name == 'issue_comment') && 'issue_comment'
58
- || (github.event_name == 'pull_request') && 'pull_request'
59
- || (github.event_name == 'workflow_dispatch') && 'workflow_dispatch'
60
- }}
61
- REFERENCE: ${{
62
- (inputs.reference != null) && inputs.reference
63
- || (github.event_name == 'issue_comment') && format('refs/pull/{0}/merge', github.event.issue.number)
64
- || (github.event_name == 'pull_request') && format('refs/pull/{0}/merge', github.event.pull_request.number)
65
- || (github.event_name == 'workflow_dispatch') && github.event.ref
66
- }}
67
- AWS_REGION: ap-northeast-1
68
- AWS_ROLE_TO_ASSUME: ${{ secrets.AWS_ROLE_TO_ASSUME }}
69
- APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
70
- APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
71
- APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.APP_STORE_CONNECT_PRIVATE_KEY }}
72
- CERTIFICATE_DEVELOPMENT_PRIVATE_KEY: ${{ secrets.CERTIFICATE_DEVELOPMENT_PRIVATE_KEY }}
73
- CERTIFICATE_DEVELOPMENT_PRIVATE_KEY_PASSWORD: ${{ secrets.CERTIFICATE_DEVELOPMENT_PRIVATE_KEY_PASSWORD }}
74
- CERTIFICATE_DISTRIBUTION_PRIVATE_KEY: ${{ secrets.CERTIFICATE_DISTRIBUTION_PRIVATE_KEY }}
75
- CERTIFICATE_DISTRIBUTION_PRIVATE_KEY_PASSWORD: ${{ secrets.CERTIFICATE_DISTRIBUTION_PRIVATE_KEY_PASSWORD }}
76
-
77
- permissions:
78
- id-token: write
79
- contents: read
80
- pull-requests: write
81
- checks: write
82
-
83
- jobs:
84
- prepare:
85
- runs-on: ${{ vars.LINUX_INSTANCE }}
86
- if: |
87
- (
88
- (inputs.reference != null)
89
- || (
90
- (github.event_name == 'issue_comment' && github.event.issue.pull_request != null)
91
- && startsWith(github.event.comment.body, '!build')
92
- )
93
- || (
94
- (github.event_name == 'pull_request')
95
- && github.event.label.name == '!Build'
96
- )
97
- || (github.event_name == 'workflow_dispatch')
98
- )
99
-
100
- outputs:
101
- check-id: ${{ steps.report-start-github-check.outputs.check-id }}
102
- comment-id: ${{ steps.report-start-github-comment.outputs.comment-id }}
103
- uuid: ${{ steps.prepare-environment.outputs.uuid }}
104
- version: ${{ steps.prepare-environment.outputs.version }}
105
- commit: ${{ steps.prepare-environment.outputs.commit }}
106
- steps:
107
- - name: Checkout
108
- uses: actions/checkout@v4
109
- with:
110
- repository: ${{ env.REPOSITORY }}
111
- ref: ${{ env.REFERENCE }}
112
-
113
- - name: Report start to GitHub check
114
- id: report-start-github-check
115
- if: env.TRIGGER == 'issue_comment'
116
- uses: ./.github/actions/add-github-check
117
- with:
118
- status: in_progress
119
-
120
- - name: Report start to GitHub comment
121
- id: report-start-github-comment
122
- if: env.TRIGGER == 'issue_comment' || env.TRIGGER == 'pull_request'
123
- uses: ./.github/actions/add-github-comment
124
- with:
125
- comment: 'Build is started.'
126
-
127
- - name: Prepare environment
128
- id: prepare-environment
129
- run: |
130
- git fetch --tags --quiet
131
- echo "uuid=$(uuidgen)" >> $GITHUB_OUTPUT
132
- echo "version=1.0" >> $GITHUB_OUTPUT
133
- echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
134
-
135
- build-ios:
136
- runs-on: ${{ vars.MACOS_INSTANCE }}
137
- needs: ['prepare']
138
-
139
- outputs:
140
- expire: ${{ steps.deploy-qa-ios-application.outputs.expire }}
141
- install-url: ${{ steps.deploy-qa-ios-application.outputs.install-url }}
142
- download-url: ${{ steps.deploy-qa-ios-application.outputs.download-url }}
143
- steps:
144
- - name: Checkout
145
- uses: actions/checkout@v4
146
- with:
147
- repository: ${{ env.REPOSITORY }}
148
- ref: ${{ env.REFERENCE }}
149
-
150
- - name: Prepare certificate
151
- uses: ab180/apple-action/prepare-certificate@v3
152
- with:
153
- app-store-connect-issuer-id: ${{ env.APP_STORE_CONNECT_ISSUER_ID }}
154
- app-store-connect-key-id: ${{ env.APP_STORE_CONNECT_KEY_ID }}
155
- app-store-connect-private-key: ${{ env.APP_STORE_CONNECT_PRIVATE_KEY }}
156
- certificate-development-private-key: ${{ env.CERTIFICATE_DEVELOPMENT_PRIVATE_KEY }}
157
- certificate-development-private-key-password: ${{ env.CERTIFICATE_DEVELOPMENT_PRIVATE_KEY_PASSWORD }}
158
- certificate-distribution-private-key: ${{ env.CERTIFICATE_DISTRIBUTION_PRIVATE_KEY }}
159
- certificate-distribution-private-key-password: ${{ env.CERTIFICATE_DISTRIBUTION_PRIVATE_KEY_PASSWORD }}
160
-
161
- - name: Prepare xcode
162
- uses: ab180/apple-action/prepare-xcodebuild@v3
163
- with:
164
- xcbeautify: true
165
- automatic-signing: true
166
- app-store-connect-issuer-id: ${{ env.APP_STORE_CONNECT_ISSUER_ID }}
167
- app-store-connect-key-id: ${{ env.APP_STORE_CONNECT_KEY_ID }}
168
- app-store-connect-private-key: ${{ env.APP_STORE_CONNECT_PRIVATE_KEY }}
169
-
170
- - name: Prepare aws
171
- uses: aws-actions/configure-aws-credentials@v4
172
- with:
173
- role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
174
- aws-region: ${{ env.AWS_REGION }}
175
-
176
- - name: Prepare Node
177
- uses: actions/setup-node@v4
178
- with:
179
- node-version: 20
180
- cache: 'npm'
181
- cache-dependency-path: '**/package-lock.json'
182
-
183
- - name: Cache CocoaPods
184
- uses: actions/cache@v4
185
- with:
186
- path: |
187
- qa/ios/Pods
188
- key: |
189
- ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
190
- restore-keys: |
191
- ${{ runner.os }}-pods-
192
-
193
- - name: Build QA
194
- run: ./scripts/build-qa.sh
195
- env:
196
- BUILD_QA: ios
197
-
198
- - name: Deploy QA iOS Application
199
- id: deploy-qa-ios-application
200
- uses: ab180/apple-action/deploy-ios-application-to-aws@v3
201
- with:
202
- application: build/ios-application.ipa
203
- application-version: ${{ needs.prepare.outputs.version }}
204
- application-identifier: co.ab180.airbridge.qa.application
205
- bucket: ${{ vars.INTERNAL_BUCKET }}
206
- distribution: ${{ vars.INTERNAL_DISTRIBUTION }}
207
- domain: sdk-internal.airbridge.io
208
- directory: build/${{ needs.prepare.outputs.uuid }}
209
-
210
- build-android:
211
- runs-on: ${{ vars.LINUX_INSTANCE }}
212
- needs: ['prepare']
213
-
214
- outputs:
215
- download-url: ${{ steps.deploy-qa-android-application.outputs.download-url }}
216
- steps:
217
- - name: Checkout
218
- uses: actions/checkout@v4
219
- with:
220
- repository: ${{ env.REPOSITORY }}
221
- ref: ${{ env.REFERENCE }}
222
-
223
- - name: Prepare aws
224
- uses: aws-actions/configure-aws-credentials@v4
225
- with:
226
- role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
227
- aws-region: ${{ env.AWS_REGION }}
228
-
229
- - name: Prepare Node
230
- uses: actions/setup-node@v4
231
- with:
232
- node-version: 20
233
- cache: 'npm'
234
- cache-dependency-path: '**/package-lock.json'
235
-
236
- - name: Setup Java
237
- uses: actions/setup-java@v4
238
- with:
239
- distribution: 'zulu'
240
- java-version: '17'
241
- cache: 'gradle'
242
-
243
- - name: Build QA
244
- run: ./scripts/build-qa.sh
245
- env:
246
- BUILD_QA: android
247
- KEYSTORE: ${{ secrets.KEYSTORE }}
248
- KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
249
- KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
250
- KEYSTORE_ALIAS_PASSWORD: ${{ secrets.KEYSTORE_ALIAS_PASSWORD }}
251
-
252
- - name: Deploy QA Android Application
253
- id: deploy-qa-android-application
254
- run: |
255
- aws s3 cp \
256
- 'build/android-application.apk' \
257
- 's3://${{ vars.INTERNAL_BUCKET }}/build/${{ needs.prepare.outputs.uuid }}/android-application.apk'
258
- aws cloudfront create-invalidation \
259
- --distribution-id '${{ vars.INTERNAL_DISTRIBUTION }}' \
260
- --paths '/build/${{ needs.prepare.outputs.uuid }}/android-application.apk'
261
- echo "download-url=https://sdk-internal.airbridge.io/build/${{ needs.prepare.outputs.uuid }}/android-application.apk" >> $GITHUB_OUTPUT
262
-
263
- finish-success:
264
- runs-on: ${{ vars.LINUX_INSTANCE }}
265
- needs: ['prepare', 'build-ios', 'build-android']
266
-
267
- steps:
268
- - name: Checkout
269
- uses: actions/checkout@v4
270
- with:
271
- repository: ${{ env.REPOSITORY }}
272
- ref: ${{ env.REFERENCE }}
273
-
274
- - name: Report complete to GitHub check
275
- if: env.TRIGGER == 'issue_comment'
276
- uses: ./.github/actions/edit-github-check
277
- with:
278
- check-id: ${{ needs.prepare.outputs.check-id }}
279
- status: completed
280
- conclusion: success
281
-
282
- - name: Report complete to GitHub comment
283
- if: env.TRIGGER == 'issue_comment' || env.TRIGGER == 'pull_request'
284
- uses: ./.github/actions/edit-github-comment
285
- with:
286
- comment-id: ${{ needs.prepare.outputs.comment-id }}
287
- comment: "${{
288
- format(
289
- '{0}\\n{1}\\n{2}\\n\\n{3}',
290
- 'Build is finished.',
291
- format(
292
- '- iOS Application: [Download]({0}), [Install]({1})',
293
- needs.build-ios.outputs.download-url,
294
- needs.build-ios.outputs.install-url
295
- ),
296
- format(
297
- '- Android Application: [Download]({0})',
298
- needs.build-android.outputs.download-url
299
- ),
300
- format(
301
- 'Expire: {0}',
302
- needs.build-ios.outputs.expire
303
- )
304
- )
305
- }}"
306
-
307
- - name: Report complete to Slack
308
- if: env.TRIGGER != 'workflow_call'
309
- uses: ./.github/actions/add-slack-message
310
- with:
311
- message: "${{
312
- format(
313
- '{0}\\n\\n{1}{2}\\n{3}\\n\\n{4}',
314
- format(
315
- 'Airbridge React Native SDK Build - {0}',
316
- env.REFERENCE
317
- ),
318
- (github.event.issue != null || github.event.pull_request.html_url)
319
- && format(
320
- '- Pull Request: <{0}|{1}>\\n',
321
- github.event.issue.url || github.event.pull_request.html_url,
322
- github.event.issue.title || github.event.pull_request.title
323
- )
324
- || '',
325
- format(
326
- '- iOS Application: <{0}|Download>, <{1}|Install>',
327
- needs.build-ios.outputs.download-url,
328
- needs.build-ios.outputs.install-url
329
- ),
330
- format(
331
- '- Android Application: <{0}|Download>',
332
- needs.build-android.outputs.download-url
333
- ),
334
- format(
335
- 'Expire: {0}',
336
- needs.build-ios.outputs.expire
337
- )
338
- )
339
- }}"
340
- incoming-webhook-url: ${{ secrets.SLACK_SDK_BUILD_INCOMING_WEBHOOK_URL }}
341
-
342
- finish-failure:
343
- runs-on: ${{ vars.LINUX_INSTANCE }}
344
- needs: ['prepare', 'build-ios', 'build-android']
345
- if: failure()
346
-
347
- steps:
348
- - name: Checkout
349
- uses: actions/checkout@v4
350
- with:
351
- repository: ${{ env.REPOSITORY }}
352
- ref: ${{ env.REFERENCE }}
353
-
354
- - name: Report fail to GitHub check
355
- if: (env.TRIGGER == 'issue_comment')
356
- uses: ./.github/actions/edit-github-check
357
- with:
358
- check-id: ${{ needs.prepare.outputs.check-id }}
359
- status: completed
360
- conclusion: failure
361
-
362
- - name: Report fail to GitHub comment
363
- if: (env.TRIGGER == 'issue_comment' || env.TRIGGER == 'pull_request')
364
- uses: ./.github/actions/edit-github-comment
365
- with:
366
- comment-id: ${{ needs.prepare.outputs.comment-id }}
367
- comment: 'Build is failed.'
@@ -1,20 +0,0 @@
1
- name: gitflow
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - opened
7
- - synchronize
8
- - reopened
9
- - closed
10
- branches:
11
- - main
12
- - develop
13
-
14
- jobs:
15
- gitflow:
16
- uses: ab180/gitflow/.github/workflows/gitflow.yml@v2
17
- secrets:
18
- GITHUB_APP_ID: ${{ secrets.SDK_TEAM_APP_ID }}
19
- GITHUB_APP_PRIVATE_KEY: ${{ secrets.SDK_TEAM_APP_PRIVATE_KEY }}
20
- GITHUB_APP_OWNER: ab180
@@ -1,35 +0,0 @@
1
- name: release-restricted
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - closed
7
- branches:
8
- - main
9
-
10
- jobs:
11
- release-restricted:
12
- runs-on: ubuntu-latest
13
- if: |
14
- github.event.pull_request.merged == true
15
-
16
- steps:
17
- - name: Checkout
18
- uses: actions/checkout@v3
19
-
20
- - name: Prepare node
21
- uses: actions/setup-node@v3
22
- with:
23
- node-version: 18
24
- registry-url: 'https://registry.npmjs.org'
25
-
26
- - name: Install dependencies
27
- run: npm ci
28
-
29
- - name: change restricted
30
- run: sh scripts/change_restricted.sh
31
-
32
- - name: Publish
33
- env:
34
- NODE_AUTH_TOKEN: ${{ secrets.SDK_TEAM_NPM_AUTOMATION_TOKEN }}
35
- run: npm publish
@@ -1,32 +0,0 @@
1
- name: release
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - closed
7
- branches:
8
- - main
9
-
10
- jobs:
11
- release:
12
- runs-on: ubuntu-latest
13
- if: |
14
- github.event.pull_request.merged == true
15
-
16
- steps:
17
- - name: Checkout
18
- uses: actions/checkout@v3
19
-
20
- - name: Prepare node
21
- uses: actions/setup-node@v3
22
- with:
23
- node-version: 18
24
- registry-url: 'https://registry.npmjs.org'
25
-
26
- - name: Install dependencies
27
- run: npm ci
28
-
29
- - name: Publish
30
- env:
31
- NODE_AUTH_TOKEN: ${{ secrets.SDK_TEAM_NPM_AUTOMATION_TOKEN }}
32
- run: npm publish
package/qa/.bundle/config DELETED
@@ -1,2 +0,0 @@
1
- BUNDLE_PATH: "vendor/bundle"
2
- BUNDLE_FORCE_RUBY_PLATFORM: 1
package/qa/.eslintrc.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: '@react-native',
4
- };
package/qa/.prettierrc.js DELETED
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- arrowParens: 'avoid',
3
- bracketSameLine: true,
4
- bracketSpacing: false,
5
- singleQuote: true,
6
- trailingComma: 'all',
7
- };
@@ -1 +0,0 @@
1
- {}
package/qa/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
- ruby ">= 2.6.10"
5
-
6
- # Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
7
- # bound in the template on Cocoapods with next React Native release.
8
- gem 'cocoapods', '>= 1.13', '< 1.15'
9
- gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
package/qa/Gemfile.lock DELETED
@@ -1,105 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- CFPropertyList (3.0.7)
5
- base64
6
- nkf
7
- rexml
8
- activesupport (7.0.8.4)
9
- concurrent-ruby (~> 1.0, >= 1.0.2)
10
- i18n (>= 1.6, < 2)
11
- minitest (>= 5.1)
12
- tzinfo (~> 2.0)
13
- addressable (2.8.6)
14
- public_suffix (>= 2.0.2, < 6.0)
15
- algoliasearch (1.27.5)
16
- httpclient (~> 2.8, >= 2.8.3)
17
- json (>= 1.5.1)
18
- atomos (0.1.3)
19
- base64 (0.2.0)
20
- claide (1.1.0)
21
- cocoapods (1.14.3)
22
- addressable (~> 2.8)
23
- claide (>= 1.0.2, < 2.0)
24
- cocoapods-core (= 1.14.3)
25
- cocoapods-deintegrate (>= 1.0.3, < 2.0)
26
- cocoapods-downloader (>= 2.1, < 3.0)
27
- cocoapods-plugins (>= 1.0.0, < 2.0)
28
- cocoapods-search (>= 1.0.0, < 2.0)
29
- cocoapods-trunk (>= 1.6.0, < 2.0)
30
- cocoapods-try (>= 1.1.0, < 2.0)
31
- colored2 (~> 3.1)
32
- escape (~> 0.0.4)
33
- fourflusher (>= 2.3.0, < 3.0)
34
- gh_inspector (~> 1.0)
35
- molinillo (~> 0.8.0)
36
- nap (~> 1.0)
37
- ruby-macho (>= 2.3.0, < 3.0)
38
- xcodeproj (>= 1.23.0, < 2.0)
39
- cocoapods-core (1.14.3)
40
- activesupport (>= 5.0, < 8)
41
- addressable (~> 2.8)
42
- algoliasearch (~> 1.0)
43
- concurrent-ruby (~> 1.1)
44
- fuzzy_match (~> 2.0.4)
45
- nap (~> 1.0)
46
- netrc (~> 0.11)
47
- public_suffix (~> 4.0)
48
- typhoeus (~> 1.0)
49
- cocoapods-deintegrate (1.0.5)
50
- cocoapods-downloader (2.1)
51
- cocoapods-plugins (1.0.0)
52
- nap
53
- cocoapods-search (1.0.1)
54
- cocoapods-trunk (1.6.0)
55
- nap (>= 0.8, < 2.0)
56
- netrc (~> 0.11)
57
- cocoapods-try (1.2.0)
58
- colored2 (3.1.2)
59
- concurrent-ruby (1.3.3)
60
- escape (0.0.4)
61
- ethon (0.16.0)
62
- ffi (>= 1.15.0)
63
- ffi (1.17.0)
64
- fourflusher (2.3.1)
65
- fuzzy_match (2.0.4)
66
- gh_inspector (1.1.3)
67
- httpclient (2.8.3)
68
- i18n (1.14.5)
69
- concurrent-ruby (~> 1.0)
70
- json (2.7.2)
71
- minitest (5.23.1)
72
- molinillo (0.8.0)
73
- nanaimo (0.3.0)
74
- nap (1.1.0)
75
- netrc (0.11.0)
76
- nkf (0.2.0)
77
- public_suffix (4.0.7)
78
- rexml (3.2.9)
79
- strscan
80
- ruby-macho (2.5.1)
81
- strscan (3.1.0)
82
- typhoeus (1.4.1)
83
- ethon (>= 0.9.0)
84
- tzinfo (2.0.6)
85
- concurrent-ruby (~> 1.0)
86
- xcodeproj (1.24.0)
87
- CFPropertyList (>= 2.3.3, < 4.0)
88
- atomos (~> 0.1.3)
89
- claide (>= 1.0.2, < 2.0)
90
- colored2 (~> 3.1)
91
- nanaimo (~> 0.3.0)
92
- rexml (~> 3.2.4)
93
-
94
- PLATFORMS
95
- ruby
96
-
97
- DEPENDENCIES
98
- activesupport (>= 6.1.7.5, < 7.1.0)
99
- cocoapods (>= 1.13, < 1.15)
100
-
101
- RUBY VERSION
102
- ruby 3.3.0p0
103
-
104
- BUNDLED WITH
105
- 2.5.4