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

Fix the setup to allow the build-from-source on host projects #36702

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

Summary:
With the monorepo changes we broke the build from source for users.
This fixes it so that folks can just follow the guide:
https://reactnative.dev/contributing/how-to-build-from-source

Changelog:
[Android] [Fixed] - Fix the setup to allow the build-from-source on host projects

Differential Revision: D44502428

@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 Mar 29, 2023
@facebook-github-bot
Copy link
Contributor

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

Copy link
Contributor

@hoxyq hoxyq left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I am not an expert on Gradle.

Any plans on moving tasks from <root>/build.gradle.kts to <root>/packages/react-native/build.gradle.kts and adding proxy-ing?

@analysis-bot
Copy link

analysis-bot commented Mar 29, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,546,664 +0
android hermes armeabi-v7a 7,861,177 +0
android hermes x86 9,027,965 +0
android hermes x86_64 8,883,653 +0
android jsc arm64-v8a 9,167,110 +0
android jsc armeabi-v7a 8,357,650 +0
android jsc x86 9,223,172 +0
android jsc x86_64 9,481,667 +0

Base commit: 8eb28e7
Branch: main

@facebook-github-bot
Copy link
Contributor

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

cortinico added a commit to cortinico/react-native that referenced this pull request Mar 29, 2023
…ok#36702)

Summary:
Pull Request resolved: facebook#36702

With the monorepo changes we broke the build from source for users.
This fixes it so that folks can just follow the guide:
https://reactnative.dev/contributing/how-to-build-from-source

Changelog:
[Android] [Fixed] - Fix the setup to allow the build-from-source on host projects

Reviewed By: cipolleschi

Differential Revision: D44502428

fbshipit-source-id: 7ff16142c0084885e8185a2916bdbc1401cc44a6
…ok#36702)

Summary:
Pull Request resolved: facebook#36702

With the monorepo changes we broke the build from source for users.
This fixes it so that folks can just follow the guide:
https://reactnative.dev/contributing/how-to-build-from-source

Changelog:
[Android] [Fixed] - Fix the setup to allow the build-from-source on host projects

Reviewed By: cipolleschi

Differential Revision: D44502428

fbshipit-source-id: 4e351b45b13370e5c082004bc6567007c57e6ee7
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 29, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fec5658.

kelset pushed a commit that referenced this pull request Mar 29, 2023
Summary:
Pull Request resolved: #36702

With the monorepo changes we broke the build from source for users.
This fixes it so that folks can just follow the guide:
https://reactnative.dev/contributing/how-to-build-from-source

Changelog:
[Android] [Fixed] - Fix the setup to allow the build-from-source on host projects

Reviewed By: cipolleschi

Differential Revision: D44502428

fbshipit-source-id: 3ad8fb114f5e2f7ffdf6fffa617ceaa45334f5f3
@cortinico
Copy link
Contributor Author

Any plans on moving tasks from <root>/build.gradle.kts to <root>/packages/react-native/build.gradle.kts and adding proxy-ing?

@hoxyq Nope I don't think we'll be doing this for now, as those will be exposed to users, and I'm trying to keep the <root>/packages/react-native/build.gradle.kts file as streamlined as possible

@kelset
Copy link
Contributor

kelset commented May 3, 2023

@cortinico do we need to cherry-pick this in 0.72 branch?

@cortinico
Copy link
Contributor Author

Yup this needs to be backported 👍

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
…ok#36702)

Summary:
Pull Request resolved: facebook#36702

With the monorepo changes we broke the build from source for users.
This fixes it so that folks can just follow the guide:
https://reactnative.dev/contributing/how-to-build-from-source

Changelog:
[Android] [Fixed] - Fix the setup to allow the build-from-source on host projects

Reviewed By: cipolleschi

Differential Revision: D44502428

fbshipit-source-id: 3ad8fb114f5e2f7ffdf6fffa617ceaa45334f5f3
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…ok#36702)

Summary:
Pull Request resolved: facebook#36702

With the monorepo changes we broke the build from source for users.
This fixes it so that folks can just follow the guide:
https://reactnative.dev/contributing/how-to-build-from-source

Changelog:
[Android] [Fixed] - Fix the setup to allow the build-from-source on host projects

Reviewed By: cipolleschi

Differential Revision: D44502428

fbshipit-source-id: 3ad8fb114f5e2f7ffdf6fffa617ceaa45334f5f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 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.

6 participants