TP-35811 | generate playground apk (#124)

This commit is contained in:
Maila Rajanikanth
2023-07-17 18:50:10 +05:30
committed by GitHub
parent 8add66bdd8
commit 524ae0eb4e
2 changed files with 45 additions and 1 deletions

36
.github/workflows/playground_apk.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Publish AAR CI
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
generate-playground-apk:
runs-on: [ default ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log Build Metadata
run: |
echo "Commit SHA: ${{ github.sha }}"
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Assemble with Stacktrace
run: ./gradlew assembleRelease --stacktrace
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: playground.apk
path: |
app/build/outputs/apk/release/app-release.apk
retention-days: 10

View File

@@ -19,12 +19,20 @@ android {
useSupportLibrary true
}
}
signingConfigs {
release {
storeFile file('keystore/release.jks')
storePassword "releaseKey"
keyAlias "releaseKey"
keyPassword "releaseKey"
}
}
buildTypes {
release {
debuggable false
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
benchmark {