Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / auto / build.gradle.kts
build.gradle.kts38 lines · 1.9 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-app") |
| 3 | id("common-conventions-preview-metadata") |
| 4 | } |
| 5 | launcherIcon { |
| 6 | symbol = "directions_car" |
| 7 | } |
| 8 | android { |
| 9 | defaultConfig { |
| 10 | applicationId = "com.vayunmathur.auto" |
| 11 | } |
| 12 | } |
| 13 | dependencies { |
| 14 | // The GAL wire format. Nothing in the app re-implements it, and keeping it out of here is |
| 15 | // what lets the handshake be tested on the JVM. |
| 16 | implementation(project(":auto:protocol")) |
| 17 | // Car template rendering (HostTemplate model + parsers + Compose renderers) lives in |
| 18 | // :library:carhost so apps can render their own car views in screenshot tests without |
| 19 | // depending on this app. This module supplies the real TextureView map island. |
| 20 | implementation(project(":library:carhost")) |
| 21 | // Media3 controller for the Phase 4 now-playing feed from the on-device media session. |
| 22 | implementation(libs.androidx.media3.session) |
| 23 | // Car App Library host: CarAppHost binds the :maps car-app service and |
| 24 | // implements the host binders (ICarHost/IAppHost/INavigationHost/ |
| 25 | // IConstraintHost) so the nav card renders whatever Maps publishes -- |
| 26 | // its own SurfaceContainer surface plus its NavigationTemplate -- instead |
| 27 | // of MA Auto re-rendering a second map. Tracks the carApp catalog version. |
| 28 | implementation(libs.androidx.car.app) |
| 29 | // Compose-in-Presentation: the car display owns its own LifecycleOwner + |
| 30 | // ViewModelStoreOwner + SavedStateRegistryOwner (see CarDisplayLifecycle), |
| 31 | // so the Presentation hosts a ComposeView on its private virtual display. |
| 32 | // Compose UI itself rides the BOM through :library:ui; these are the only |
| 33 | // direct additions, scoped to this module like :library:map's own |
| 34 | // lifecycle-runtime-compose (never in the shared convention plugin). |
| 35 | implementation(libs.androidx.lifecycle.runtime.compose) |
| 36 | implementation(libs.androidx.savedstate) |
| 37 | implementation(libs.androidx.lifecycle.viewmodel.savedstate) |
| 38 | } |