Signature version 1 only for GitHub/F-Droid build

pull/175/head
M66B 6 years ago
parent 5a7e7f7e6a
commit 634356dc97

@ -54,21 +54,37 @@ android {
} }
signingConfigs { signingConfigs {
release { play {
storeFile file(keystoreProperties['storeFile']) storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword'] storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias'] keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword'] keyPassword keystoreProperties['keyPassword']
} }
github {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
v1SigningEnabled true
v2SigningEnabled false
v2SigningEnabled false
}
} }
buildTypes { buildTypes {
release { play {
debuggable = false debuggable = false
minifyEnabled = true minifyEnabled = true
useProguard = true useProguard = true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release signingConfig signingConfigs.play
}
github {
debuggable = false
minifyEnabled = true
useProguard = true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.github
} }
debug { debug {
applicationIdSuffix '.debug' applicationIdSuffix '.debug'
@ -125,6 +141,21 @@ android {
} }
} }
variantFilter { variant ->
def flavors = variant.flavors*.name
// Builds: play, github, debug
// Flavors: full, play_beta, play_release
if (variant.buildType.name == "play" && flavors.contains("full")) {
setIgnore(true)
}
if (variant.buildType.name == "github" && flavors.contains("play_beta")) {
setIgnore(true)
}
if (flavors.contains("play_release")) {
setIgnore(true)
}
}
bugsnag { bugsnag {
// https://docs.bugsnag.com/build-integrations/gradle/ // https://docs.bugsnag.com/build-integrations/gradle/
apiKey "9d2d57476a0614974449a3ec33f2604a" apiKey "9d2d57476a0614974449a3ec33f2604a"

@ -16,6 +16,15 @@ android {
lintOptions { lintOptions {
abortOnError false abortOnError false
} }
buildTypes {
play {
}
github {
}
debug {
}
}
} }
//publish { //publish {

Loading…
Cancel
Save