Skip to content

Commit 93d77a7

Browse files
committed
Add exclusiveContent on template for 0.70
1 parent 54e6662 commit 93d77a7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

template/android/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ buildscript {
3030

3131
allprojects {
3232
repositories {
33+
exclusiveContent {
34+
// We get React Native's Android binaries exclusively through npm,
35+
// from a local Maven repo inside node_modules/react-native/.
36+
// (The use of exclusiveContent prevents looking elsewhere like Maven Central
37+
// and potentially getting a wrong version.)
38+
filter {
39+
includeGroup "com.facebook.react"
40+
}
41+
forRepository {
42+
maven {
43+
url "$rootDir/../node_modules/react-native/android"
44+
}
45+
}
46+
}
3347
maven {
3448
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
3549
url("$rootDir/../node_modules/react-native/android")

0 commit comments

Comments
 (0)