mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Re-add signing config
This commit is contained in:
@@ -45,10 +45,24 @@ android {
|
|||||||
testInstrumentationRunner("androidx.test.runner.AndroidJUnitRunner")
|
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 {
|
buildTypes {
|
||||||
getByName("release") {
|
getByName("release") {
|
||||||
minifyEnabled(true)
|
minifyEnabled(true)
|
||||||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt")
|
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt")
|
||||||
|
if (signingConfigs.findByName("release") != null) {
|
||||||
|
signingConfig = signingConfigs.getByName("release")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getByName("debug") {
|
getByName("debug") {
|
||||||
|
|||||||
Reference in New Issue
Block a user