Updated build.gradle, so It works without signing key
All checks were successful
Android Test / test (push) Successful in 31s
All checks were successful
Android Test / test (push) Successful in 31s
This commit is contained in:
parent
f9fdccbbf7
commit
b3743c777e
1 changed files with 11 additions and 5 deletions
|
@ -19,17 +19,23 @@ android {
|
|||
|
||||
signingConfigs {
|
||||
release {
|
||||
def hasSigning = project.hasProperty("RELEASE_STORE_PASSWORD") && file("release-key.jks").exists()
|
||||
if (hasSigning) {
|
||||
storeFile file("release-key.jks")
|
||||
storePassword RELEASE_STORE_PASSWORD
|
||||
keyAlias "release-key"
|
||||
keyPassword RELEASE_STORE_PASSWORD
|
||||
} else {
|
||||
println "⚠️ No release signing config present, skipping signing setup"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled = false
|
||||
signingConfig = signingConfigs.release
|
||||
// only apply signingConfig if it was actually initialized
|
||||
signingConfig signingConfigs.release?.storeFile != null ? signingConfigs.release : null
|
||||
proguardFiles(getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue