ignore signing without property

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

@ -20,13 +20,15 @@ def gitCommits = Integer.parseInt('git rev-list --count HEAD'.execute([], projec
android { android {
compileSdkVersion 29 compileSdkVersion 29
signingConfigs { signingConfigs {
myConfig { if (project.hasProperty("RELEASE_STORE_FILE")) {
storeFile file(RELEASE_STORE_FILE) myConfig {
storePassword RELEASE_STORE_PASSWORD storeFile file(RELEASE_STORE_FILE)
keyAlias RELEASE_KEY_ALIAS storePassword RELEASE_STORE_PASSWORD
keyPassword RELEASE_KEY_PASSWORD keyAlias RELEASE_KEY_ALIAS
v1SigningEnabled true keyPassword RELEASE_KEY_PASSWORD
v2SigningEnabled true v1SigningEnabled true
v2SigningEnabled true
}
} }
} }
defaultConfig { defaultConfig {
@ -49,12 +51,16 @@ android {
} }
buildTypes { buildTypes {
release { release {
signingConfig signingConfigs.myConfig if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfig signingConfigs.myConfig
}
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
debug { debug {
signingConfig signingConfigs.myConfig if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfig signingConfigs.myConfig
}
applicationIdSuffix '.debug' applicationIdSuffix '.debug'
versionNameSuffix 'debug' versionNameSuffix 'debug'
minifyEnabled false minifyEnabled false

Loading…
Cancel
Save