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

Modern-Apps.git / library / carhost / AGENTS.md

AGENTS.md1.2 KiBRenderedCodeRaw
1# AGENTS.md — library/carhost/ (':library:carhost')
2
3> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/carhost/` + allowed shared modules. Do not root-scan.
4
5- Gradle: :library:carhost / dir: library/carhost/
6- Package roots present: (car template host — one package)
7- Entry files: CarTemplateView.kt (no MainActivity/Route — library)
8- Deps: :library:ui (permission-free)
9- Metadata: metadata_data/library-carhost.md (absent — libraries have none by design)
10- Rust: no / screenshotTest: no
11
12## Overview
13**Purpose:** Car-template host views for `:auto` — `CarTemplateView` renders head-unit templates with `HostTemplateState`. Companion to `:auto:protocol` (wire) and the `auto/` app (session).
14**How to use:** Host `CarTemplateView`, drive it from `HostTemplateState`; scope car UI work here, session work in `auto/`, wire work in `:auto:protocol`.
15**Entry points:** `CarTemplateView.kt` → `HostTemplateState.kt`.
16**Gotchas:** Driver-distraction templating rules apply to anything rendered here.
17
18## Key files
19- com/vayunmathur/library/carhost/CarTemplateView.kt
20- com/vayunmathur/library/carhost/HostTemplateState.kt
21
22## Verify (this module only)
23```
24./gradlew :library:carhost:compileDevKotlin
25./gradlew :library:carhost:lint
26```