do not sign the debug build of the app
This commit is contained in:
parent
d794d59166
commit
6388a67cc6
|
@ -17,7 +17,6 @@ android {
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release
|
release
|
||||||
debug
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
@ -26,9 +25,6 @@ android {
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
debug {
|
|
||||||
signingConfig signingConfigs.debug
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -86,18 +82,7 @@ if (propFile.canRead()) {
|
||||||
println 'signing.properties found but some release entries are missing'
|
println 'signing.properties found but some release entries are missing'
|
||||||
android.buildTypes.release.signingConfig = null
|
android.buildTypes.release.signingConfig = null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props != null && props.containsKey('DEBUG_STORE_FILE') && props.containsKey('DEBUG_KEY_ALIAS') && props.containsKey('DEBUG_PASSWORD')) {
|
|
||||||
android.signingConfigs.debug.storeFile = file(props['DEBUG_STORE_FILE'])
|
|
||||||
android.signingConfigs.debug.storePassword = props['DEBUG_PASSWORD']
|
|
||||||
android.signingConfigs.debug.keyAlias = props['DEBUG_KEY_ALIAS']
|
|
||||||
android.signingConfigs.debug.keyPassword = props['DEBUG_PASSWORD']
|
|
||||||
} else {
|
|
||||||
println 'signing.properties found but some debug entries are missing'
|
|
||||||
android.buildTypes.debug.signingConfig = null
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
println 'signing.properties not found'
|
println 'signing.properties not found'
|
||||||
android.buildTypes.release.signingConfig = null
|
android.buildTypes.release.signingConfig = null
|
||||||
android.buildTypes.debug.signingConfig = null
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue