Skip to content

Remove unnecessary repositories{} block from top level build.gradle - #35644

Closed
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D42033953
Closed

Remove unnecessary repositories{} block from top level build.gradle#35644
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D42033953

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:
The repositories{} block in the top level build.gradle is not needed anymore
The React Native Gradle Plugin is taking care of it.
Users can still specify if they need to provide custom repositories.

Changelog:
[Android] [Changed] - Remove unnecessary repositories{} block from top level build.gradle

Reviewed By: cipolleschi

Differential Revision: D42033953

Summary:
The `repositories{}` block in the top level build.gradle is not needed anymore
The React Native Gradle Plugin is taking care of it.
Users can still specify if they need to provide custom repositories.
Changelog:
[Android] [Changed] - Remove unnecessary repositories{} block from top level build.gradle
Reviewed By: cipolleschi
Differential Revision: D42033953
fbshipit-source-id: d4069bad84310df20bb344f8190eb7d6bbb67524
@facebook-github-botfacebook-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 Dec 14, 2022
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@react-native-botreact-native-bot added the Platform: Android Android applications. label Dec 14, 2022
@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a8,464,867+0
androidhermesarmeabi-v7a7,784,482+0
androidhermesx868,939,275+0
androidhermesx86_648,797,363+0
androidjscarm64-v8a9,657,526+0
androidjscarmeabi-v7a8,390,394+0
androidjscx869,721,241+0
androidjscx86_6410,198,762+0

Base commit: 46ffeca
Branch: main

@pull-bot

Copy link
Copy Markdown

PR build artifact for 4143491 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.

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 46ffeca
Branch: main

@pull-bot

Copy link
Copy Markdown

PR build artifact for 4143491 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.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 51a48d2.

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Dec 14, 2022
cipolleschi pushed a commit that referenced this pull request Dec 19, 2022
…35644)
Summary:
Pull Request resolved: #35644
The `repositories{}` block in the top level build.gradle is not needed anymore
The React Native Gradle Plugin is taking care of it.
Users can still specify if they need to provide custom repositories.
Changelog:
[Android] [Changed] - Remove unnecessary repositories{} block from top level build.gradle
Reviewed By: cipolleschi
Differential Revision: D42033953
fbshipit-source-id: 8ec1c12147fae68302ab47c60045869c72d1812c
@cipolleschicipolleschi mentioned this pull request Oct 11, 2023
gabrieldonadel added a commit to expo/expo that referenced this pull request Aug 20, 2025
…9010)
# Why
We no longer need to set `url(reactNativeAndroidDir)` on the template
because this is now handled by the React Native Gradle Plugin. This was
removed from react native's template on 0.71
(react/react-native#35644) but we never
removed it from ours
# How
Remove unnecessary react-native repositories from `build.gradle`
# Test Plan
Run BareExpo and PaperTester locally # Checklist
<!--
Please check the appropriate items below if they apply to your diff.
-->
- [ ] I added a `changelog.md` entry and rebuilt the package sources
according to [this short
guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
Eric-Tyrrell22 pushed a commit to Eric-Tyrrell22/expo that referenced this pull request Sep 5, 2025
…po#39010)
# Why
We no longer need to set `url(reactNativeAndroidDir)` on the template
because this is now handled by the React Native Gradle Plugin. This was
removed from react native's template on 0.71
(react/react-native#35644) but we never
removed it from ours
# How
Remove unnecessary react-native repositories from `build.gradle`
# Test Plan
Run BareExpo and PaperTester locally # Checklist
<!--
Please check the appropriate items below if they apply to your diff.
-->
- [ ] I added a `changelog.md` entry and rebuilt the package sources
according to [this short
guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartnerPlatform: AndroidAndroid applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@cortinico@facebook-github-bot@analysis-bot@pull-bot@react-native-bot