Android: Don't set the signingConfig if keystore property isn't set

If the property isn't set, we don't initialize the release config, so we shouldn't use it. This fixes building issues for me.
This commit is contained in:
Pokechu22 2022-08-02 17:53:52 -07:00
parent 3f6795f5e8
commit 1004e34167
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ android {
buildTypes {
// Signed by release key, allowing for upload to Play Store.
release {
signingConfig signingConfigs.release
if (project.hasProperty('keystore')) {
signingConfig signingConfigs.release
}
minifyEnabled true
shrinkResources true