Closed dgobaud closed 5 years ago
The script is called and run, it's most likely an issue where the script has been run from.
Did you do react-native run-android
?
Seems like the variable here stayed at false: https://github.com/ueno-llc/react-native-starter/blob/master/scripts/build-env.sh#L11-L13 but should be true if you run it from android folder
Oh I see I added the exec{...} to my own fork which didn't have the new build-env.sh changes so I think the way you have done it works but for me i need to do what I did in the PR
but I do think leaving build-env.sh the way it was and setting the workingDir in the build.gradle is a better solution
I'll look at it when I have a bit of time 👍
You are right, it's better like this, thanks for the help, I didn't know about that https://github.com/ueno-llc/react-native-starter/commit/b01e8d62ac75c2e748dda709191415ca837e6039
the new call to build-env.sh in build.gradle https://github.com/ueno-llc/react-native-starter/pull/210/files#diff-dc46f9f5dfe204e394fb41395ccd03cfR4 seems to work but it has wrong working directory i think