We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb7f403 commit 818f4acCopy full SHA for 818f4ac
android/build.gradle
@@ -1,12 +1,18 @@
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 23
- buildToolsVersion "23.0.1"
8
+ compileSdkVersion safeExtGet('compileSdkVersion', 26)
9
+ buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
10
11
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 23
12
+ minSdkVersion safeExtGet('minSdkVersion', 16)
13
+ targetSdkVersion safeExtGet('targetSdkVersion', 26)
14
+ versionCode 1
15
+ versionName "1.0"
16
}
17
18
lintOptions {
0 commit comments