Skip to content

Commit

Permalink
fix: get targetSdkVersion from project ext (#5656)
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug authored Oct 18, 2022
1 parent 6155ff7 commit 7574be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor/gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ allprojects {


def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : 31 }
def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk : 31 as int }
def computeBuildToolsVersion = { ->
project.hasProperty("buildToolsVersion") ? buildToolsVersion : "31.0.0"
}
Expand All @@ -166,7 +167,7 @@ android {
buildToolsVersion computeBuildToolsVersion()

defaultConfig {
targetSdkVersion 31
targetSdkVersion computeTargetSdkVersion()
versionCode 1
versionName "1.0"
}
Expand Down

0 comments on commit 7574be2

Please sign in to comment.