Skip to content

Commit

Permalink
Fixing signing config. (#175)
Browse files Browse the repository at this point in the history
- Fixes #174
  • Loading branch information
dessalines authored Oct 25, 2024
1 parent ef3f9df commit b2c0866
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {

if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfigs {
register("release") {
create("release") {
storeFile = file(project.property("RELEASE_STORE_FILE")!!)
storePassword = project.property("RELEASE_STORE_PASSWORD") as String?
keyAlias = project.property("RELEASE_KEY_ALIAS") as String?
Expand All @@ -47,10 +47,8 @@ android {
}
buildTypes {
release {
signingConfig = if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfigs.getByName("release")
} else {
signingConfigs.getByName("debug")
if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfig = signingConfigs.getByName("release")
}

isMinifyEnabled = true
Expand Down

0 comments on commit b2c0866

Please sign in to comment.