mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-31 18:18:06 -04:00
Following the ServiceRepository ISP decomposition, the two consumers that only read connectionState now inject ConnectionStateProvider instead of the full ServiceRepository: - ConnectionsViewModel (core:ui) - LocalStatsWidgetStateProvider (feature:widget) The remaining three full-ServiceRepository injections are left as-is because they use members not carried by any narrow provider: RadioConfigViewModel (meshPacketFlow), ScannerViewModel (connectionProgress), and UIViewModel (clientNotification + errorMessage reads). Extracting single-consumer providers for those would be over-segregation. Koin graph verifies on Android + desktop; ConnectionsViewModelTest green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>