Skip to content

Commit 233a726

Browse files
committed
chore(android/app): rebuild
1 parent 2803e81 commit 233a726

File tree

2 files changed

+4
-169
lines changed

2 files changed

+4
-169
lines changed

.github/workflows/pre-release.yml

+2-167
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: pre-release
22

33
on:
4+
pull_request:
5+
branches: [rebuild]
46
push:
57
tags:
68
- '[0-9]+.[0-9]+.[0-9]+*'
@@ -165,170 +167,3 @@ jobs:
165167
packageName: io.numbersprotocol.capturelite
166168
releaseFiles: ./app-release.aab
167169
track: alpha
168-
169-
build-ios-prod:
170-
runs-on: macos-14
171-
timeout-minutes: 120
172-
continue-on-error: true
173-
174-
steps:
175-
- uses: actions/checkout@v4
176-
177-
- uses: actions/setup-node@v4
178-
with:
179-
node-version: '20.11.1'
180-
181-
- name: Setup Python
182-
uses: actions/setup-python@v5
183-
with:
184-
python-version: '3.11'
185-
186-
- name: Get release version
187-
id: version_check
188-
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
189-
190-
- name: Build Ionic
191-
env:
192-
NUMBERS_STORAGE_BASE_URL: ${{ secrets.NUMBERS_STORAGE_BASE_URL }}
193-
NUMBERS_STORAGE_TRUSTED_CLIENT_KEY: ${{ secrets.NUMBERS_STORAGE_TRUSTED_CLIENT_KEY }}
194-
NUMBERS_BUBBLE_DB_URL: ${{ secrets.NUMBERS_BUBBLE_DB_URL }}
195-
NUMBERS_BUBBLE_IFRAME_URL: ${{ secrets.NUMBERS_BUBBLE_IFRAME_URL }}
196-
BUBBLE_API_URL: ${{ secrets.BUBBLE_API_URL }}
197-
APPS_FLYER_DEV_KEY: ${{ secrets.APPS_FLYER_DEV_KEY }}
198-
NUMBERS_PQINA_NPM_KEY: ${{ secrets.NUMBERS_PQINA_NPM_KEY }}
199-
PIPEDREAM_DELETE_CAPTURE_ACCOUNT: ${{ secrets.PIPEDREAM_DELETE_CAPTURE_ACCOUNT }}
200-
run: |
201-
npm run preconfig.npmrc
202-
npm install -g @ionic/cli
203-
npm install --legacy-peer-deps
204-
npm run build
205-
206-
- name: Import the Code-Signing PKCS12 Certificate
207-
uses: apple-actions/import-codesign-certs@v1
208-
with:
209-
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
210-
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
211-
212-
- name: Download provisioning profiles
213-
uses: Apple-Actions/download-provisioning-profiles@v1
214-
with:
215-
bundle-id: io.numbersprotocol.capturelite
216-
profile-type: 'IOS_APP_STORE'
217-
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
218-
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
219-
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
220-
221-
- name: Get current time
222-
uses: 1466587594/get-current-time@v2
223-
id: current-time
224-
with:
225-
format: YYYYMMDDHHmmss
226-
227-
- name: Build iOS Xcode Archive
228-
run: |
229-
npx cap sync ios
230-
xcodebuild archive -workspace ios/App/App.xcworkspace -scheme App -sdk iphoneos -configuration Release -archivePath build/App.xcarchive -showBuildTimingSummary MARKETING_VERSION=${{ steps.version_check.outputs.version }} CURRENT_PROJECT_VERSION=${{ steps.current-time.outputs.formattedTime }} -allowProvisioningUpdates archive
231-
232-
- name: Export IPA from Xcode Archive
233-
run: |
234-
xcodebuild -exportArchive -archivePath build/App.xcarchive -exportPath build -exportOptionsPlist ios/App/ExportOptions.plist -allowProvisioningUpdates
235-
236-
- name: Upload IPA
237-
uses: actions/upload-artifact@v4
238-
with:
239-
name: App.ipa
240-
path: build/App.ipa
241-
242-
- name: Save iOS build number
243-
run: |
244-
echo ${{ steps.current-time.outputs.formattedTime }} > build/ios-build-number.txt
245-
246-
- name: Upload iOS build number
247-
uses: actions/upload-artifact@v4
248-
with:
249-
name: ios-build-number.txt
250-
path: build/ios-build-number.txt
251-
252-
deploy-app-store:
253-
runs-on: macos-14
254-
needs: build-ios-prod
255-
timeout-minutes: 120
256-
continue-on-error: true
257-
258-
steps:
259-
- uses: actions/checkout@v4
260-
261-
- name: Download IPA
262-
uses: actions/download-artifact@v4
263-
with:
264-
name: App.ipa
265-
266-
- name: Upload IPA to App Store (Testflight)
267-
uses: Apple-Actions/upload-testflight-build@master
268-
with:
269-
app-path: ./App.ipa
270-
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
271-
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
272-
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
273-
274-
get-ios-build-number:
275-
runs-on: ubuntu-latest
276-
needs: deploy-app-store
277-
steps:
278-
- uses: actions/checkout@v4
279-
280-
- name: Download iOS build number
281-
uses: actions/download-artifact@v4
282-
with:
283-
name: ios-build-number.txt
284-
285-
- name: Set iOS build number as Environment Variable
286-
run: |
287-
IOS_BUILD=`cat ios-build-number.txt`
288-
echo "ios_build_number=$IOS_BUILD" >> $GITHUB_ENV
289-
290-
create-github-release:
291-
runs-on: ubuntu-latest
292-
needs: [deploy-play-store, get-ios-build-number]
293-
steps:
294-
- uses: actions/checkout@v4
295-
296-
- name: Get release version
297-
id: version_check
298-
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
299-
300-
- name: Create GitHub prerelease
301-
id: create_release
302-
uses: softprops/action-gh-release@v1
303-
if: startsWith(github.ref, 'refs/tags/')
304-
with:
305-
body: Thanks for following along! For more information check out the [CHANGELOG](https://github.com/numbersprotocol/capture-lite/blob/master/CHANGELOG.md).
306-
prerelease: true
307-
308-
- name: Send Slack notification
309-
uses: rtCamp/action-slack-notify@master
310-
env:
311-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
312-
SLACK_CHANNEL: reminder-releases
313-
SLACK_COLOR: '#6EE4D3'
314-
SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
315-
SLACK_MESSAGE: |
316-
Version: ${{ steps.version_check.outputs.version }}
317-
<https://github.com/numbersprotocol/capture-lite/releases/tag/${{ steps.version_check.outputs.version }}|GitHub Release Note>
318-
319-
APKs
320-
321-
- <https://drive.google.com/drive/folders/1NH-4mruBBubxHMfXF6VXaKRCQ76Ldg_n?usp=sharing|Google Drive>
322-
- <https://play.google.com/apps/testing/io.numbersprotocol.capturelite|Google Play Closed Alpha Testing (release)>
323-
324-
iOS Testflight
325-
326-
Build: ${{ env.ios_build_number }}
327-
A push notification will be sent to the device with TestFlight installed when the build is ready.
328-
329-
Notes
330-
331-
- Publishing process usually requires some time to complete, and thus the link provided above might still display the old version of the app. Please check the app version before download and install the app.
332-
- This message is automatically sent from GitHub Action.
333-
SLACK_TITLE: Capture Lite QA Release
334-
SLACK_USERNAME: GitHub Action

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "io.numbersprotocol.capturelite"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
10-
versionCode 980
11-
versionName "0.98.0"
10+
versionCode 981
11+
versionName "0.98.1"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
}
1414
buildFeatures {

0 commit comments

Comments
 (0)