Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
prscms committed Mar 31, 2019
2 parents 2c7bd57 + 45e293f commit dfa9483
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ buildscript {

apply plugin: 'com.android.library'

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

android {
compileSdkVersion 27
buildToolsVersion '28.0.3'
compileSdkVersion safeExtGet("compileSdkVersion", 27)
buildToolsVersion safeExtGet("buildToolsVersion", "28.0.3")

defaultConfig {
minSdkVersion 16
targetSdkVersion 27
minSdkVersion safeExtGet("minSdkVersion", 16)
targetSdkVersion safeExtGet("targetSdkVersion", 27)
versionCode 1
versionName "1.0"
}
Expand Down

0 comments on commit dfa9483

Please sign in to comment.