-
Notifications
You must be signed in to change notification settings - Fork 5
chore: integrate jsc into example on android #4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Let's wait for these PRs to be merged so we can use the latest nightly and test it out without patches, wdyt? |
android/build.gradle.kts
Outdated
val reactNativeDir = findNodePackageDir("react-native") | ||
val reactNativeManifest = file("${reactNativeDir}/package.json") | ||
val reactNativeManifestAsJson = JsonSlurper().parseText(reactNativeManifest.readText()) as Map<*, *> | ||
val reactNativeVersion = reactNativeManifestAsJson["version"] as String | ||
val (major, minor, patch) = reactNativeVersion.split(".") | ||
val rnMinorVersion = minor.toInt() | ||
val rnPatchVersion = patch.toInt() | ||
val prefabHeadersDir = file("${layout.buildDirectory.get()}/prefab-headers") |
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: Where is this coming from?
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.
jsBundleAssetPath: String = "index", | ||
jsBundleFilePath: String? = null, | ||
- isHermesEnabled: Boolean = true, | ||
+ jsRuntimeFactory: JSRuntimeFactory? = null, |
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.
See my comments on the PR upstream as we can't ship this change as it is, so we'll have to update the patch here as well.
We can merge it for the time being though
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.
updated patches and will merge this pr until the nightlies include the changes we need
Summary: an effort of lean core for jsc: https://github.com/Kudo/discussions-and-proposals/blob/%40kudo/lean-core-jsc/proposals/0836-lean-core-jsc.md ## Changelog: [ANDROID] [CHANGED] - exclude `jsctooling` when `useThirdPartyJSC` gradle property is true Pull Request resolved: #49365 Test Plan: - ci passed - test from react-native-community/javascriptcore#4 Reviewed By: cipolleschi Differential Revision: D69654289 Pulled By: cortinico fbshipit-source-id: 148e07c7114dde05c2014522f9c56119f7f6f0ce
5b1c406
to
b470f03
Compare
Summary: an effort of lean core for jsc: https://github.com/Kudo/discussions-and-proposals/blob/%40kudo/lean-core-jsc/proposals/0836-lean-core-jsc.md ## Changelog: [ANDROID] [CHANGED] - Allow passing custom JSRuntimeFactory to DefaultReactHost Pull Request resolved: #49366 Test Plan: - ci passed - test from react-native-community/javascriptcore#4 Reviewed By: cipolleschi Differential Revision: D69656837 Pulled By: cortinico fbshipit-source-id: ba8bf744c920a70c10fe5f6743f8dd182c88c4d4
b470f03
to
83f064a
Compare
83f064a
to
99a90b1
Compare
the other option for #3 that will ultimately pull change in core
react-native.config.js
for autolinkinguseThirdPartyJSC=true
MainApplication.getJavaScriptExecutorFactory()
to useJSCExecutorFactory
JSCRuntimeFactory
to thegetDefaultReactHost(applicationContext, reactNativeHost, JSCRuntimeFactory())