Only use signing configuration if env variables are defined

pull/316/merge
Alinson S. Xavier 8 years ago
parent b2a8c9c45f
commit dccf5eae47

@ -16,6 +16,7 @@ android {
compileSdkVersion COMPILE_SDK_VERSION as Integer compileSdkVersion COMPILE_SDK_VERSION as Integer
buildToolsVersion BUILD_TOOLS_VERSION buildToolsVersion BUILD_TOOLS_VERSION
if(project.hasProperty("LOOP_STORE_FILE")) {
signingConfigs { signingConfigs {
release { release {
storeFile file(LOOP_STORE_FILE) storeFile file(LOOP_STORE_FILE)
@ -24,6 +25,8 @@ android {
keyPassword LOOP_KEY_PASSWORD keyPassword LOOP_KEY_PASSWORD
} }
} }
buildTypes.release.signingConfig signingConfigs.release
}
playAccountConfigs { playAccountConfigs {
defaultAccountConfig { defaultAccountConfig {
@ -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 {

Loading…
Cancel
Save