plugins { id("com.android.application") // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id("dev.flutter.flutter-gradle-plugin") } android { namespace = "dev.netquality.netquality" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "dev.netquality.netquality" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion // Uses the version code from pubspec.yaml. When using split APKs, 1000 * ABI_VERSION // is added automatically by Flutter. (https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions) // You can force using the value of versionCode by specifying the `-P force-version-code-ignoring-abi=true` // flag during build. versionCode = flutter.versionCode versionName = flutter.versionName } // 1.1.3 及以后的 debug / release 都用仓库里的这一把。缺文件就失败,不要回退到本机新建的 debug.keystore。 val sharedDebugKeystore = rootProject.file("keystore/debug.keystore") if (!sharedDebugKeystore.isFile) { throw GradleException( "缺少 client/android/keystore/debug.keystore。后续版本必须沿用 1.1.3 的调试证书,不要另建密钥。", ) } signingConfigs { getByName("debug") { storeFile = sharedDebugKeystore storePassword = "android" keyAlias = "androiddebugkey" keyPassword = "android" } } buildTypes { debug { signingConfig = signingConfigs.getByName("debug") } release { signingConfig = signingConfigs.getByName("debug") } } } kotlin { compilerOptions { jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 } } flutter { source = "../.." }