File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -36,22 +36,26 @@ buildscript {
3636
3737allprojects {
3838 repositories {
39- maven {
40- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
41- url " $rootDir /../node_modules/react-native/android"
39+ exclusiveContent {
40+ // We get React Native's Android binaries exclusively through npm,
41+ // from a local Maven repo inside node_modules/react-native/.
42+ // (The use of exclusiveContent prevents looking elsewhere like Maven Central
43+ // and potentially getting a wrong version.)
44+ filter {
45+ includeGroup " com.facebook.react"
46+ }
47+ forRepository {
48+ maven {
49+ url " $rootDir /../node_modules/react-native/android"
50+ }
51+ }
4252 }
4353 maven {
4454 // Android JSC is installed from npm
4555 url(" $rootDir /../node_modules/jsc-android/dist" )
4656 }
4757
48- mavenCentral {
49- // We don't want to fetch react-native from Maven Central as there are
50- // older versions over there.
51- content {
52- excludeGroup " com.facebook.react"
53- }
54- }
58+ mavenCentral()
5559 google()
5660
5761 // The retired "jcenter" repo.
You can’t perform that action at this time.
0 commit comments