Modern Apps git

← Modern-Apps.git

library/map: fix all lint findings

Commit
19ccec6c70cdd9cfb21b03d7b334d7e7516870d1
Author
Vayun Mathur <[email protected]>
When
2026-11-17 04:45 UTC (19 days ago)
Parents
4df5ee3
Baseline: 1 warning, 1 hint. ModifierParameter: VulkanMapSurface
modifier moved to first optional parameter. Autoboxing hint:
CameraState mutableDoubleStateOf.

Verification: :library:map:lint -- 0 errors, 0 warnings, 0 hints;
:library:map:testDebugUnitTest -- green.

Diff

library/map/src/main/java/com/vayunmathur/library/map/CameraState.kt
diff --git a/library/map/src/main/java/com/vayunmathur/library/map/CameraState.kt b/library/map/src/main/java/com/vayunmathur/library/map/CameraState.ktindex 0d1a351a4d..055a48931d 100644--- a/library/map/src/main/java/com/vayunmathur/library/map/CameraState.kt+++ b/library/map/src/main/java/com/vayunmathur/library/map/CameraState.kt@@ -5,6 +5,7 @@ import androidx.compose.animation.core.tween import androidx.compose.runtime.Composable import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableDoubleStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.saveable.listSaver import androidx.compose.runtime.saveable.rememberSaveable@@ -108,7 +109,7 @@ class CameraState(initial: CameraPosition = CameraPosition()) {      * load, exactly like the renderer's fallback. Only read under pitch (flat frames key      * heights out) and never on the globe path, which projects differently.      */-    internal var pivotDp: Double by mutableStateOf(0.0)+    internal var pivotDp: Double by mutableDoubleStateOf(0.0)      /**      * Task-17 pick provider: registered by the rendered surface (see
library/map/src/main/java/com/vayunmathur/library/map/VulkanMapSurface.kt
diff --git a/library/map/src/main/java/com/vayunmathur/library/map/VulkanMapSurface.kt b/library/map/src/main/java/com/vayunmathur/library/map/VulkanMapSurface.ktindex 57806736df..6d66e1c2ca 100644--- a/library/map/src/main/java/com/vayunmathur/library/map/VulkanMapSurface.kt+++ b/library/map/src/main/java/com/vayunmathur/library/map/VulkanMapSurface.kt@@ -62,6 +62,7 @@ internal fun VulkanMapSurface(     cameraState: CameraState,     darkBasemap: Boolean,     muted: Boolean,+    modifier: Modifier = Modifier,     layerOptions: LayerOptions = LayerOptions(),     tileSource: TileSource = TileSource.Server,     userPuck: UserPuck? = null,@@ -105,7 +106,6 @@ internal fun VulkanMapSurface(      * of the pin tap-pick.      */     vehicles: List<MapMarker> = emptyList(),-    modifier: Modifier = Modifier,     onFrame: () -> Unit = {},     fallback: @Composable (MapRenderState.Unavailable) -> Unit = {},     /**