chore: fix build warnings and migrate deprecated APIs (#6130)

This commit is contained in:
James Rich
2026-07-07 13:17:42 -05:00
committed by GitHub
parent 5fde2d3679
commit 33fbb9f7fc
41 changed files with 104 additions and 60 deletions

View File

@@ -1046,8 +1046,8 @@ private fun CacheInfoDialog(mapView: MapView, onDismiss: () -> Unit) {
onDismiss = onDismiss,
negativeButton = { TextButton(onClick = { onDismiss() }) { Text(text = stringResource(Res.string.close)) } },
) {
val capacityMb = (cacheCapacity / (1024 * 1024)).toLong()
val usageMb = (currentCacheUsage / (1024 * 1024)).toLong()
val capacityMb = cacheCapacity / (1024 * 1024)
val usageMb = currentCacheUsage / (1024 * 1024)
Text(modifier = Modifier.padding(16.dp), text = stringResource(Res.string.map_cache_info, capacityMb, usageMb))
}
}

View File

@@ -1230,6 +1230,7 @@ private fun offsetPolyline(
// region --- Map Layers ---
@OptIn(MapsComposeExperimentalApi::class)
@Composable
private fun MapLayerOverlay(layerItem: MapLayerItem, mapViewModel: MapViewModel) {
val context = LocalContext.current

View File

@@ -19,8 +19,7 @@ package org.meshtastic.app.map.model
class CustomTileSource {
companion object {
fun getTileSource(index: Int) {
index
}
// No-op stub for the Google flavor (osmdroid tile sources are fdroid-only).
fun getTileSource(index: Int) {}
}
}

View File

@@ -38,6 +38,7 @@ import kotlin.test.Test
class KoinVerificationTest {
@OptIn(org.koin.core.annotation.KoinExperimentalAPI::class)
@Test
fun verifyKoinConfiguration() {
AppKoinModule()