-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.61.2] Hermes does not support custom variants #27829
Comments
The gradle hacks you refer to are also causing issues with hermes and the android gradle plugin v3.5. I'm not a gradle expert (I find their patterns hard to work with), but I think I've worked out how to improve this. But, it will take a few weeks for me to get to it. Stay tuned. |
you need to add custom implementation on your '/app/build.gradle'
'staginImplementaion' matches 'applicationIdSuffix' or 'buildTypes' on build config, im not sure, because my bad understanding in English, in my case I use same text on 'applicationIdSuffix' and 'buildTypes' so it works either way
|
Alternatively, where there are |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This is still a problem in 62.2. |
I tried to make this work better, but I wasn't able to. If someone who is better at gradle than I am can submit a PR to improve this, that would be really helpful. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
The logic in
react.gradle
relies on the variant name to containrelease
in order for Hermes to build properly.Source 1 Source 2
In my case, I had a variant called
staging
. In order for hermes to work for me, I had to rename my variant toreleasestaging
. Instead, we should be able to pass required options in throughapp/build.gradle
, without having to rename the variant.React Native version:
Steps To Reproduce
release
in its nameDescribe what you expected to happen:
Expect to build to device and the app to run successfully with Hermes enabled.
Snack, code example, screenshot, or link to a repository:
Example failing android/app/build.gradle. Replacing
staging
withreleasestaging
fixes the issue.Related issue.
The text was updated successfully, but these errors were encountered: