Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sargunv committed Jan 13, 2025
1 parent 576c275 commit aadfc88
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: "Daily"
on:
schedule:
- cron: "00 10 * * *"
workflow_dispatch:

jobs:
check-last-run:
Expand Down
8 changes: 5 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ spotless {
target("**/*.kt")
ktfmt().googleStyle()
}
format("swift") {
target("iosApp/iosApp/**/*.swift")
nativeCmd("swiftFormat", "/usr/bin/env", listOf("swift", "format"))
if (System.getProperty("os.name").contains("Mac OS X")) {
format("swift") {
target("iosApp/iosApp/**/*.swift")
nativeCmd("swiftFormat", "/usr/bin/env", listOf("swift", "format"))
}
}
format("markdown") {
target("**/*.md")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@ object StyleSwitcherDemo : Demo {
styleState = styleState,
ornamentSettings = DemoOrnamentSettings(),
) {
val crags = rememberVectorSource(
id = "openbeta-crags",
uri = Res.getUri("files/data/openbeta-crags.json")
)
val crags =
rememberVectorSource(
id = "openbeta-crags",
uri = Res.getUri("files/data/openbeta-crags.json"),
)
SymbolLayer(
id = "crag-name-label",
source = crags,
sourceLayer = "crags",
iconAnchor = const(SymbolAnchor.Center),
textField = feature.get("name").convertToString(),
textFont = const(listOf("Noto Sans Regular"))
textFont = const(listOf("Noto Sans Regular")),
)
}
DemoMapControls(cameraState, styleState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import org.maplibre.android.style.layers.PropertyFactory

internal actual sealed class Layer {
abstract val impl: MlnLayer
actual val id: String
get() = impl.id

actual val id: String by lazy { impl.id }

actual var minZoom: Float
get() = impl.minZoom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import org.maplibre.android.style.sources.Source as MLNSource

public actual sealed class Source {
internal abstract val impl: MLNSource
internal actual val id: String
get() = impl.id

internal actual val id: String by lazy { impl.id }

public actual val attributionLinks: List<AttributionLink>
get() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import cocoapods.MapLibre.MLNStyleLayer

internal actual sealed class Layer {
abstract val impl: MLNStyleLayer
actual val id: String
get() = impl.identifier
actual val id: String by lazy { impl.identifier }

actual var minZoom: Float
get() = impl.minimumZoomLevel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import cocoapods.MapLibre.MLNTileSource

public actual sealed class Source {
internal abstract val impl: MLNSource
internal actual val id: String
get() = impl.identifier
internal actual val id: String by lazy { impl.identifier }

public actual val attributionLinks: List<AttributionLink>
get() =
Expand Down

0 comments on commit aadfc88

Please sign in to comment.