Skip to content

Commit e5d2892

Browse files
authored
Merge pull request #111 from SaeedZhiany/patch-1
Update build.gradle
2 parents ef70ac3 + af2e762 commit e5d2892

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

android/build.gradle

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
apply plugin: 'com.android.library'
22

33
buildscript {
4-
repositories {
5-
maven { url "https://maven.google.com" }
6-
jcenter()
7-
google()
8-
}
4+
// The Android Gradle plugin is only required when opening the android folder stand-alone.
5+
// This avoids unnecessary downloads and potential conflicts when the library is included as a
6+
// module dependency in an application project.
7+
if (project == rootProject) {
8+
repositories {
9+
maven { url "https://maven.google.com" }
10+
jcenter()
11+
google()
12+
}
913

10-
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.4.1'
12-
}
14+
dependencies {
15+
classpath 'com.android.tools.build:gradle:3.5.1'
16+
}
17+
}
1318
}
1419

1520
def safeExtGet(prop, fallback) {

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-all.zip

0 commit comments

Comments
 (0)