Skip to content

Commit fed86f2

Browse files
committed
Fix the 0.57 version packaging problem
1 parent 77d25e4 commit fed86f2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

android/build.gradle

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
apply plugin: 'com.android.library'
22

3+
def safeExtGet(prop, fallback) {
4+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
5+
}
6+
37
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
8+
compileSdkVersion safeExtGet("compileSdkVersion",25)
9+
buildToolsVersion safeExtGet("buildToolsVersion","25.0.2")
610

711
defaultConfig {
8-
minSdkVersion 16
9-
targetSdkVersion 26
12+
minSdkVersion safeExtGet('minSdkVersion', 16)
13+
targetSdkVersion safeExtGet('targetSdkVersion', 26)
1014
versionCode 1
1115
versionName "1.0"
1216

0 commit comments

Comments
 (0)