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 <[email protected]>
  • Loading branch information
ja-bravo authored May 13, 2024
1 parent 2cac429 commit 480bd3e
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 480bd3e

Please sign in to comment.