We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2879e7b commit 262a7f8Copy full SHA for 262a7f8
1 file changed
android/build.gradle
@@ -11,13 +11,17 @@ buildscript {
11
12
apply plugin: 'com.android.library'
13
14
+def safeExtGet(prop, fallback) {
15
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
16
+}
17
+
18
android {
- compileSdkVersion 23
- buildToolsVersion "23.0.1"
19
+ compileSdkVersion safeExtGet("compileSdkVersion", 23)
20
+ buildToolsVersion safeExtGet("compileSdkVersion", "23.0.1")
21
22
defaultConfig {
23
minSdkVersion 16
- targetSdkVersion 22
24
+ targetSdkVersion safeExtGet("compileSdkVersion", 22)
25
versionCode 1
26
versionName "1.0"
27
}
0 commit comments