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 343b47e + c391b99 commit 10a1f32Copy full SHA for 10a1f32
android/build.gradle
@@ -1,12 +1,16 @@
1
+def safeExtGet(prop, fallback) {
2
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3
+}
4
+
5
apply plugin: 'com.android.library'
6
7
android {
- compileSdkVersion 28
- buildToolsVersion "28.0.3"
8
+ compileSdkVersion safeExtGet('compileSdkVersion', 28)
9
+ buildToolsVersion safeExtGet('buildToolsVersion', "28.0.3")
10
11
defaultConfig {
- minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : 16
- targetSdkVersion 28
12
+ minSdkVersion safeExtGet('minSdkVersion', 16)
13
+ targetSdkVersion safeExtGet('targetSdkVersion', 28)
14
versionCode 1
15
versionName "1.0"
16
ndk {
0 commit comments