Skip to content

Conversation

@cortinico
Copy link
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-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 Dec 14, 2022
@facebook-github-bot
Copy link
Contributor

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

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

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,464,867 +0
android hermes armeabi-v7a 7,784,482 +0
android hermes x86 8,939,275 +0
android hermes x86_64 8,797,363 +0
android jsc arm64-v8a 9,657,526 +0
android jsc armeabi-v7a 8,390,394 +0
android jsc x86 9,721,241 +0
android jsc x86_64 10,198,762 +0

Base commit: 46ffeca
Branch: main

@pull-bot
Copy link

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

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

Base commit: 46ffeca
Branch: main

@pull-bot
Copy link

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
Contributor

This pull request has been merged in 51a48d2.

@facebook-github-bot facebook-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
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…acebook#35644)

Summary:
Pull Request resolved: facebook#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
@cipolleschi cipolleschi 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
(facebook/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
(facebook/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 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.

5 participants