We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d25e4 commit fed86f2Copy full SHA for fed86f2
android/build.gradle
@@ -1,12 +1,16 @@
1
apply plugin: 'com.android.library'
2
3
+def safeExtGet(prop, fallback) {
4
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
5
+}
6
+
7
android {
- compileSdkVersion 25
- buildToolsVersion "25.0.2"
8
+ compileSdkVersion safeExtGet("compileSdkVersion",25)
9
+ buildToolsVersion safeExtGet("buildToolsVersion","25.0.2")
10
11
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 26
12
+ minSdkVersion safeExtGet('minSdkVersion', 16)
13
+ targetSdkVersion safeExtGet('targetSdkVersion', 26)
14
versionCode 1
15
versionName "1.0"
16
0 commit comments