Updated build.gradle, so It works without signing key
All checks were successful
Android Test / test (push) Successful in 31s

This commit is contained in:
Internet Addict 2025-07-15 09:33:43 +00:00
parent f9fdccbbf7
commit b3743c777e

View file

@ -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')
}
}