File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ def getPackageVersion() {
55}
66
77def safeExtGet (prop , fallback ) {
8- return rootProject. ext. hasProperty (prop) ? rootProject. ext. get(prop) : fallback
8+ return rootProject. ext. has (prop) ? rootProject. ext. get(prop) : fallback
99}
1010
1111def _buildToolsVersion = safeExtGet(' buildToolsVersion' , ' 28.0.3' )
@@ -14,12 +14,18 @@ def _targetSdkVersion = safeExtGet('targetSdkVersion', 28)
1414def _minSdkVersion = safeExtGet(' minSdkVersion' , 16 )
1515
1616buildscript {
17- repositories {
18- google()
19- jcenter()
20- }
21- dependencies {
22- classpath ' com.android.tools.build:gradle:3.4.1'
17+ // The Android Gradle plugin is only required when opening the android folder stand-alone.
18+ // This avoids unnecessary downloads and potential conflicts when the library is included as a
19+ // module dependency in an application project.
20+ if (project == rootProject) {
21+ repositories {
22+ google()
23+ jcenter()
24+ }
25+
26+ dependencies {
27+ classpath(" com.android.tools.build:gradle:3.5.3" )
28+ }
2329 }
2430}
2531
You can’t perform that action at this time.
0 commit comments