mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-27 18:21:58 -04:00
Refactor command handling, enhance tests, and improve discovery logic (#4878)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
@@ -45,16 +45,7 @@ kotlin {
|
||||
implementation(projects.core.di)
|
||||
}
|
||||
|
||||
androidMain.dependencies {
|
||||
implementation(libs.androidx.datastore)
|
||||
implementation(libs.androidx.datastore.preferences)
|
||||
implementation(libs.androidx.lifecycle.runtime.ktx)
|
||||
implementation(libs.androidx.lifecycle.viewmodel.ktx)
|
||||
implementation(libs.androidx.navigation.common)
|
||||
implementation(libs.androidx.savedstate.compose)
|
||||
implementation(libs.androidx.savedstate.ktx)
|
||||
implementation(libs.material)
|
||||
}
|
||||
androidMain.dependencies { implementation(libs.material) }
|
||||
|
||||
androidUnitTest.dependencies {
|
||||
implementation(libs.junit)
|
||||
|
||||
@@ -16,25 +16,11 @@
|
||||
*/
|
||||
package org.meshtastic.feature.map.navigation
|
||||
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.runtime.Composable
|
||||
import org.meshtastic.core.ui.component.PlaceholderScreen
|
||||
|
||||
@Composable
|
||||
actual fun MapMainScreen(onClickNodeChip: (Int) -> Unit, navigateToNodeDetails: (Int) -> Unit, waypointId: Int?) {
|
||||
// Desktop placeholder for now
|
||||
org.meshtastic.feature.map.navigation.PlaceholderScreen(name = "Map")
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun PlaceholderScreen(name: String) {
|
||||
androidx.compose.foundation.layout.Box(
|
||||
modifier = androidx.compose.ui.Modifier.fillMaxSize(),
|
||||
contentAlignment = androidx.compose.ui.Alignment.Center,
|
||||
) {
|
||||
androidx.compose.material3.Text(
|
||||
text = name,
|
||||
style = androidx.compose.material3.MaterialTheme.typography.headlineMedium,
|
||||
color = androidx.compose.material3.MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
}
|
||||
PlaceholderScreen(name = "Map")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user