check sdk version at the project level, bump minimum sdk version

This commit is contained in:
hssrrw 2018-11-01 12:42:18 +02:00
parent 58d0daabc5
commit 6a9273419a

View File

@ -1,12 +1,16 @@
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"
} }