@@ -8,10 +8,10 @@ def safeExtGet(prop, fallback) {
8
8
rootProject. hasProperty(prop) ? rootProject. ext. get(prop) : fallback
9
9
}
10
10
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 )
15
15
16
16
buildscript {
17
17
repositories {
@@ -29,12 +29,12 @@ buildscript {
29
29
apply plugin : ' com.android.library'
30
30
31
31
android {
32
- compileSdkVersion safeExtGet( ' compileSdkVersion ' , DEF_COMPILE_SDK_VERSION )
33
- buildToolsVersion safeExtGet( ' buildToolsVersion ' , DEF_BUILD_TOOLS_VERSION )
32
+ compileSdkVersion _compileSdkVersion
33
+ buildToolsVersion _buildToolsVersion
34
34
35
35
defaultConfig {
36
- minSdkVersion safeExtGet( ' minSdkVersion ' , DEF_MIN_SDK_VERSION )
37
- targetSdkVersion safeExtGet( ' targetSdkVersion ' , DEF_TARGET_SDK_VERSION )
36
+ minSdkVersion _minSdkVersion
37
+ targetSdkVersion _targetSdkVersion
38
38
versionCode 2
39
39
versionName getPackageVersion()
40
40
}
0 commit comments