Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
Solves issue #29
  • Loading branch information
António Goulão authored Oct 1, 2020
1 parent 2879e7b commit 262a7f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ buildscript {

apply plugin: 'com.android.library'

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

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion safeExtGet("compileSdkVersion", 23)
buildToolsVersion safeExtGet("compileSdkVersion", "23.0.1")

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

0 comments on commit 262a7f8

Please sign in to comment.