Skip to content

Commit

Permalink
fix: use react-native convention for version overrides, allows Androi…
Browse files Browse the repository at this point in the history
…dX to work
  • Loading branch information
mikehardy committed Jun 19, 2019
1 parent afa9fc2 commit 70b46fa
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 @@ -2,13 +2,17 @@ apply plugin: 'com.android.library'
repositories {
mavenCentral()
}
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

android {
compileSdkVersion 26
buildToolsVersion "26.0.3"
compileSdkVersion safeExtGet('compileSdkVersion', 28)


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

0 comments on commit 70b46fa

Please sign in to comment.