Commit 117e548 1 parent 77a645f commit 117e548 Copy full SHA for 117e548
File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -36,22 +36,26 @@ buildscript {
36
36
37
37
allprojects {
38
38
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
+ }
42
52
}
43
53
maven {
44
54
// Android JSC is installed from npm
45
55
url(" $rootDir /../node_modules/jsc-android/dist" )
46
56
}
47
57
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()
55
59
google()
56
60
57
61
// The retired "jcenter" repo.
You can’t perform that action at this time.
0 commit comments