refactor: remove dead deps + add Compose stability annotations

- Remove unused feature/node → feature/map dependency (nothing imported)
- Add @Immutable to RadioConfigState, DiscoveredDevices, DeviceListEntry
  to prevent unnecessary Compose recompositions from unstable inference

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
James Rich
2026-05-06 12:37:43 -05:00
parent 0b6d8eca08
commit 6487d1316d
4 changed files with 3 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ import org.meshtastic.core.model.util.anonymize
interface UsbDeviceData
/** A sealed class representing the different types of devices that can be displayed in the connections list. */
@androidx.compose.runtime.Immutable
sealed class DeviceListEntry(
open val name: String,
open val fullAddress: String,

View File

@@ -19,6 +19,7 @@ package org.meshtastic.feature.connections.model
import kotlinx.coroutines.flow.Flow
import org.meshtastic.core.network.repository.DiscoveredService
@androidx.compose.runtime.Immutable
data class DiscoveredDevices(
val bleDevices: List<DeviceListEntry> = emptyList(),
val usbDevices: List<DeviceListEntry> = emptyList(),

View File

@@ -42,7 +42,6 @@ kotlin {
implementation(projects.core.resources)
implementation(projects.core.ui)
implementation(projects.core.di)
implementation(projects.feature.map)
implementation(libs.jetbrains.navigation3.ui)
implementation(libs.markdown.renderer)

View File

@@ -82,6 +82,7 @@ import org.meshtastic.proto.ModuleConfig
import org.meshtastic.proto.User
/** Data class that represents the current RadioConfig state. */
@androidx.compose.runtime.Immutable
data class RadioConfigState(
val isLocal: Boolean = false,
val connected: Boolean = false,