Skip to content

Commit

Permalink
Add signing config
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBernard03 committed Jul 21, 2024
1 parent be5552e commit d2087b7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: ./gradlew assembleRelease bundleRelease --stacktrace

- name: List files
run: ls composeApp/build
run: ls composeApp

- name: Print
run: pwd
Expand Down
23 changes: 21 additions & 2 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,28 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}

signingConfigs {
create("release") {
storeFile = file("../Keystore")
storePassword = System.getenv("KEYSTORE_PASSWORD")
keyAlias = System.getenv("KEYSTORE_ALIAS")
keyPassword = System.getenv("KEY_PASSWORD")
}
}

buildTypes {
getByName("release") {
isMinifyEnabled = false
release {
signingConfig = signingConfigs.getByName("release")
// isMinifyEnabled = true
// isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
debug {
applicationIdSuffix = ".debug"
}
}
compileOptions {
Expand Down

0 comments on commit d2087b7

Please sign in to comment.