Skip to content

Commit

Permalink
fix #244 (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
sargunv authored Jan 13, 2025
1 parent fad1b99 commit 8348ef5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 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 @@ -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 8348ef5

Please sign in to comment.