fix:升级 Flutter 3.44.9级相关插件

This commit is contained in:
jingyun committed 2026-09-18 11:04:29 +08:00
1 parent d364c6d908
commit a1819348d5
26 files changed
+305 -318

No files matched your search

+11 -9
View File
@@ -2,8 +2,7 @@ import java.util.Properties
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
// The Flutter Gradle Plugin must be applied after the Android plugin.
id("dev.flutter.flutter-gradle-plugin")
}
@@ -34,7 +33,8 @@ fun requireSigningProperty(name: String): String {
android {
namespace = "com.jinzhi.butler"
compileSdk = flutter.compileSdkVersion
// permission_handler and the current Android plugin set require API 37.
compileSdk = 37
ndkVersion = flutter.ndkVersion
signingConfigs {
@@ -47,12 +47,8 @@ android {
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
defaultConfig {
@@ -105,6 +101,12 @@ android {
}
}
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
}
}
flutter {
source = "../.."
}