Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
a-novi committed Nov 11, 2023
1 parent d14d018 commit 41778bd
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
}
}
}
}
}

0 comments on commit 41778bd

Please sign in to comment.