Revert "reads min/target sdk versions from localproperties" (#99191)

This commit is contained in:
Emmanuel Garcia
2022-02-28 11:41:22 -08:00
committed by GitHub
parent c80ff45afe
commit 9cb60c9828
16 changed files with 45 additions and 181 deletions

View File

@@ -28,16 +28,6 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def flutterMinSdkVersion = localProperties.getProperty('flutter.minSdkVersion')
if (flutterMinSdkVersion == null) {
flutterMinSdkVersion = flutter.minSdkVersion
}
def flutterTargetSdkVersion = localProperties.getProperty('flutter.targetSdkVersion')
if (flutterTargetSdkVersion == null) {
flutterTargetSdkVersion = flutter.targetSdkVersion
}
android {
compileSdkVersion flutter.compileSdkVersion
@@ -48,8 +38,8 @@ android {
defaultConfig {
applicationId "io.flutter.examples.flutter_view"
minSdkVersion flutterMinSdkVersion
targetSdkVersion flutterTargetSdkVersion
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}