Revert "reads min/target sdk versions from localproperties" (#99191)
This commit is contained in:
@@ -29,16 +29,6 @@ apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
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
|
||||
|
||||
@@ -58,8 +48,8 @@ android {
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "dev.flutter.flutter_api_samples"
|
||||
minSdkVersion flutterMinSdkVersion
|
||||
targetSdkVersion flutterTargetSdkVersion
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user