From 5dc19dd4cb56195b220ae44ca64eba8a16539045 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 31 May 2018 10:09:31 +0200 Subject: [PATCH] Decrease min sdk when no analytics is enabled --- OsmAnd/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index 1be79579f9..08120eeed6 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -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