Commit 1c17b8d
feat(car): implement PR #5162 recommendations + official docs alignment
- Migrate to SendMessageUseCase (replaces raw commandSender.sendData())
- Migrate Messages tab to ConversationItem API (official required pattern)
- Add ConversationCallback for native reply + mark-as-read
- Add Status tab with device metrics (battery, utilization, uptime, TX/RX)
- Add ConversationShortcutManager + PersonIconFactory for notification linking
- Add CarScreenDataBuilder with pure testable functions (533-line test suite)
- Fix notification actions (SEMANTIC_ACTION_REPLY/MARK_AS_READ, setShowsUserInterface)
- Wire CarReplyReceiver to actually send messages and clear unreads
- Lower minCarApiLevel from 8 to 7 with graceful API 8 fallbacks
- Add android:permission on CarAppService for security
- Remove dead code: ConversationScreen, CarTtsEngine, messagesCache
Files added: ConversationShortcutManager, PersonIconFactory, CarScreenDataBuilder,
ic_car_status.xml, CarScreenDataBuilderTest (533 lines)
Files removed: ConversationScreen.kt, CarTtsEngine.kt
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c35c23d commit 1c17b8d
15 files changed
Lines changed: 1145 additions & 321 deletions
File tree
- feature/car/src
- main
- kotlin/org/meshtastic/feature/car
- model
- screens
- service
- util
- res
- drawable
- values
- test/kotlin/org/meshtastic/feature/car/util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
Lines changed: 0 additions & 128 deletions
This file was deleted.
0 commit comments