Skip to content

Commit

Permalink
chore: update minSdkVersion to get the project version or fallback to…
Browse files Browse the repository at this point in the history
… 21 (#272)

Signed-off-by: Jose Bravo <[email protected]>
  • Loading branch information
ja-bravo authored May 13, 2024
1 parent b33cbf9 commit 36cdd44
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 36cdd44

Please sign in to comment.