Skip to content

Commit 37af3fb

Browse files
committed
fix: invalid android/build.gradle
1 parent b9b05e0 commit 37af3fb

File tree

1 file changed

+16
-38
lines changed

1 file changed

+16
-38
lines changed

example/android/build.gradle

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,21 @@
11
buildscript {
2-
ext {
3-
buildToolsVersion = "36.0.0"
4-
minSdkVersion = 24
5-
compileSdkVersion = 36
6-
targetSdkVersion = 36
7-
ndkVersion = "27.1.12297006"
8-
kotlinVersion = "2.1.20"
9-
}
10-
11-
repositories {
12-
google()
13-
mavenCentral()
14-
}
15-
16-
dependencies {
17-
classpath("com.android.tools.build:gradle")
18-
classpath("com.facebook.react:react-native-gradle-plugin")
19-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
20-
}
21-
}
22-
23-
allprojects {
24-
repositories {
25-
maven {
26-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
27-
url({
28-
def searchDir = rootDir.toPath()
29-
do {
30-
def p = searchDir.resolve("node_modules/react-native/android")
31-
if (p.toFile().exists()) {
32-
return p.toRealPath().toString()
33-
}
34-
} while (searchDir = searchDir.getParent())
35-
throw new GradleException("Could not find `react-native`");
36-
}())
2+
ext {
3+
buildToolsVersion = "36.0.0"
4+
minSdkVersion = 24
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
7+
ndkVersion = "27.1.12297006"
8+
kotlinVersion = "2.1.20"
9+
}
10+
repositories {
11+
google()
12+
mavenCentral()
13+
}
14+
dependencies {
15+
classpath("com.android.tools.build:gradle")
16+
classpath("com.facebook.react:react-native-gradle-plugin")
17+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
3718
}
38-
mavenCentral()
39-
google()
40-
}
4119
}
4220

4321
apply plugin: "com.facebook.react.rootproject"

0 commit comments

Comments
 (0)