Commit 51fff3c
refactor: merge MeshActionHandler into DirectRadioControllerImpl (SDK-aligned)
Eliminate the AIDL-era intermediate handler layer by absorbing all
MeshActionHandler business logic directly into DirectRadioControllerImpl,
following the meshtastic-sdk's AdminApiImpl pattern.
Changes:
- Delete MeshActionHandler interface and MeshActionHandlerImpl
- DirectRadioControllerImpl now builds AdminMessage protos directly
with no ByteArray encode/decode boundaries (typed protos all the way)
- Remove actionHandler from MeshRouter interface and impl
- Update EnsureRemoteAdminSessionUseCase to use RadioController directly
- Update DI modules (Android annotations + Desktop Koin DSL)
- Rewrite DirectRadioControllerImplTest for the merged architecture
- Update MeshRouterImplTest and MeshServiceOrchestratorTest
Architecture:
Before: ViewModel → RadioController → Handler → CommandSender
After: ViewModel → RadioController → CommandSender
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 45b6ddd commit 51fff3c
13 files changed
Lines changed: 367 additions & 1274 deletions
File tree
- core
- data/src
- commonMain/kotlin/org/meshtastic/core/data/manager
- commonTest/kotlin/org/meshtastic/core/data/manager
- domain/src
- commonMain/kotlin/org/meshtastic/core/domain/usecase/session
- commonTest/kotlin/org/meshtastic/core/domain/usecase/session
- repository/src/commonMain/kotlin/org/meshtastic/core/repository
- service/src
- androidMain/kotlin/org/meshtastic/core/service/di
- commonMain/kotlin/org/meshtastic/core/service
- commonTest/kotlin/org/meshtastic/core/service
- desktopApp/src/main/kotlin/org/meshtastic/desktop/di
Lines changed: 0 additions & 376 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
0 commit comments