Skip to content

Commit

Permalink
Fix the 0.57 version packaging problem
Browse files Browse the repository at this point in the history
  • Loading branch information
2534290808 committed Jan 3, 2019
1 parent 77d25e4 commit fed86f2
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,12 +1,16 @@
apply plugin: 'com.android.library'

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

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
compileSdkVersion safeExtGet("compileSdkVersion",25)
buildToolsVersion safeExtGet("buildToolsVersion","25.0.2")

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

Expand Down

0 comments on commit fed86f2

Please sign in to comment.