Fix RN update caused Android build error

Spent whole fucking 2 days to figure this out https://github.com/facebook/react-native/issues/35210
This commit is contained in:
xmflsct 2022-11-05 22:41:10 +01:00
parent a0eac3bc01
commit 6dcf0f0d7d
1 changed files with 14 additions and 0 deletions

View File

@ -38,6 +38,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