Skip to content

Commit

Permalink
Re-add signing config
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed May 9, 2021
1 parent 3489f17 commit df56608
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions uhabits-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,24 @@ android {
testInstrumentationRunner("androidx.test.runner.AndroidJUnitRunner")
}

signingConfigs {
if (System.getenv("LOOP_KEY_ALIAS") != null) {
create("release") {
keyAlias = System.getenv("LOOP_KEY_ALIAS")
keyPassword = System.getenv("LOOP_KEY_PASSWORD")
storeFile = file(System.getenv("LOOP_KEY_STORE"))
storePassword = System.getenv("LOOP_STORE_PASSWORD")
}
}
}

buildTypes {
getByName("release") {
minifyEnabled(true)
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt")
if (signingConfigs.findByName("release") != null) {
signingConfig = signingConfigs.getByName("release")
}
}

getByName("debug") {
Expand Down

0 comments on commit df56608

Please sign in to comment.