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

Remove the enableSeparateBuildPerCPUArchitecture from the template entirely #36341

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

Summary:
See react-native-community/discussions-and-proposals#602 for more context.
TL;DR: this flag is used for an edge case. We should not expose it to every users but move it to a guide.

I'll publish a guide on the website on how to achieve the same feature.

Changelog:
[Android] [Changed] - Remove the enableSeparateBuildPerCPUArchitecture from the template entirely

Reviewed By: cipolleschi

Differential Revision: D43695574

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

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

@react-native-bot react-native-bot added the Platform: Android Android applications. label Mar 1, 2023
@analysis-bot
Copy link

analysis-bot commented Mar 1, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,477,095 +0
android hermes armeabi-v7a 7,799,079 +0
android hermes x86 8,953,089 +0
android hermes x86_64 8,810,587 +0
android jsc arm64-v8a 9,108,176 +0
android jsc armeabi-v7a 8,304,844 +0
android jsc x86 9,159,032 +0
android jsc x86_64 9,418,319 +0

Base commit: 32931b7
Branch: main

@ecreeth
Copy link
Contributor

ecreeth commented Mar 1, 2023

@cortinico this is going to break this. Should we remove it?
image

@cortinico
Copy link
Contributor Author

@cortinico this is going to break this. Should we remove it?

You're so right! Thanks for spotting this. Let me revert the change to RN Tester only so we have that information as well.

…tirely (facebook#36341)

Summary:
Pull Request resolved: facebook#36341

See react-native-community/discussions-and-proposals#602 for more context.
TL;DR: this flag is used for an edge case. We should not expose it to every users but move it to a guide.

I'll publish a guide on the website on how to achieve the same feature.

Changelog:
[Android] [Changed] - Remove the enableSeparateBuildPerCPUArchitecture from the template entirely

Reviewed By: cipolleschi

Differential Revision: D43695574

fbshipit-source-id: 0a8bc7a169804de41e0b0cf813d184301635b907
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in dadf74f.

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…tirely (facebook#36341)

Summary:
Pull Request resolved: facebook#36341

See react-native-community/discussions-and-proposals#602 for more context.
TL;DR: this flag is used for an edge case. We should not expose it to every users but move it to a guide.

I'll publish a guide on the website on how to achieve the same feature.

Changelog:
[Android] [Changed] - Remove the enableSeparateBuildPerCPUArchitecture from the template entirely

Reviewed By: cipolleschi

Differential Revision: D43695574

fbshipit-source-id: a4f2df755f1d7bd0319a8e418c4ce96b541009ed
@liamjones
Copy link
Contributor

@cortinico I've just run across this while upgrading an app to 0.72 and have a question you might know the answer to...

Is reactNativeArchitectures in the template settings.gradle now redundant too?

reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64

The code removed in this PR used to use it. The one reason I'm not sure if it's still needed is that there do seem to be references to it showing the repo: https://github.com/search?q=repo%3Afacebook%2Freact-native%20reactNativeArchitectures&type=code but they look very much like what was removed and may be redundant too?

@cortinico
Copy link
Contributor Author

Is reactNativeArchitectures in the template settings.gradle now redundant too?

Do you mean the gradle.properties file (as that's one you linked)? No it's not redundant @liamjones

That property is used by the React Native Gradle Plugin to do ABI filtering when specified so we need to keep it

@liamjones
Copy link
Contributor

Sorry, yes I did mean that file. Thanks for the confirmation it's still needed!

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: Android Android applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants