-
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
Migrate jsc-android to mavenCentral #47972
Conversation
Love this change! @cortinico will probably want to take a look at this, but is on PTO and will be back soon. |
Side-note, IIRC |
cool thanks for the note. i was just waiting for Nico coming back.
would be good to know more about this. does that happen on ios or just jsc-android only? if it happens on ios, it would be tough because we have no way to touch jsc on ios.
totally makes sense. i had some thought for this and would write a RFC for lean core of jsc. |
...lugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/DependencyUtils.kt
Outdated
Show resolved
Hide resolved
@@ -81,14 +81,14 @@ def enableProguardInReleaseBuilds = false | |||
* The preferred build flavor of JavaScriptCore (JSC) | |||
* | |||
* For example, to use the international variant, you can use: | |||
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'` | |||
* `def jscFlavor = "io.github.react-native-community:jsc-android-intl:2026004.+"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Do we still need a JSC flavor? Can we just have a single string/flavor for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to keep it as backward compatible for a while. in the future we can remove this entirely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads up: this requires a PR against https://github.com/react-native-community/template
BTW this is awesome! |
side note: the proposing RFC to move away JSC from core react-native-community/discussions-and-proposals#836 |
# Why following up facebook/react-native#47972 (comment) # How move prefab headers into `JavaScriptCore/` directory, so that `#include <JavaScriptCore/JavaScript.h>` in JSCRuntime will not break. this also simulates how JavaScriptCore.framework works.
3b73901
to
2f446de
Compare
@@ -81,14 +81,14 @@ def enableProguardInReleaseBuilds = false | |||
* The preferred build flavor of JavaScriptCore (JSC) | |||
* | |||
* For example, to use the international variant, you can use: | |||
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'` | |||
* `def jscFlavor = "io.github.react-native-community:jsc-android-intl:2026004.+"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads up: this requires a PR against https://github.com/react-native-community/template
add_library(fbjni ALIAS fbjni::fbjni) | ||
add_library(jsc ALIAS jsc-android::jsc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's great. The only thing for us to remember is that we'll have to bump/publish a new version of the JSC library whenever we bump the NDK
@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cortinico merged this pull request in e42a3a6. |
This pull request was successfully merged by @Kudo in e42a3a6 When will my fix make it into a release? | How to file a pick request? |
Summary:
Since people mostly use Hermes, it doesn't make sense to download jsc-android from npm even when jsc is not used. This PR migrates the jsc-android to mavenCentral. The new jsc-android supports Android 16KB memory page sizes and packaged by prefab.
Relevant PRs:
Changelog:
[ANDROID] [CHANGED] - Migrate jsc-android to mavenCentral
Test Plan:
CI passed