@@ -8,10 +8,10 @@ def safeExtGet(prop, fallback) {
88 rootProject. hasProperty(prop) ? rootProject. ext. get(prop) : fallback
99}
1010
11- def DEF_BUILD_TOOLS_VERSION = ' 26.0.3'
12- def DEF_COMPILE_SDK_VERSION = 26
13- def DEF_TARGET_SDK_VERSION = 26
14- def DEF_MIN_SDK_VERSION = 16
11+ def _buildToolsVersion = safeExtGet( ' buildToolsVersion ' , ' 26.0.3' )
12+ def _compileSdkVersion = safeExtGet( ' compileSdkVersion ' , 26 )
13+ def _targetSdkVersion = safeExtGet( ' targetSdkVersion ' , 26 )
14+ def _minSdkVersion = safeExtGet( ' minSdkVersion ' , 16 )
1515
1616buildscript {
1717 repositories {
@@ -29,12 +29,12 @@ buildscript {
2929apply plugin : ' com.android.library'
3030
3131android {
32- compileSdkVersion safeExtGet( ' compileSdkVersion ' , DEF_COMPILE_SDK_VERSION )
33- buildToolsVersion safeExtGet( ' buildToolsVersion ' , DEF_BUILD_TOOLS_VERSION )
32+ compileSdkVersion _compileSdkVersion
33+ buildToolsVersion _buildToolsVersion
3434
3535 defaultConfig {
36- minSdkVersion safeExtGet( ' minSdkVersion ' , DEF_MIN_SDK_VERSION )
37- targetSdkVersion safeExtGet( ' targetSdkVersion ' , DEF_TARGET_SDK_VERSION )
36+ minSdkVersion _minSdkVersion
37+ targetSdkVersion _targetSdkVersion
3838 versionCode 2
3939 versionName getPackageVersion()
4040 }
0 commit comments