check sdk version at the project level, bump minimum sdk version
This commit is contained in:
parent
58d0daabc5
commit
6a9273419a
@ -1,16 +1,20 @@
|
|||||||
|
def safeExtGet(prop, fallback) {
|
||||||
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
||||||
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 23
|
compileSdkVersion safeExtGet('compileSdkVersion', 26)
|
||||||
buildToolsVersion "23.0.1"
|
buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 16
|
minSdkVersion safeExtGet('minSdkVersion', 16)
|
||||||
targetSdkVersion 22
|
targetSdkVersion safeExtGet('targetSdkVersion', 26)
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
warning 'InvalidPackage'
|
warning 'InvalidPackage'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user