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