Skip to content

Commit 50b7d92

Browse files
committed
Pin react-native and related package at right maven repo
Summary: Prevent download react-native from jcenter or local maven
1 parent b2fcfca commit 50b7d92

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

android/hermes/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ repositories {
44
maven {
55
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
66
url("$rootDir/../node_modules/react-native/android")
7+
content {
8+
includeGroup "com.facebook.react"
9+
}
710
}
811

912
maven {

android/jsc/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ repositories {
44
maven {
55
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
66
url("$rootDir/../node_modules/react-native/android")
7+
content {
8+
includeGroup "com.facebook.react"
9+
}
710
}
811

912
maven {
1013
url(project.findProperty("MAVEN_REPO") ?: "$rootDir/../node_modules/jsc-android/dist")
14+
content {
15+
includeGroup "org.webkit"
16+
}
1117
}
1218
}
1319

android/v8/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ apply plugin: "com.android.application"
33
repositories {
44
maven {
55
url("$rootDir/../node_modules/react-native-v8/dist")
6+
content {
7+
includeGroup "com.facebook.react"
8+
}
69
}
10+
711
maven {
812
url(project.findProperty("MAVEN_REPO") ?: "$rootDir/../node_modules/v8-android/dist")
13+
content {
14+
includeGroup "org.chromium"
15+
}
916
}
1017
}
1118

0 commit comments

Comments
 (0)