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'
|
||||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion "23.0.1"
|
||||
compileSdkVersion safeExtGet('compileSdkVersion', 26)
|
||||
buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 22
|
||||
minSdkVersion safeExtGet('minSdkVersion', 16)
|
||||
targetSdkVersion safeExtGet('targetSdkVersion', 26)
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
|
||||
|
||||
lintOptions {
|
||||
warning 'InvalidPackage'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user