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

Modern-Apps.git / taxi / AGENTS.md

AGENTS.md4.3 KiBRenderedCodeRaw
1# AGENTS.md — taxi/ (':taxi')
2
3> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `taxi/` + allowed shared modules. Do not root-scan.
4
5_Install: ./install taxi (dev by default)._
6<!-- last-reviewed: 2026-10-16 -->
7- Gradle: :taxi / dir: taxi/
8- Package roots present: ui, data, platform, network, intents, provider, notifications
9- Entry files: MainActivity.kt, Route.kt, Navigation.kt
10- Deps: :library:network, :library:map, :library:image
11- Metadata: metadata_data/taxi.md (present)
12- Rust: no / screenshotTest: no
13
14## Overview
15**Purpose:** US/CA ride-hailing aggregator — side-by-side Uber vs Lyft fare comparison, Lyft booking without the Lyft app, live tracking; address search with no Google Places/Play Services.
16**Key features:**
17- Quote flow: `provider/QuoteRepository` over `provider/RideProvider` impls → `ui/RideResults` comparison → per-provider booking (`LyftBooking`, Uber WebView auth)
18- Live ride: tracking map + cards + driver/ETA notification (`notifications/RideTrackingService`); deep-link re-entry (`platform/deeplink/`)
19- Cards tokenised straight to Stripe (`LyftCardTokenizer`) — numbers never touch the app backend
20**Architecture / data-flow:** `ui/RideScreen` inputs → `provider/` quotes → results → booking → `notifications/` live tracking; `network/uber/` + `network/lyft/` own provider APIs/auth/parsers; `ipc/` directions + ride-handoff contracts bridge maps/assistant.
21**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/RideScreen.kt` → `provider/QuoteRepository.kt` → `provider/RideProvider.kt` → `network/lyft/LyftProvider.kt` / `network/uber/UberProvider.kt`.
22**Gotchas:**
23- `ipc/` is NOT a closed package root — pending migration; don't add more files there
24- Unofficial-provider APIs are brittle — isolate Uber/Lyft failures from each other and from the quote UI
25- Screenshot tests are off for this module (`screenshotTest: no`) — verify ride flows on device
26
27## Key files
28### Root — entry + navigation
29- com/vayunmathur/taxi/MainActivity.kt
30- com/vayunmathur/taxi/Navigation.kt
31- com/vayunmathur/taxi/Route.kt
32### data/ — models + token stores
33- com/vayunmathur/taxi/data/Models.kt
34- com/vayunmathur/taxi/data/lyft/LyftTokenStore.kt
35- com/vayunmathur/taxi/data/uber/UberSession.kt
36### provider/ — quote abstraction
37- com/vayunmathur/taxi/provider/RideProvider.kt
38- com/vayunmathur/taxi/provider/QuoteRepository.kt
39### network/lyft/ + network/uber/ — provider clients
40- com/vayunmathur/taxi/network/lyft/LyftProvider.kt
41- com/vayunmathur/taxi/network/lyft/LyftAuth.kt
42- com/vayunmathur/taxi/network/lyft/LyftRideParser.kt
43- com/vayunmathur/taxi/network/lyft/LyftOffersParser.kt
44- com/vayunmathur/taxi/network/lyft/LyftProto.kt
45- com/vayunmathur/taxi/network/lyft/LyftCardTokenizer.kt
46- com/vayunmathur/taxi/network/uber/UberProvider.kt
47- com/vayunmathur/taxi/network/uber/UberAuth.kt
48- com/vayunmathur/taxi/network/uber/UberWebView.kt
49### platform/ + notifications/ — location, deep links, tracking
50- com/vayunmathur/taxi/platform/location/LocationProvider.kt
51- com/vayunmathur/taxi/platform/deeplink/RideDeepLinks.kt
52- com/vayunmathur/taxi/notifications/RideTrackingService.kt
53- com/vayunmathur/taxi/notifications/RideLiveUpdate.kt
54### intents/ + ipc/ — assistant + handoff contracts
55- com/vayunmathur/taxi/intents/RideEstimateIntent.kt
56- com/vayunmathur/taxi/ipc/RideHandoffContract.kt
57- com/vayunmathur/taxi/ipc/DirectionsClient.kt
58- com/vayunmathur/taxi/ipc/IntentLaunch.kt
59### ui/ — search, results, booking, tracking, accounts
60- com/vayunmathur/taxi/ui/RideScreen.kt
61- com/vayunmathur/taxi/ui/RideContent.kt
62- com/vayunmathur/taxi/ui/RideInputs.kt
63- com/vayunmathur/taxi/ui/RideResults.kt
64- com/vayunmathur/taxi/ui/RideRoute.kt
65- com/vayunmathur/taxi/ui/LyftBooking.kt
66- com/vayunmathur/taxi/ui/LyftSignInScreen.kt
67- com/vayunmathur/taxi/ui/UberSignInScreen.kt
68- com/vayunmathur/taxi/ui/UberConnectScreen.kt
69- com/vayunmathur/taxi/ui/AddCardDialog.kt
70- com/vayunmathur/taxi/ui/CurrentRideScreen.kt
71- com/vayunmathur/taxi/ui/RideTrackingScreen.kt
72- com/vayunmathur/taxi/ui/RideTrackingMap.kt
73- com/vayunmathur/taxi/ui/RideTrackingCards.kt
74- com/vayunmathur/taxi/ui/AccountsScreen.kt
75- com/vayunmathur/taxi/ui/TaxiRideWideLayout.kt
76
77## Verify (this module only)
78```
79./gradlew :taxi:compileDevKotlin
80./gradlew :taxi:lint
81./gradlew :taxi:checkMetadata
82```