Skip to content

Commit 7574be2

Browse files
authored
fix: get targetSdkVersion from project ext (#5656)
1 parent 6155ff7 commit 7574be2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vendor/gradle-plugin/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ allprojects {
146146

147147

148148
def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : 31 }
149+
def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk : 31 as int }
149150
def computeBuildToolsVersion = { ->
150151
project.hasProperty("buildToolsVersion") ? buildToolsVersion : "31.0.0"
151152
}
@@ -166,7 +167,7 @@ android {
166167
buildToolsVersion computeBuildToolsVersion()
167168

168169
defaultConfig {
169-
targetSdkVersion 31
170+
targetSdkVersion computeTargetSdkVersion()
170171
versionCode 1
171172
versionName "1.0"
172173
}

0 commit comments

Comments
 (0)