|
@@ -22,25 +22,17 @@ if (flutterVersionName == null) {
|
|
}
|
|
}
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'com.android.application'
|
|
-apply plugin: 'kotlin-android'
|
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
|
|
|
|
android {
|
|
android {
|
|
- compileSdkVersion 30
|
|
|
|
|
|
+ compileSdkVersion 31
|
|
|
|
|
|
- sourceSets {
|
|
|
|
- main.java.srcDirs += 'src/main/kotlin'
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- lintOptions {
|
|
|
|
- disable 'InvalidPackage'
|
|
|
|
- }
|
|
|
|
|
|
|
|
defaultConfig {
|
|
defaultConfig {
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
applicationId "com.example.demo"
|
|
applicationId "com.example.demo"
|
|
minSdkVersion 16
|
|
minSdkVersion 16
|
|
- targetSdkVersion 30
|
|
|
|
|
|
+ targetSdkVersion 31
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionName flutterVersionName
|
|
versionName flutterVersionName
|
|
}
|
|
}
|
|
@@ -60,7 +52,3 @@ android {
|
|
flutter {
|
|
flutter {
|
|
source '../..'
|
|
source '../..'
|
|
}
|
|
}
|
|
-
|
|
|
|
-dependencies {
|
|
|
|
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
-}
|
|
|