We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df61308 commit d91c5e8Copy full SHA for d91c5e8
1 file changed
android/build.gradle
@@ -10,13 +10,17 @@ buildscript {
10
11
apply plugin: 'com.android.library'
12
13
+def safeExtGet(prop, fallback) {
14
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
15
+}
16
+
17
android {
- compileSdkVersion 26
- buildToolsVersion "26.0.1"
18
+ compileSdkVersion safeExtGet("compileSdkVersion", 26)
19
+ buildToolsVersion safeExtGet("buildToolsVersion", "26.0.1")
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