diff --git a/android/build.gradle b/android/build.gradle index c3da1af7d..5079e878e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,6 +28,21 @@ buildscript { allprojects { repositories { + // exclusiveContent { + // // We get React Native's Android binaries exclusively through npm, + // // from a local Maven repo inside node_modules/react-native/. + // // (The use of exclusiveContent prevents looking elsewhere like Maven Central + // // and potentially getting a wrong version.) + // filter { + // includeGroup "com.facebook.react" + // } + // forRepository { + // maven { + // // NOTE: if you are in a monorepo, you may have "$rootDir/../../../node_modules/react-native/android" + // url "$rootDir/../node_modules/react-native/android" + // } + // } + // } mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm @@ -46,17 +61,5 @@ allprojects { // All of Detox' artifacts are provided via the npm module url "$rootDir/../node_modules/detox/Detox-android" } - - exclusiveContent { - filter { - includeGroup "com.facebook.react" - } - forRepository { - maven { - // NOTE: if you are in a monorepo, you may have "$rootDir/../../../node_modules/react-native/android" - url "$rootDir/../node_modules/react-native/android" - } - } - } } }