Skip to content

Problem with release-react for iOS project without an Android project: Unable to find gradle file "android/app" #23

@cmpayc

Description

@cmpayc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions