Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / maps / build.gradle.kts

build.gradle.kts55 lines · 2.0 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // Listing screenshots come from Compose previews (src/screenshotTest), not from an
4 // instrumented test on a device. Same `:<module>:metadata` task name either way.
5 id("common-conventions-preview-metadata")
6}
7
8launcherIcon {
9 symbol = "location_on"
10}
11
12android {
13 defaultConfig {
14 applicationId = "com.vayunmathur.maps"
15 }
16 // PoiIndexTest exercises the real side-file reader, which logs. Without this every
17 // android.util.Log call throws "not mocked" and the test can only cover code that never logs.
18 testOptions.unitTests.isReturnDefaultValues = true
19}
20
21androidComponents {
22 onVariants { variant ->
23 variant.sources.jniLibs?.addStaticSourceDirectory(
24 layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath
25 )
26 }
27}
28
29// Native offline routing engine + traffic MVT tile encoder (Rust). See
30// maps/src/main/rust/. Replaces the previous CMake/C++ libofflinerouter.
31rustNativeLib("offlinerouter", "maps")
32
33dependencies {
34 implementation(project(":library:map"))
35 implementation(project(":library:image"))
36 implementation(project(":library:network"))
37
38 implementation(project(":library:downloadservice"))
39
40 // WorkManager: the map-overlay check worker outlives the settings screen.
41 implementation(project(":library:work"))
42
43 // Manifest JSON parsing (pure JVM: unit-testable, unlike org.json).
44 implementation(libs.kotlinx.serialization.json)
45
46 // Android Auto (P12): AndroidX Car App Library. `app` provides the
47 // CarAppService/Session/Screen/template model; `app-projected` provides the
48 // phone-projected (Android Auto) host connection. Only pulled into the car
49 // code path — the phone UI is untouched.
50 implementation(libs.androidx.car.app)
51 implementation(libs.androidx.car.app.projected)
52
53 // Car-view store-listing screenshots render through the shared host renderer.
54 add("screenshotTestImplementation", project(":library:carhost"))
55}