diff --git a/wrappers/javascript/indy-vdr-react-native/android/build.gradle b/wrappers/javascript/indy-vdr-react-native/android/build.gradle index 9017d77e..083320b1 100644 --- a/wrappers/javascript/indy-vdr-react-native/android/build.gradle +++ b/wrappers/javascript/indy-vdr-react-native/android/build.gradle @@ -59,6 +59,10 @@ def getExt(name) { return rootProject.ext.get(name) } +def getExtWithFallback(prop, fallback) { + return rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} + def resolveBuildType() { def buildType = "debug" tasks.all({ task -> @@ -81,7 +85,7 @@ android { } defaultConfig { - minSdkVersion 21 + minSdkVersion getExtWithFallback('minSdkVersion', '21') targetSdkVersion getExt('targetSdkVersion') externalNativeBuild {