We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e6662 commit 93d77a7Copy full SHA for 93d77a7
template/android/build.gradle
@@ -30,6 +30,20 @@ buildscript {
30
31
allprojects {
32
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
47
maven {
48
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
49
url("$rootDir/../node_modules/react-native/android")
0 commit comments