Skip to content

Commit 36cdd44

Browse files
authored
chore: update minSdkVersion to get the project version or fallback to 21 (#272)
Signed-off-by: Jose Bravo <[email protected]>
1 parent b33cbf9 commit 36cdd44

File tree

1 file changed

+5
-1
lines changed
  • wrappers/javascript/indy-vdr-react-native/android

1 file changed

+5
-1
lines changed

wrappers/javascript/indy-vdr-react-native/android/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ def getExt(name) {
5959
return rootProject.ext.get(name)
6060
}
6161

62+
def getExtWithFallback(prop, fallback) {
63+
return rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
64+
}
65+
6266
def resolveBuildType() {
6367
def buildType = "debug"
6468
tasks.all({ task ->
@@ -81,7 +85,7 @@ android {
8185
}
8286

8387
defaultConfig {
84-
minSdkVersion 21
88+
minSdkVersion getExtWithFallback('minSdkVersion', '21')
8589
targetSdkVersion getExt('targetSdkVersion')
8690

8791
externalNativeBuild {

0 commit comments

Comments
 (0)