Skip to content
Permalink
Browse files

Signature version 1 only for GitHub/F-Droid build

  • Loading branch information
M66B committed Feb 27, 2020
1 parent 5a7e7f7 commit 634356dc976d7ea825d7b07df1486f282616fd41
Showing with 43 additions and 3 deletions.
  1. +34 −3 app/build.gradle
  2. +9 −0 openpgp-api/build.gradle
@@ -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 {

0 comments on commit 634356d

Please sign in to comment.
You can’t perform that action at this time.