Skip to content

Commit

Permalink
fix demo apk
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-LL committed May 13, 2024
1 parent 4c1936a commit 1949999
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-demo-app-apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
distribution: temurin
java-version: 21
- name: Build APK
run: ./gradlew assembleDebug --stacktrace
run: ./gradlew :demoApp:composeApp:assembleRelease --stacktrace
- name: Get latest release
id: latest_release
uses: pozetroninc/github-action-get-latest-release@master
Expand All @@ -30,4 +30,4 @@ jobs:
- name: Upload APK
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.latest_release.outputs.release }} demoApp/composeApp/build/outputs/apk/debug/composeApp-debug.apk#demoApp.apk --clobber
run: gh release upload ${{ steps.latest_release.outputs.release }} demoApp/composeApp/build/outputs/apk/release/composeApp-release.apk#demoApp.apk --clobber
19 changes: 10 additions & 9 deletions demoApp/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,18 @@ android {
res.srcDirs("src/androidMain/res")
resources.srcDirs("src/commonMain/resources")
}
signingConfigs {
create("release") {
storeFile = file("reorderable-apk.keystore")
storePassword = System.getenv("DEMO_APP_KEYSTORE_PASSWORD")
keyAlias = "demo-app"
keyPassword = System.getenv("APK_KEY_PASSWORD")
}
}
buildTypes {
release {
isMinifyEnabled = false
signingConfig = signingConfigs.getByName("release")
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
Expand All @@ -106,14 +115,6 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
signingConfigs {
create("release") {
storeFile = file("reorderable-apk.keystore")
storePassword = System.getenv("DEMO_APP_KEYSTORE_PASSWORD")
keyAlias = "demo-app"
keyPassword = System.getenv("APK_KEY_PASSWORD")
}
}
}

compose.desktop {
Expand Down

0 comments on commit 1949999

Please sign in to comment.