-
Notifications
You must be signed in to change notification settings - Fork 61
Remove stale 'com.facebook.react:hermes-android' dependency #196
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
base: main
Are you sure you want to change the base?
Conversation
I don't think that's the case. Can you point to the line inside RNGP where this happens? |
Oh, I see. Sorry for causing the confusion. I've also discovered that the helloworld example app did so too. I've edited the PR to address that. Thank you a lot! |
I think we don't need the PR as is. What you're doing here is forcefully adding the |
I see. What about just changing |
That is also unnecessary because RNGP will take care of it |
While it's true that RNGP handles the substitution, the template should still be updated to use the correct |
Summary:
This PR removes the manual dependency configuration for Hermes/JSC in
android/app/build.gradle.Since React Native 0.71, the React Native Gradle Plugin (
com.facebook.react) automatically manages the JS engine dependencies based on thehermesEnabledproperty ingradle.properties. The manualif (hermesEnabled.toBoolean())block in the dependencies section is redundant and can be safely removed to simplify the build configuration.Also, from React Native 0.83, hermes engine package name has been changed from
com.facebook.react:hermes-androidtocom.facebook.hermes/hermes-android, making the manual if statement stale.Changelog:
[ANDROID] [CHANGED] - Remove redundant Hermes/JSC dependency logic from build.gradle template
Test Plan:
hermesEnabled=trueis set inandroid/gradle.properties../gradlew app:dependenciesinside theandroidfolder.com.facebook.react:hermes-android(orcom.facebook.hermes:hermes-android) is still listed in the dependency tree, confirming the plugin injected it automatically.npm run android).