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

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

AGENTS.md1.2 KiBRenderedCodeRaw

AGENTS.md — library/carhost/ (':library:carhost')

Scoped supplement. Global rules in root AGENTS.md apply. Stay inside library/carhost/ + allowed shared modules. Do not root-scan.

  • Gradle: :library:carhost / dir: library/carhost/
  • Package roots present: (car template host — one package)
  • Entry files: CarTemplateView.kt (no MainActivity/Route — library)
  • Deps: :library:ui (permission-free)
  • Metadata: metadata_data/library-carhost.md (absent — libraries have none by design)
  • Rust: no / screenshotTest: no

Overview

Purpose: Car-template host views for :auto — CarTemplateView renders head-unit templates with HostTemplateState. Companion to :auto:protocol (wire) and the auto/ app (session). How to use: Host CarTemplateView, drive it from HostTemplateState; scope car UI work here, session work in auto/, wire work in :auto:protocol. Entry points: CarTemplateView.kt → HostTemplateState.kt. Gotchas: Driver-distraction templating rules apply to anything rendered here.

Key files

  • com/vayunmathur/library/carhost/CarTemplateView.kt
  • com/vayunmathur/library/carhost/HostTemplateState.kt

Verify (this module only)

./gradlew :library:carhost:compileDevKotlin
./gradlew :library:carhost:lint