We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7538c01 commit d50f198Copy full SHA for d50f198
packages/sqlite-storage/example/android/build.gradle
@@ -25,8 +25,16 @@ buildscript {
25
allprojects {
26
repositories {
27
maven {
28
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
29
- url("${rootDir}/../../node_modules/react-native/android")
+ url({
+ def searchDir = rootDir.toPath()
30
+ do {
31
+ def p = searchDir.resolve("node_modules/react-native/android")
32
+ if (p.toFile().exists()) {
33
+ return p.toRealPath().toString()
34
+ }
35
+ } while (searchDir = searchDir.getParent())
36
+ throw new GradleException("Could not find `react-native`");
37
+ }())
38
}
39
mavenCentral()
40
google()
0 commit comments