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