plugins { id("com.android.application") id("dev.flutter.flutter-gradle-plugin") } android { namespace = "dev.flutter.plugins.shared_preferences_example" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } defaultConfig { applicationId = "dev.flutter.plugins.shared_preferences_example" minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { signingConfig = signingConfigs.getByName("debug") } } lint { disable.add("InvalidPackage") } } kotlin { compilerOptions { jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 } } flutter { source = "../.." } dependencies { implementation("androidx.datastore:datastore-preferences:1.0.0") implementation("androidx.preference:preference:1.2.1") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.espresso:espresso-intents:3.2.0") androidTestImplementation("androidx.test:runner:1.2.0") androidTestImplementation("androidx.test:rules:1.2.0") androidTestImplementation("androidx.test.espresso:espresso-core:3.2.0") api("androidx.test:core:1.4.0") }