Skip to content

Commit

Permalink
chore: update minSdkVersion to get the project version or fallback to 21
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Bravo <ja.bravo.isidro@gmail.com>
  • Loading branch information
ja-bravo authored and berendsliedrecht committed May 22, 2024
1 parent 81a925b commit 3300023
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand All @@ -81,7 +85,7 @@ android {
}

defaultConfig {
minSdkVersion 21
minSdkVersion getExtWithFallback('minSdkVersion', '21')
targetSdkVersion getExt('targetSdkVersion')

externalNativeBuild {
Expand Down

0 comments on commit 3300023

Please sign in to comment.