Skip to content

Commit f283c99

Browse files
Merge pull request #30 from antoniogoulao/patch-1
2 parents 2879e7b + 61afdf9 commit f283c99

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

android/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ buildscript {
1111

1212
apply plugin: 'com.android.library'
1313

14+
def safeExtGet(prop, fallback) {
15+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
16+
}
17+
1418
android {
15-
compileSdkVersion 23
16-
buildToolsVersion "23.0.1"
19+
compileSdkVersion safeExtGet("compileSdkVersion", 23)
20+
buildToolsVersion safeExtGet("buildToolsVersion", "23.0.1")
1721

1822
defaultConfig {
1923
minSdkVersion 16
20-
targetSdkVersion 22
24+
targetSdkVersion safeExtGet("targetSdkVersion", 22)
2125
versionCode 1
2226
versionName "1.0"
2327
}

0 commit comments

Comments
 (0)