-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
(RN 0.72.5) How do we disable hermes
for debug variant of Android App and keep hermes
enabled for release variants?
#42766
Comments
|
hermes
for debug variant of Android App and keep hermes
enabled for release variants?hermes
for debug variant of Android App and keep hermes
enabled for release variants?
Why do you need to disable Hermes only for debug? |
@cortinico To be able to debug via react-native-debugger which use a Chrome debug console, we need to disable Hermes. |
Have you tried using our experimental debugger? Ultimately this is a problem of react-native-debugger so they should provide you support here |
Hi @cortinico : we found here status-im/status-mobile#18493 (comment) |
Anyone that came here trying to figure this out, I was able to turn So this problem is solved for me. |
Old Version
0.69.10
New Version
0.72.5
Description
This is more of a question and an attempt to figure out if something needs to be added to react-native to make this easier.
Prior to upgrading to react native 0.70.x we were able to disable
hermes
for our debug builds like this -> status-im/status-mobile#14041After we upgraded to react native 0.72.5 I kept
hermes
enabled and then later realised that we need to disable it for debug variants.However when I tried to do so I could not find a straightforward way to do so.
If I keep
hermesEnabled
asfalse
ingradle.properties
hermes is now disabled for all build variants.We want to disable it for debug but keep it enabled for release variants so that we can reap the benefits of the Hermes Engine.
I tried a very hacky way to achieve this here -> status-im/status-mobile#18675
but I am not sure if this is the best way to do so.
Steps to reproduce
Just try to get
hermes
to be disabled when you donpx react-native run-android
and keep it enabled when you prepare it for release on react-native 0.72.x and above.Affected Platforms
Runtime - Android, Build - MacOS, Build - Linux
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/status-im/status-mobile
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: