Skip to content

Commit

Permalink
fix React-Native Android import from node_modules directory does not …
Browse files Browse the repository at this point in the history
  • Loading branch information
flyskywhy committed Nov 10, 2022
1 parent 28b8d6a commit 392b434
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ buildscript {

allprojects {
repositories {
exclusiveContent {
filter {
includeGroup "com.facebook.react"
}
forRepository {
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}

// maven { url 'https://maven.aliyun.com/repository/google' }
// maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
// maven {
// // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// url("$rootDir/../node_modules/react-native/android")
// }
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
Expand Down

0 comments on commit 392b434

Please sign in to comment.