From 1004e34167e202b0d5fec3bf877aaa14b671d334 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 2 Aug 2022 17:53:52 -0700 Subject: [PATCH] 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. --- Source/Android/app/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Android/app/build.gradle b/Source/Android/app/build.gradle index b19c3cec62..72779c3fb5 100644 --- a/Source/Android/app/build.gradle +++ b/Source/Android/app/build.gradle @@ -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