build.gradle.kts
⎇
Raw
1plugins {
2 // AGP 9 has Kotlin built in.
3 id("com.android.application") version "9.4.1"
4}
5
6android {
7 namespace = "org.opentracker"
8 compileSdk = 36
9
10 defaultConfig {
11 applicationId = "org.opentracker"
12 // Android 12: GNSS batching and the modern LocationRequest.
13 minSdk = 31
14 targetSdk = 36
15 versionCode = 1
16 versionName = "0.1.0"
17 }
18
19 buildTypes {
20 debug {
21 applicationIdSuffix = ".debug"
22 // The emulator reaches a dev server on the host as http://10.0.2.2:8080.
23 manifestPlaceholders["cleartext"] = "true"
24 }
25 release {
26 isMinifyEnabled = false
27 manifestPlaceholders["cleartext"] = "false"
28 }
29 }
30
31 compileOptions {
32 sourceCompatibility = JavaVersion.VERSION_21
33 targetCompatibility = JavaVersion.VERSION_21
34 }
35
36 lint {
37 disable += setOf(
38 // Upgrades are a decision, not a lint finding.
39 "OldTargetApi",
40 "GradleDependency",
41 "AndroidGradlePluginVersion",
42 "NewerVersionAvailable",
43 )
44 warningsAsErrors = true
45 }
46
47 testOptions {
48 unitTests.isReturnDefaultValues = true
49 }
50}
51
52dependencies {
53 implementation("androidx.browser:browser:1.10.0")
54 // Must match the Kotlin version that AGP bundles: ./gradlew :app:buildEnvironment | grep kotlin-gradle-plugin
55 testImplementation("org.jetbrains.kotlin:kotlin-test-junit:2.2.10")
56}
57