Skip to content

Commit 223fef0

Browse files
authored
fix: fetch Gradle only when necessary (craftzdog#114)
1 parent 669216f commit 223fef0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

android/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
21
buildscript {
3-
repositories {
4-
mavenCentral()
5-
google()
6-
jcenter()
7-
}
8-
9-
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.2.1'
2+
if (project == rootProject) {
3+
repositories {
4+
mavenCentral()
5+
google()
6+
jcenter()
7+
}
8+
dependencies {
9+
classpath 'com.android.tools.build:gradle:3.2.1'
10+
}
1111
}
1212
}
1313

0 commit comments

Comments
 (0)