Skip to content

Commit

Permalink
fix: without flavor keyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
numandev1 committed Sep 28, 2023
1 parent b9d686c commit daa6c8d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions android/RNKeys.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def safeExtGet(prop, fallback) {

def loadKeys() {
def flavor = getCurrentFlavor()
if (!flavor.isEmpty()) {
def keysFile = ""
def exportCommand = "";
if (System.env['KEYSFILE']) {
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit daa6c8d

Please sign in to comment.