Signature version 1 only for GitHub/F-Droid build

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

@ -54,21 +54,37 @@ android {
}
signingConfigs {
release {
play {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
github {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
v1SigningEnabled true
v2SigningEnabled false
v2SigningEnabled false
}
}
buildTypes {
release {
play {
debuggable = false
minifyEnabled = true
useProguard = true
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 {
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 {
// https://docs.bugsnag.com/build-integrations/gradle/
apiKey "9d2d57476a0614974449a3ec33f2604a"

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

Loading…
Cancel
Save