gradle: Add a new build config with debug signing but release optimization.

Add a fixed debug keystore so debug key is effectively the same on all my computers,
making testing more convenient.
This commit is contained in:
Henrik Rydgård 2017-03-16 13:13:30 +01:00
parent b2677cfc63
commit c18edcdab4
2 changed files with 18 additions and 8 deletions

View File

@ -2,7 +2,13 @@ apply plugin: 'com.android.application'
android {
signingConfigs {
config {
debug {
storeFile file("debug.keystore")
}
optimized {
storeFile file("debug.keystore")
}
release {
}
}
compileSdkVersion 25
@ -14,16 +20,22 @@ android {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
signingConfig signingConfigs.config
signingConfig signingConfigs.debug
}
buildTypes {
release {
minifyEnabled = false
signingConfig signingConfigs.config
}
debug {
minifyEnabled = false
jniDebuggable true
signingConfig signingConfigs.debug
}
release {
minifyEnabled = false
signingConfig signingConfigs.release
}
optimized {
// Debug signed but optimized.
minifyEnabled = false
signingConfig android.buildTypes.debug.signingConfig
}
}
externalNativeBuild {
@ -48,7 +60,6 @@ android {
productFlavors {
normal {
applicationId 'org.ppsspp.ppsspp'
signingConfig signingConfigs.config
externalNativeBuild {
cmake {
// Available arguments listed at https://developer.android.com/ndk/guides/cmake.html
@ -63,7 +74,6 @@ android {
}
gold {
applicationId 'org.ppsspp.ppssppgold'
signingConfig signingConfigs.config
externalNativeBuild {
cmake {
// Available arguments listed at https://developer.android.com/ndk/guides/cmake.html

BIN
android/debug.keystore Normal file

Binary file not shown.