File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
2
apply plugin : ' com.android.library'
3
3
4
+ def DEFAULT_COMPILE_SDK_VERSION = 26
5
+ def DEFAULT_BUILD_TOOLS_VERSION = " 26.0.2"
6
+ def DEFAULT_TARGET_SDK_VERSION = 26
7
+
4
8
android {
5
- compileSdkVersion 26
6
- buildToolsVersion " 26.0.2 "
9
+ compileSdkVersion rootProject . hasProperty( ' compileSdkVersion ' ) ? rootProject . compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10
+ buildToolsVersion rootProject . hasProperty( ' buildToolsVersion ' ) ? rootProject . buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
7
11
8
12
defaultConfig {
9
13
minSdkVersion 16
10
- targetSdkVersion 26
14
+ targetSdkVersion rootProject . hasProperty( ' targetSdkVersion ' ) ? rootProject . targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
11
15
versionCode 1
12
16
versionName " 1.0"
13
17
ndk {
You can’t perform that action at this time.
0 commit comments