ignore signing without property

pull/78/head
Modificator 5 years ago
parent 3b3c3961c3
commit a96aa10954
  1. 6
      app/build.gradle

@ -20,6 +20,7 @@ def gitCommits = Integer.parseInt('git rev-list --count HEAD'.execute([], projec
android {
compileSdkVersion 29
signingConfigs {
if (project.hasProperty("RELEASE_STORE_FILE")) {
myConfig {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
@ -29,6 +30,7 @@ android {
v2SigningEnabled true
}
}
}
defaultConfig {
applicationId "io.legado.app"
minSdkVersion 21
@ -49,12 +51,16 @@ android {
}
buildTypes {
release {
if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfig signingConfigs.myConfig
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfig signingConfigs.myConfig
}
applicationIdSuffix '.debug'
versionNameSuffix 'debug'
minifyEnabled false

Loading…
Cancel
Save