mirror of https://github.com/tooot-app/app
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:
parent
a0eac3bc01
commit
6dcf0f0d7d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue