Commit 6f447c8
refactor: remove AIDL API and modernize radio architecture
Remove the deprecated AIDL/IPC API surface and perform deep architectural
modernization of the radio command pipeline, aligning with the meshtastic-sdk
AdminApiImpl pattern for future SDK migration.
Key changes:
1. AIDL Removal & Infrastructure Cleanup
- Delete core:api module and all AIDL interfaces
- Remove ServiceBroadcasts + CommonParcelable infrastructure
- Remove core:api from CI workflow lint/publish steps
2. Model Modernization
- Introduce NodeAddress sealed class with type-safe addressing
- Remove deprecated DataPacket constants in favor of NodeAddress
- Consolidate dual node maps into single source with getNodeById
- Split large model files, deduplicate NodeEntity, flatten RadioController
3. Service Layer Refactoring (SDK-aligned)
- Remove ServiceAction sealed class, use direct suspend calls
- Convert CommandSender & MeshActionHandler to suspend APIs
- Merge MeshActionHandler into DirectRadioControllerImpl
(ViewModel → RadioController → CommandSender, no intermediate layer)
- Build AdminMessage protos directly with typed protos end-to-end
- Apply structured concurrency to NodeRequestActions/NodeManagementActions
- Fix CancellationException handling throughout
Architecture (before → after):
ViewModel → RadioController → Handler → CommandSender → PacketHandler
ViewModel → RadioController → CommandSender → PacketHandler
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent e167b58 commit 6f447c8
150 files changed
Lines changed: 1296 additions & 4652 deletions
File tree
- androidApp/src
- fdroid/kotlin/org/meshtastic/app/map
- google/kotlin/org/meshtastic/app/map
- main
- kotlin/org/meshtastic/app
- build-logic/convention/src/main/kotlin
- core
- api
- src/main
- aidl/org/meshtastic/core
- model
- service
- kotlin/org/meshtastic/core/api
- common
- src
- androidMain/kotlin/org/meshtastic/core/common/util
- commonMain/kotlin/org/meshtastic/core/common/util
- iosMain/kotlin/org/meshtastic/core/common/util
- jvmMain/kotlin/org/meshtastic/core/common/util
- database/src
- androidHostTest/kotlin/org/meshtastic/core/database/dao
- commonMain/kotlin/org/meshtastic/core/database/entity
- commonTest/kotlin/org/meshtastic/core/database
- dao
- data/src
- commonMain/kotlin/org/meshtastic/core/data
- manager
- repository
- commonTest/kotlin/org/meshtastic/core/data/manager
- jvmTest/kotlin/org/meshtastic/core/data/manager
- domain
- src
- commonMain/kotlin/org/meshtastic/core/domain/usecase
- session
- settings
- commonTest/kotlin/org/meshtastic/core/domain/usecase
- session
- settings
- model
- src
- commonMain/kotlin/org/meshtastic/core/model
- service
- util
- commonTest/kotlin/org/meshtastic/core/model
- util
- network/src
- androidMain/kotlin/org/meshtastic/core/network/repository
- commonMain/kotlin/org/meshtastic/core/network/radio
- repository
- src
- commonMain/kotlin/org/meshtastic/core/repository
- usecase
- commonTest/kotlin/org/meshtastic/core/repository/usecase
- service
- src
- androidHostTest/kotlin/org/meshtastic/core/service
- androidMain/kotlin/org/meshtastic/core/service
- di
- testing
- commonMain/kotlin/org/meshtastic/core/service
- commonTest/kotlin/org/meshtastic/core/service
- takserver/src
- commonMain/kotlin/org/meshtastic/core/takserver
- commonTest/kotlin/org/meshtastic/core/takserver
- testing/src/commonMain/kotlin/org/meshtastic/core/testing
- ui/src
- desktopApp/src/main/kotlin/org/meshtastic/desktop
- di
- stub
- feature
- map/src
- commonMain/kotlin/org/meshtastic/feature/map
- commonTest/kotlin/org/meshtastic/feature/map
- messaging/src
- commonMain/kotlin/org/meshtastic/feature/messaging
- component
- ui/contact
- commonTest/kotlin/org/meshtastic/feature/messaging
- node/src
- commonMain/kotlin/org/meshtastic/feature/node
- component
- detail
- list
- metrics
- model
- commonTest/kotlin/org/meshtastic/feature/node/detail
- settings/src
- commonMain/kotlin/org/meshtastic/feature/settings
- commonTest/kotlin/org/meshtastic/feature/settings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 127 | + | |
133 | 128 | | |
134 | 129 | | |
135 | 130 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
436 | | - | |
| 437 | + | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
670 | 671 | | |
671 | 672 | | |
672 | 673 | | |
673 | | - | |
674 | | - | |
| 674 | + | |
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 169 | + | |
174 | 170 | | |
175 | 171 | | |
176 | 172 | | |
| |||
272 | 268 | | |
273 | 269 | | |
274 | 270 | | |
275 | | - | |
| 271 | + | |
276 | 272 | | |
277 | 273 | | |
278 | 274 | | |
| |||
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 99 | | |
105 | 100 | | |
106 | 101 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 102 | | |
111 | 103 | | |
112 | 104 | | |
| |||
168 | 160 | | |
169 | 161 | | |
170 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
132 | 131 | | |
133 | 132 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments