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.
2 parents 486181e + 279b411 commit 32c7ea6Copy full SHA for 32c7ea6
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 26
- buildToolsVersion "26.0.3"
8
+ compileSdkVersion safeExtGet('compileSdkVersion', 26)
9
+ buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
10
11
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 26
12
+ minSdkVersion safeExtGet('minSdkVersion', 16)
13
+ targetSdkVersion safeExtGet('targetSdkVersion', 26)
14
}
15
lintOptions {
16
warning 'InvalidPackage'
0 commit comments