mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Only use signing configuration if env variables are defined
This commit is contained in:
@@ -16,13 +16,16 @@ android {
|
|||||||
compileSdkVersion COMPILE_SDK_VERSION as Integer
|
compileSdkVersion COMPILE_SDK_VERSION as Integer
|
||||||
buildToolsVersion BUILD_TOOLS_VERSION
|
buildToolsVersion BUILD_TOOLS_VERSION
|
||||||
|
|
||||||
signingConfigs {
|
if(project.hasProperty("LOOP_STORE_FILE")) {
|
||||||
release {
|
signingConfigs {
|
||||||
storeFile file(LOOP_STORE_FILE)
|
release {
|
||||||
storePassword LOOP_STORE_PASSWORD
|
storeFile file(LOOP_STORE_FILE)
|
||||||
keyAlias LOOP_KEY_ALIAS
|
storePassword LOOP_STORE_PASSWORD
|
||||||
keyPassword LOOP_KEY_PASSWORD
|
keyAlias LOOP_KEY_ALIAS
|
||||||
|
keyPassword LOOP_KEY_PASSWORD
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
buildTypes.release.signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
|
|
||||||
playAccountConfigs {
|
playAccountConfigs {
|
||||||
@@ -53,7 +56,6 @@ android {
|
|||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||||
signingConfig signingConfigs.release
|
|
||||||
}
|
}
|
||||||
|
|
||||||
debug {
|
debug {
|
||||||
|
|||||||
Reference in New Issue
Block a user