[#786] Simplify signing during development

This commit is contained in:
Carter Jernigan 2022-11-22 03:34:09 -05:00 committed by GitHub
parent 103d2748c6
commit b1f38ab912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -72,8 +72,14 @@ android {
File("proguard-project.txt")
)
)
val isSignReleaseBuildWithDebugKey = project.property("IS_SIGN_RELEASE_BUILD_WITH_DEBUG_KEY")
.toString().toBoolean()
if (isReleaseSigningConfigured) {
signingConfig = signingConfigs.getByName("release")
} else if (isSignReleaseBuildWithDebugKey) {
// Warning: in this case the release build signed with the debug key
signingConfig = signingConfigs.getByName("debug")
}
}
}

View File

@ -59,6 +59,9 @@ ZCASH_RELEASE_KEYSTORE_PASSWORD=
ZCASH_RELEASE_KEY_ALIAS=
ZCASH_RELEASE_KEY_ALIAS_PASSWORD=
# Switch this property to true only if you need to sign the release build with a debug key for local development.
IS_SIGN_RELEASE_BUILD_WITH_DEBUG_KEY=false
# Versions
ANDROID_MIN_SDK_VERSION=21
ANDROID_TARGET_SDK_VERSION=33