mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-12 08:42:01 -04:00
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:
@@ -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,
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user