Decrease min sdk when no analytics is enabled

This commit is contained in:
Victor Shcherb 2018-05-31 10:09:31 +02:00
parent 60473c6018
commit 5dc19dd4cb

View file

@ -57,7 +57,8 @@ android {
}
defaultConfig {
minSdkVersion System.getenv("MIN_SDK_VERSION") ? System.getenv("MIN_SDK_VERSION").toInteger() : 15
minSdkVersion System.getenv("MIN_SDK_VERSION") ? System.getenv("MIN_SDK_VERSION").toInteger() :
(analytics ? 15 : 14)
targetSdkVersion 26
versionCode 300
versionCode System.getenv("APK_NUMBER_VERSION") ? System.getenv("APK_NUMBER_VERSION").toInteger() : versionCode