Skip to content

Commit

Permalink
Remove unnecessary repositories{} block from top level build.gradle (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
cortinico authored and facebook-github-bot committed Dec 14, 2022
1 parent 25a25ea commit 51a48d2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions template/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,3 @@ buildscript {
classpath("com.facebook.react:react-native-gradle-plugin")
}
}

allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
mavenCentral()
google()
maven { url 'https://www.jitpack.io' }
}
}

0 comments on commit 51a48d2

Please sign in to comment.