File tree Expand file tree Collapse file tree
tester-federation-v2/android
tester-federation/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ buildscript {
2424
2525allprojects {
2626 repositories {
27- {
28- def searchDir = rootDir. toPath()
29- do {
30- def p = searchDir. resolve(" node_modules/react-native/android" )
31- if (p. toFile(). exists()) {
32- maven {
33- url(p. toRealPath(). toString())
27+ maven {
28+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
29+ url({
30+ def searchDir = rootDir. toPath()
31+ do {
32+ def p = searchDir. resolve(" node_modules/react-native/android" )
33+ if (p. toFile(). exists()) {
34+ return p. toRealPath(). toString()
3435 }
35- break
36- }
37- } while (searchDir = searchDir. getParent())
38- // As of 0.80, React Native is no longer installed from npm
39- }()
36+ } while (searchDir = searchDir. getParent())
37+ throw new GradleException (" Could not find `react-native`" );
38+ }())
39+ }
4040 mavenCentral()
4141 google()
4242 }
Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ buildscript {
2424
2525allprojects {
2626 repositories {
27- {
28- def searchDir = rootDir. toPath()
29- do {
30- def p = searchDir. resolve(" node_modules/react-native/android" )
31- if (p. toFile(). exists()) {
32- maven {
33- url(p. toRealPath(). toString())
27+ maven {
28+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
29+ url({
30+ def searchDir = rootDir. toPath()
31+ do {
32+ def p = searchDir. resolve(" node_modules/react-native/android" )
33+ if (p. toFile(). exists()) {
34+ return p. toRealPath(). toString()
3435 }
35- break
36- }
37- } while (searchDir = searchDir. getParent())
38- // As of 0.80, React Native is no longer installed from npm
39- }()
36+ } while (searchDir = searchDir. getParent())
37+ throw new GradleException (" Could not find `react-native`" );
38+ }())
39+ }
4040 mavenCentral()
4141 google()
4242 }
Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ buildscript {
2424
2525allprojects {
2626 repositories {
27- {
28- def searchDir = rootDir. toPath()
29- do {
30- def p = searchDir. resolve(" node_modules/react-native/android" )
31- if (p. toFile(). exists()) {
32- maven {
33- url(p. toRealPath(). toString())
27+ maven {
28+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
29+ url({
30+ def searchDir = rootDir. toPath()
31+ do {
32+ def p = searchDir. resolve(" node_modules/react-native/android" )
33+ if (p. toFile(). exists()) {
34+ return p. toRealPath(). toString()
3435 }
35- break
36- }
37- } while (searchDir = searchDir. getParent())
38- // As of 0.80, React Native is no longer installed from npm
39- }()
36+ } while (searchDir = searchDir. getParent())
37+ throw new GradleException (" Could not find `react-native`" );
38+ }())
39+ }
4040 mavenCentral()
4141 google()
4242 }
You can’t perform that action at this time.
0 commit comments