Skip to content

Commit

Permalink
Merge pull request #12 from numandev1/fix/fastlane-relative-path
Browse files Browse the repository at this point in the history
fix: fastlane relative path
  • Loading branch information
numandev1 authored May 26, 2023
2 parents af64b44 + ba852a3 commit 128ed7c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion android/RNKeys.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ def getCurrentFlavor() {
return flavor
}

def getNodeModulesDir() {
def gradleSettingsDir = new File(project.rootDir,"..").canonicalPath
return gradleSettingsDir
}

def safeExtGet(prop, fallback) {
project.ext.has(prop) ? project.ext.get(prop) : fallback
}
Expand Down Expand Up @@ -53,7 +58,8 @@ def loadKeys(){
}
else
{
exportCommand=exportCommand+" ../node_modules/react-native-keys/keysAndroid.js"
def nodeModulesDir = getNodeModulesDir()
exportCommand=exportCommand+nodeModulesDir+"/node_modules/react-native-keys/keysAndroid.js"
}
def proc =["/bin/sh", "-c", exportCommand].execute()
proc.consumeProcessOutput(System.out, System.err)
Expand Down

0 comments on commit 128ed7c

Please sign in to comment.