Skip to content

Commit 0856521

Browse files
author
jamieg
committed
update build.gradle
1 parent 7fbb023 commit 0856521

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

android/build.gradle

+9-4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ buildscript {
1313
}
1414
}
1515

16+
def safeExtGet(prop, fallback) {
17+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
18+
}
19+
1620
android {
17-
compileSdkVersion 27
18-
buildToolsVersion "27.0.3"
21+
compileSdkVersion safeExtGet("compileSdkVersion", 28)
22+
buildToolsVersion safeExtGet("buildToolsVersion", "28.0.3")
23+
1924
defaultConfig {
20-
minSdkVersion 23
21-
targetSdkVersion 26
25+
minSdkVersion safeExtGet("minSdkVersion", 23)
26+
targetSdkVersion safeExtGet("targetSdkVersion", 27)
2227
versionCode 1
2328
versionName "1.0"
2429
}

0 commit comments

Comments
 (0)