# jadeberbie9-boop/routedrop-app architecture

> Architecture diagram of the GitHub repository jadeberbie9-boop/routedrop-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jadeberbie9-boop/routedrop-app
- Repository: https://github.com/jadeberbie9-boop/routedrop-app

## Overview

RouteDrop is an Android delivery app: users sign in or continue as guests, then manage deliveries with pickup/drop-off locations and courier tracking. The sampled code shows the app entry point, location search and pin selection, and route/ETA calculation; the source index also identifies delivery UI/state and authentication modules. A separate baking-image prompt feature is present in the sampled UI and calls Gemini. Several app modules are unsampled, so their internal wiring is not inferred beyond documented references.

Main entry points: [`src/MainActivity.kt`](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/MainActivity.kt) (App entry), [`src/UI.kt`](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/UI.kt) (Compose UI modules), [`app/src/main/java/com/example/myapplication/routedrop/RouteDropScreen.kt`](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/RouteDropScreen.kt) (Delivery dashboard), [`app/src/main/java/com/example/myapplication/map/LocationSearchMapScreen.kt`](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/map/LocationSearchMapScreen.kt) (Location search screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App flow"]
  node_main["App entry<br/>[MainActivity.kt]"]
  node_authui["Login and signup<br/>[AuthScreens.kt]"]
  node_auth["Session manager<br/>[AuthManager.kt]"]
  node_uisrc["Compose UI modules<br/>[UI.kt]"]
end

subgraph group_delivery["Delivery operations"]
  node_routeui["Delivery dashboard<br/>[RouteDropScreen.kt]"]
  node_state["Delivery state<br/>[AppViewModel.kt]"]
  node_models["Delivery and users<br/>[Users.kt]"]
end

subgraph group_location["Location and routing"]
  node_mapcore["Map and search<br/>[Map.kt]"]
  node_mapsearch["Location search screen"]
  node_picker["Map location picker"]
  node_lochelper["Device location<br/>[LocationHelper.kt]"]
  node_routing["Route and ETA<br/>[RoutingHelper.kt]"]
  node_osm["Map setup<br/>[OsmSetup.kt]"]
end

subgraph group_ai["Baking AI"]
  node_bake["Baking prompt screen<br/>[BakingScreen.kt]"]
  node_bakevm["Prompt state and request<br/>[BakingViewModel.kt]"]
  node_gemini{{"Gemini AI"}}
end

node_user(("App user"))

node_user -->|"opens app"| node_main
node_main -->|"shows login/signup"| node_authui
node_authui -->|"reports auth result"| node_main
node_main -->|"loads/saves session"| node_auth
node_main -->|"opens dashboard"| node_routeui
node_main -->|"provides view model"| node_state
node_routeui -.->|"uses state"| node_state
node_routeui -.->|"displays deliveries"| node_models
node_mapcore -->|"fetches location"| node_lochelper
node_mapcore -->|"references screen"| node_mapsearch
node_mapsearch -.->|"uses picker"| node_picker
node_mapsearch -.->|"uses location helper"| node_lochelper
node_models -->|"requests route and ETA"| node_routing
node_main -->|"initializes maps"| node_osm
node_uisrc -->|"references view model"| node_state
node_uisrc -->|"references session manager"| node_auth
node_uisrc -->|"references dashboard"| node_routeui
node_uisrc -->|"references baking screen"| node_bake
node_bake -->|"sends image prompt"| node_bakevm
node_bakevm -->|"generates content"| node_gemini

click node_main "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/MainActivity.kt"
click node_authui "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/ui/AuthScreens.kt"
click node_auth "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/AuthManager.kt"
click node_routeui "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/RouteDropScreen.kt"
click node_state "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/AppViewModel.kt"
click node_models "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/Users.kt"
click node_mapcore "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/Map.kt"
click node_mapsearch "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/map/LocationSearchMapScreen.kt"
click node_picker "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/map/MapLocationPicker.kt"
click node_lochelper "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/LocationHelper.kt"
click node_routing "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/RoutingHelper.kt"
click node_osm "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/map/OsmSetup.kt"
click node_uisrc "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/UI.kt"
click node_bake "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/ui/BakingScreen.kt"
click node_bakevm "https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/ui/BakingViewModel.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_authui,node_auth,node_uisrc,node_user toneBlue
class node_routeui,node_state,node_models toneAmber
class node_mapcore,node_mapsearch,node_picker,node_lochelper,node_routing,node_osm toneMint
class node_bake,node_bakevm,node_gemini toneRose
```

## Components

### App flow

- [App entry](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/MainActivity.kt): `src/MainActivity.kt`
- [Login and signup](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/ui/AuthScreens.kt): `app/src/main/java/com/example/myapplication/ui/AuthScreens.kt`
- [Session manager](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/AuthManager.kt): `app/src/main/java/com/example/myapplication/routedrop/AuthManager.kt`
- [Compose UI modules](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/UI.kt): `src/UI.kt`

### Delivery operations

- [Delivery dashboard](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/RouteDropScreen.kt): `app/src/main/java/com/example/myapplication/routedrop/RouteDropScreen.kt`
- [Delivery state](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/AppViewModel.kt): `app/src/main/java/com/example/myapplication/routedrop/AppViewModel.kt`
- [Delivery and users](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/Users.kt): `src/Users.kt`

### Location and routing

- [Map and search](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/src/Map.kt): `src/Map.kt`
- [Location search screen](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/map/LocationSearchMapScreen.kt): `app/src/main/java/com/example/myapplication/map/LocationSearchMapScreen.kt`
- [Map location picker](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/map/MapLocationPicker.kt): `app/src/main/java/com/example/myapplication/map/MapLocationPicker.kt`
- [Device location](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/LocationHelper.kt): `app/src/main/java/com/example/myapplication/routedrop/LocationHelper.kt`
- [Route and ETA](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/routedrop/RoutingHelper.kt): `app/src/main/java/com/example/myapplication/routedrop/RoutingHelper.kt`
- [Map setup](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/map/OsmSetup.kt): `app/src/main/java/com/example/myapplication/map/OsmSetup.kt`

### Baking AI

- [Baking prompt screen](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/ui/BakingScreen.kt): `app/src/main/java/com/example/myapplication/ui/BakingScreen.kt`
- [Prompt state and request](https://github.com/jadeberbie9-boop/routedrop-app/blob/main/app/src/main/java/com/example/myapplication/ui/BakingViewModel.kt): `app/src/main/java/com/example/myapplication/ui/BakingViewModel.kt`
- **Gemini AI**

### Other components

- **App user**

## Connections

- App user → App entry: opens app (evidence: `src/MainActivity.kt`)
- App entry → Login and signup: shows login/signup (evidence: `src/MainActivity.kt`)
- Login and signup → App entry: reports auth result (evidence: `src/MainActivity.kt`)
- App entry → Session manager: loads/saves session (evidence: `src/MainActivity.kt`)
- App entry → Delivery dashboard: opens dashboard (evidence: `src/MainActivity.kt`)
- App entry → Delivery state: provides view model (evidence: `src/MainActivity.kt`)
- Delivery dashboard → Delivery state: uses state
- Delivery dashboard → Delivery and users: displays deliveries
- Map and search → Device location: fetches location (evidence: `src/Map.kt`)
- Map and search → Location search screen: references screen (evidence: `src/Map.kt`)
- Location search screen → Map location picker: uses picker
- Location search screen → Device location: uses location helper
- Delivery and users → Route and ETA: requests route and ETA (evidence: `src/Users.kt`)
- App entry → Map setup: initializes maps (evidence: `src/MainActivity.kt`)
- Compose UI modules → Delivery state: references view model (evidence: `src/UI.kt`)
- Compose UI modules → Session manager: references session manager (evidence: `src/UI.kt`)
- Compose UI modules → Delivery dashboard: references dashboard (evidence: `src/UI.kt`)
- Compose UI modules → Baking prompt screen: references baking screen (evidence: `src/UI.kt`)
- Baking prompt screen → Prompt state and request: sends image prompt (evidence: `src/UI.kt`)
- Prompt state and request → Gemini AI: generates content
