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 = "net.awan.pipelines_app" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion compileOptions { // flutter_local_notifications needs the newer Java APIs on older phones. isCoreLibraryDesugaringEnabled = true 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 = "net.awan.pipelines.next" // 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 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") // Keeps JNI-called plugin code (see proguard-rules.pro). proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro", ) } } } kotlin { compilerOptions { jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 } } flutter { source = "../.." } dependencies { coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") // The background notification socket (notify/NotificationService). implementation("com.squareup.okhttp3:okhttp:4.12.0") // NotificationCompat.MessagingStyle for the per-chat/run conversations (notify/NotificationPresenter). implementation("androidx.core:core:1.15.0") // JVM tests for the notification protocol and ledger (`gradlew :app:testDebugUnitTest`). testImplementation("junit:junit:4.13.2") // Android's org.json is a stub on the JVM; tests use the real implementation. testImplementation("org.json:json:20180813") }