Skip to content
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

Update the New App template to reduce the amount of C++ code in user space #34666

Closed
wants to merge 2 commits into from

Conversation

cortinico
Copy link
Contributor

Summary:
This diff updates the new app template and reduces the amount of C++ code in user space.
From now on users will have to only:

  1. Create a CMakeLists.txt file
  2. Create an OnLoad.cpp file with the Modules/Components they want to provide.

Changelog:
[Android] [Changed] - Update the template to Reduce the amount of C++ code in user space for New Architecture

Reviewed By: cipolleschi

Differential Revision: D39381762

@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 Sep 12, 2022
@facebook-github-bot
Copy link
Contributor

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

@react-native-bot react-native-bot added the Platform: Android Android applications. label Sep 12, 2022
@analysis-bot
Copy link

analysis-bot commented Sep 12, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,678,568 +36,282
android hermes armeabi-v7a 7,083,319 +28,134
android hermes x86 7,981,623 +37,076
android hermes x86_64 7,954,530 +37,671
android jsc arm64-v8a 9,551,050 +36,334
android jsc armeabi-v7a 8,319,313 +28,180
android jsc x86 9,491,852 +37,141
android jsc x86_64 10,083,782 +37,718

Base commit: 9929ead
Branch: main

@analysis-bot
Copy link

analysis-bot commented Sep 12, 2022

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

Base commit: 56c28f3
Branch: main

@facebook-github-bot
Copy link
Contributor

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

cortinico added a commit to cortinico/react-native that referenced this pull request Sep 12, 2022
…space (facebook#34666)

Summary:
Pull Request resolved: facebook#34666

This diff updates the new app template and reduces the amount of C++ code in user space.
From now on users will have to only:
1. Create a CMakeLists.txt file
2. Create an OnLoad.cpp file with the Modules/Components they want to provide.

Changelog:
[Android] [Changed] - Update the template to Reduce the amount of C++ code in user space for New Architecture

Reviewed By: cipolleschi

Differential Revision: D39381762

fbshipit-source-id: 8e800a0bfc12d1b635fb625bb59589f969c29d94
Summary:
This diff reduces the amount of C++ code in user space by:
- Moving all the C++ implementation of the .defaults package inside a `react_newarchdefaults` shared library
- Exposing only the entrypoint logic inside the RN-Tester's `OnLoad.cpp` file.

Changelog:
[Android] [Changed] - Reduce the amount of C++ code in user space for New Architecture

Differential Revision: D39381820

fbshipit-source-id: 42c39ccdf9c02f8306d9e82e4072506ef4353105
…space (facebook#34666)

Summary:
Pull Request resolved: facebook#34666

This diff updates the new app template and reduces the amount of C++ code in user space.
From now on users will have to only:
1. Create a CMakeLists.txt file
2. Create an OnLoad.cpp file with the Modules/Components they want to provide.

Changelog:
[Android] [Changed] - Update the template to Reduce the amount of C++ code in user space for New Architecture

Reviewed By: cipolleschi

Differential Revision: D39381762

fbshipit-source-id: 18f927ddf57a5c5fe7270113b014026f963c62e4
@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cortinico in b0aba1b.

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 Sep 12, 2022
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…space (facebook#34666)

Summary:
Pull Request resolved: facebook#34666

This diff updates the new app template and reduces the amount of C++ code in user space.
From now on users will have to only:
1. Create a CMakeLists.txt file
2. Create an OnLoad.cpp file with the Modules/Components they want to provide.

Changelog:
[Android] [Changed] - Update the template to Reduce the amount of C++ code in user space for New Architecture

Reviewed By: cipolleschi

Differential Revision: D39381762

fbshipit-source-id: 7309b6c61ba9ddd8856cb4aaa6d923ddd816741c
# for free to join this conversation on GitHub. Already have an account? # 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: Android Android applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants