plugins { id("com.android.application") // START: FlutterFire Configuration id("com.google.gms.google-services") // END: FlutterFire Configuration id("kotlin-android") // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id("dev.flutter.flutter-gradle-plugin") } android { namespace = "com.example.tasq" // ensure we compile against a recent Android SDK (34+ required by some plugins) // Flutter's generated `flutter.compileSdkVersion` may lag behind, so hardcode // the value here to avoid resource/linking errors during release builds. // many plugins now request API 36; we target the highest needed level. compileSdk = 36 ndkVersion = flutter.ndkVersion compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 // required by flutter_local_notifications and other libraries using // Java 8+ APIs at runtime isCoreLibraryDesugaringEnabled = true } kotlinOptions { jvmTarget = JavaVersion.VERSION_17.toString() } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "com.example.tasq" // 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 // lock the target SDK to match compileSdk so that plugin requirements // are satisfied. Higher targetSdk is backwards compatible. targetSdk = 36 versionCode = flutter.versionCode versionName = flutter.versionName } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig = signingConfigs.getByName("debug") } } // Disable lint checks during release builds to avoid intermittent // file-lock errors on Windows (lintVitalAnalyzeRelease tasks can // collide with other processes). The app is presumed stable and // lint warnings are handled during development. lint { checkReleaseBuilds = false abortOnError = false } // allow desugaring of Java 8+ library APIs } // dependencies section for additional compile-only libraries dependencies { coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") } flutter { source = "../.." }