Skip to content

CocoaPods: Split React-jsc out of React-jsi#35031

Closed
hramos wants to merge 1 commit into
facebook:mainfrom
hramos:export-D40442603
Closed

CocoaPods: Split React-jsc out of React-jsi#35031
hramos wants to merge 1 commit into
facebook:mainfrom
hramos:export-D40442603

Conversation

@hramos
Copy link
Copy Markdown
Contributor

@hramos hramos commented Oct 20, 2022

Summary:
The React-jsi Pod was serving two purposes: building JSI, and configuring JavaScriptCore as the JS engine.

By splitting the React-jsi Pod into React-jsi and React-jsi, we can start working towards de-coupling the JSI dependency from any particular JS engine.

Pods that depended on React-jsi, now depend on React-jsi and React-jsc.
One exception to this is React-hermes, which is only installed when Hermes is enabled, and thus does not require JavaScriptCore.
Upcoming commits should take care of removing the React-jsc dependency when Hermes is enabled, but it is out of scope for this commit.

Changelog:
[iOS][Changed] - The JSC Runtime is now provided by the React-jsc Pod instead of React-jsi. Libraries that declared a dependency on React-jsi in order to specifically create a JSC runtime (makeJSCRuntime()) will need to add React-jsc to their dependencies.

Reviewed By: dmytrorykun

Differential Revision: D40442603

Summary:
The React-jsi Pod was serving two purposes: building JSI, and configuring JavaScriptCore as the JS engine.

By splitting the React-jsi Pod into React-jsi and React-jsi, we can start working towards de-coupling the JSI dependency from any particular JS engine.

Pods that depended on React-jsi, now depend on React-jsi and React-jsc.
One exception to this is React-hermes, which is only installed when Hermes is enabled, and thus does not require JavaScriptCore.
Upcoming commits should take care of removing the React-jsc dependency when Hermes is enabled, but it is out of scope for this commit.

Changelog:
[iOS][Changed] - The JSC Runtime is now provided by the React-jsc Pod instead of React-jsi. Libraries that declared a dependency on React-jsi in order to specifically create a JSC runtime (`makeJSCRuntime()`) will need to add React-jsc to their dependencies.

Reviewed By: dmytrorykun

Differential Revision: D40442603

fbshipit-source-id: 8a956cfa7e2a8fb6d7c3d6967853cdf747ba9d91
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Oct 20, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D40442603

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Oct 20, 2022
@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Oct 20, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: be6f656
Branch: main

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,754,795 +0
android hermes armeabi-v7a 7,159,067 +0
android hermes x86 8,066,601 +0
android hermes x86_64 8,037,253 +0
android jsc arm64-v8a 9,612,937 +0
android jsc armeabi-v7a 8,379,072 +0
android jsc x86 9,559,947 +0
android jsc x86_64 10,152,843 +0

Base commit: e4b5d3e
Branch: main

@pull-bot
Copy link
Copy Markdown

PR build artifact for b1c4fe4 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link
Copy Markdown

PR build artifact for b1c4fe4 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @hramos in 6b129d8.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Platform: iOS iOS applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants