We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afa9fc2 + 70b46fa commit ba399b1Copy full SHA for ba399b1
android/build.gradle
@@ -2,13 +2,17 @@ apply plugin: 'com.android.library'
2
repositories {
3
mavenCentral()
4
}
5
+def safeExtGet(prop, fallback) {
6
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
7
+}
8
+
9
android {
- compileSdkVersion 26
- buildToolsVersion "26.0.3"
10
+ compileSdkVersion safeExtGet('compileSdkVersion', 28)
11
12
13
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 26
14
+ minSdkVersion safeExtGet('minSdkVersion', 16)
15
+ targetSdkVersion safeExtGet('targetSdkVersion', 28)
16
versionCode 1
17
versionName "1.0"
18
0 commit comments