If you try to run revopush release-react for an iOS project and there is no Android project, the script will return an error:
Running hermes compiler...
Converting JS bundle to byte code via Hermes, running command:
[Error] Unable to find gradle file "android/app".
The problem is that the script tries to parse gradleFile in getHermesCommandFromGradle function anyway, even if it doesn't exist.
A simple fix that I made for myself in bin/script/react-native-utils.js on 375 line.
I've changed:
const gradleHermesCommand = await getHermesCommandFromGradle(gradleFile);
to:
const gradleHermesCommand = gradleFile ? await getHermesCommandFromGradle(gradleFile) : null;
React-Native version: 0.83.4
Revopush version: 0.0.11
If you try to run
revopush release-reactfor an iOS project and there is no Android project, the script will return an error:Running hermes compiler... Converting JS bundle to byte code via Hermes, running command: [Error] Unable to find gradle file "android/app".The problem is that the script tries to parse
gradleFileingetHermesCommandFromGradlefunction anyway, even if it doesn't exist.A simple fix that I made for myself in
bin/script/react-native-utils.json 375 line.I've changed:
to:
React-Native version: 0.83.4
Revopush version: 0.0.11