From daa6c8d4779a314b26d99650035c2c740de6c5fa Mon Sep 17 00:00:00 2001 From: Muhammad Numan Date: Thu, 28 Sep 2023 12:26:32 +0500 Subject: [PATCH] fix: without flavor keyfile --- android/RNKeys.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/android/RNKeys.gradle b/android/RNKeys.gradle index 9ceac58..d9b84fe 100644 --- a/android/RNKeys.gradle +++ b/android/RNKeys.gradle @@ -41,7 +41,6 @@ def safeExtGet(prop, fallback) { def loadKeys() { def flavor = getCurrentFlavor() - if (!flavor.isEmpty()) { def keysFile = "" def exportCommand = ""; if (System.env['KEYSFILE']) { @@ -76,10 +75,10 @@ def loadKeys() { println "Choose " + keysFile + " file for react-native-keys to avoid stop any build process\n\n" } else { // Print an error message - println "Please define project.ext.keyFiles as you are using react-native-keys\n\n" - return; + println "\n\nPlease define project.ext.keyFiles or export KEYSFILE=..json ./gradlew .. as you are using react-native-keys\n\n\n\n" } } + if (!keysFile.isEmpty()) { def IS_EXAMPLE = safeExtGet("IS_EXAMPLE", false);