We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a598939 commit 71c0661Copy full SHA for 71c0661
android/build.gradle
@@ -1,3 +1,6 @@
1
+def safeExtGet(prop, fallback) {
2
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3
+}
4
5
buildscript {
6
repositories {
@@ -12,12 +15,12 @@ buildscript {
12
15
apply plugin: 'com.android.library'
13
16
14
17
android {
- compileSdkVersion 26
- buildToolsVersion "25.0.3"
18
+ compileSdkVersion safeExtGet('compileSdkVersion', 26)
19
+ buildToolsVersion safeExtGet('buildToolsVersion', "25.0.3")
20
21
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 26
22
+ minSdkVersion safeExtGet('minSdkVersion', 16)
23
+ targetSdkVersion safeExtGet('targetSdkVersion', 26)
24
versionCode 1
25
versionName "1.0"
26
}
0 commit comments