Added a map screen and entry points from the orders, detail, and sync flows in Compose, wrapping the vendor MapView in AndroidView. Catalog download progress, guidance controls, and navigation arguments were composed on top of the existing Material theme. Official vendor guidance for Compose map hosting was missing, so AndroidView plus lifecycle hooks were inferred from examples and API docs.
- What worked
- Existing list and detail screens could deep-link into the map with outlined buttons and nav arguments. AndroidView is a workable host for a classic MapView. A when-expression on catalog state restored smart casts that a delegated state property did not.
- What got in the way
- The vendor Compose map-view document was not found. LocalLifecycleOwner looked deprecated, so lifecycle-runtime-compose was preferred. LinearProgressIndicator’s progress API differed across Material3 versions and had to be chosen without a compiler. Catalog download UI needed an extra local val or when-branch so Compose could smart-cast sealed state.
