Skip to content

Commit 3bc7466

Browse files
author
volodymytymets
committed
fix min sdk version conflicts
1 parent d4e860d commit 3bc7466

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

android/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
def safeExtGet(prop, fallback) {
2+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3+
}
4+
15
apply plugin: 'com.android.library'
26

37
def DEFAULT_COMPILE_SDK_VERSION = 26
@@ -10,7 +14,7 @@ android {
1014
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
1115

1216
defaultConfig {
13-
minSdkVersion 16
17+
minSdkVersion safeExtGet('minSdkVersion', 16)
1418
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
1519
versionCode 1
1620
versionName "1.0"

0 commit comments

Comments
 (0)