-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from AII-the-time/develop
[release] v3.1.1
- Loading branch information
Showing
7 changed files
with
79 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,57 @@ | ||
name: Android CD | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
workflow_run: | ||
workflows: [Android CI] | ||
types: [completed] | ||
branches: [develop] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'zulu' | ||
|
||
- name: Generate Local Property | ||
run: | | ||
echo ATT_BASE_URL=\"$ATT_BASE_URL\" >> local.properties | ||
echo SENTRY_DSN_DEBUG=\"SENTRY_DSN_DEBUG\" >> local.properties | ||
echo SENTRY_DSN_RELEASE=\"SENTRY_DSN_RELEASE\" >> local.properties | ||
env: | ||
ATT_BASE_URL: ${{ secrets.ATT_BASE_URL }} | ||
SENTRY_DSN_DEBUG: ${{ secrets.SENTRY_DSN_DEBUG }} | ||
SENTRY_DSN_RELEASE: ${{ secrets.SENTRY_DSN_RELEASE }} | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build debug apk | ||
run: ./gradlew assembleDebug --stacktrace | ||
|
||
- name: Upload apk to Firebase App Distribution | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
with: | ||
appId: ${{ secrets.FIREBASE_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
token: ${{ secrets.FIREBASE_TOKEN }} | ||
groups: all-the-time | ||
file: app/build/outputs/apk/debug/app-debug.apk | ||
releaseNotes: | | ||
${{ github.event.pull_request.title }} | ||
${{ github.event.pull_request.html_url }} | ||
${{ github.event.pull_request.body }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
name: Android CI | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: . | ||
|
||
jobs: | ||
build-and-test: | ||
|
@@ -19,6 +23,7 @@ jobs: | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -43,7 +48,4 @@ jobs: | |
|
||
- name: Android Test Report | ||
uses: asadmansr/[email protected] | ||
if: ${{ always() }} | ||
|
||
- name: Build debug apk | ||
run: ./gradlew assembleDebug --stacktrace | ||
if: ${{ always() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "92675282109", | ||
"project_id": "att-cafe-pos", | ||
"storage_bucket": "att-cafe-pos.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:92675282109:android:149bc9908ab09490c653d4", | ||
"android_client_info": { | ||
"package_name": "org.swm.att" | ||
} | ||
}, | ||
"oauth_client": [], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyAu1PwxGiRoPpaBt77NjfrVG2MQJgAOO6A" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters