Skip to content

Commit

Permalink
fix: Workaround for Build Failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarsheechatterjee committed Nov 5, 2022
1 parent cb67d17 commit 125632b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions android/build.gradle
Expand Up @@ -22,6 +22,20 @@ 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 {
url "$rootDir/../node_modules/react-native/android"
}
}
}
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
Expand Down

0 comments on commit 125632b

Please sign in to comment.