plugins { // AGP 9 has Kotlin built in. id("com.android.application") version "9.4.1" } android { namespace = "org.opentracker" compileSdk = 36 defaultConfig { applicationId = "org.opentracker" // Android 12: GNSS batching and the modern LocationRequest. minSdk = 31 targetSdk = 36 versionCode = 1 versionName = "0.1.0" } buildTypes { debug { applicationIdSuffix = ".debug" // The emulator reaches a dev server on the host as http://10.0.2.2:8080. manifestPlaceholders["cleartext"] = "true" } release { isMinifyEnabled = false manifestPlaceholders["cleartext"] = "false" } } compileOptions { sourceCompatibility = JavaVersion.VERSION_21 targetCompatibility = JavaVersion.VERSION_21 } lint { disable += setOf( // Not translated. The texts live next to the code that uses them. "SetTextI18n", // Upgrades are a decision, not a lint finding. "OldTargetApi", "GradleDependency", "AndroidGradlePluginVersion", "NewerVersionAvailable", ) warningsAsErrors = true } testOptions { unitTests.isReturnDefaultValues = true } } dependencies { implementation("androidx.browser:browser:1.10.0") // Must match the Kotlin version that AGP bundles: ./gradlew :app:buildEnvironment | grep kotlin-gradle-plugin testImplementation("org.jetbrains.kotlin:kotlin-test-junit:2.2.10") }