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 a308f3c commit fbb4275Copy full SHA for fbb4275
android/build.gradle
@@ -1,3 +1,7 @@
1
+def safeExtGet(prop, fallback) {
2
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3
+}
4
+
5
buildscript {
6
repositories {
7
jcenter()
@@ -11,12 +15,12 @@ buildscript {
11
15
apply plugin: 'com.android.library'
12
16
13
17
android {
14
- compileSdkVersion 25
- buildToolsVersion "25.0.3"
18
+ compileSdkVersion safeExtGet('compileSdkVersion', 25)
19
+ buildToolsVersion safeExtGet('buildToolsVersion', '25.0.3')
20
21
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 22
22
+ minSdkVersion safeExtGet('minSdkVersion', 16)
23
+ targetSdkVersion safeExtGet('targetSdkVersion', 22)
24
versionCode 1
25
versionName "1.0"
26
0 commit comments