Skip to content

Commit

Permalink
Merge pull request #3 from chris-griffin/master
Browse files Browse the repository at this point in the history
Pull info from app build.gradle if available; Use implementation
  • Loading branch information
phillbaker authored Jun 25, 2019
2 parents e0d836f + 12f1eed commit 31b8a18
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
@@ -1,3 +1,7 @@
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

buildscript {
repositories {
jcenter()
Expand All @@ -11,12 +15,12 @@ buildscript {
apply plugin: 'com.android.library'

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

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

0 comments on commit 31b8a18

Please sign in to comment.