1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Signature version 1 only for GitHub/F-Droid build

This commit is contained in:
M66B 2020-02-27 13:15:09 +01:00
parent 5a7e7f7e6a
commit 634356dc97
2 changed files with 43 additions and 3 deletions

View file

@ -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"

View file

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