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

Modern-Apps.git / library / carhost / build.gradle.kts

build.gradle.kts26 lines · 1.0 KiBRaw
1plugins {
2 id("common-conventions-library")
3}
4
5android {
6 lint {
7 // The renderers/parsers intentionally read experimental car-app template
8 // types (Chip, ConversationItem, InCall/TelephoneKeypad, MediaPlayback,
9 // SectionedItem). Kotlin opt-in is handled via @file:OptIn; this Android
10 // lint variant doesn't honor Kotlin @OptIn, so disable it module-wide
11 // rather than scatter androidx.annotation.OptIn across every parser.
12 disable += "UnsafeOptInUsageError"
13 }
14}
15
16dependencies {
17 // Renderers use library:ui components (Button/Card/ListItem/Text/TextButton/
18 // OutlinedTextField/CircularProgressIndicator/MaterialTheme). Apps that render
19 // car views in screenshot tests get these transitively.
20 implementation(project(":library:ui"))
21
22 // Car App Library: the HostTemplate model + parsers reference androidx.car.app.*
23 // template types, and consumers (auto host, app screenshot tests) build real
24 // Templates to feed the renderer, so expose it via `api`.
25 api(libs.androidx.car.app)
26}