Skip to content

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

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

Kudo
Copy link
Member

@Kudo Kudo commented Feb 12, 2025

the other option for #3 that will ultimately pull change in core

@okwasniewski
Copy link
Collaborator

Let's wait for these PRs to be merged so we can use the latest nightly and test it out without patches, wdyt?

Comment on lines 13 to 20
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")
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean layout.buildDirectory.get()? having a warning from android studio.
Screenshot 2025-02-15 at 12 00 13 AM

originally the prefabHeadersDir basically referenced from your code on ReactAndroid

jsBundleAssetPath: String = "index",
jsBundleFilePath: String? = null,
- isHermesEnabled: Boolean = true,
+ jsRuntimeFactory: JSRuntimeFactory? = null,
Copy link
Member

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

Copy link
Member Author

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

facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Feb 14, 2025
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
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Feb 17, 2025
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
@Kudo Kudo merged commit 08eafe2 into main Feb 19, 2025
@Kudo Kudo deleted the @kudo/android-2a branch February 19, 2025 12:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants