diff --git a/android/build.gradle b/android/build.gradle index d5b43d7..08b4da2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,9 +21,13 @@ rootProject.allprojects { apply plugin: 'com.android.library' -android { - compileSdkVersion 28 +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} +android { + compileSdkVersion safeExtGet('compileSdkVersion', 28) + defaultConfig { minSdkVersion 16 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"