Skip to content

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

Closed
cortinico wants to merge 1 commit intofacebook:mainfrom
cortinico:export-D44502428
Closed

Fix the setup to allow the build-from-source on host projects#36702
cortinico wants to merge 1 commit intofacebook:mainfrom
cortinico:export-D44502428

Conversation

@cortinico
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Contributor

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

…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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

kelset commented May 3, 2023

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

@cortinico
Copy link
Copy Markdown
Contributor Author

Yup this needs to be backported 👍

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