Skip to content

Commit

Permalink
Remove dependency on Stadia Maps in previews until we figure out how …
Browse files Browse the repository at this point in the history
…to extract keys
  • Loading branch information
ianthetechie committed Nov 30, 2023
1 parent e486a44 commit 3140893
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if useLocalFramework {
path: "./common/target/ios/libferrostar-rs.xcframework"
)
} else {
let releaseTag = "0.0.14"
let releaseChecksum = "3b4f351384becb2c309f11422f5443c9d68d9cff0e2820e8f682282dfd300c8f"
let releaseTag = "0.0.15"
let releaseChecksum = "9327e79ef1ed91676e831c21db9ae28bd92d7cd7c7c9bce94dbf5e55f78babce"
binaryTarget = .binaryTarget(
name: "FerrostarCoreRS",
url: "https://github.com/stadiamaps/ferrostar/releases/download/\(releaseTag)/libferrostar-rs.xcframework.zip",
Expand Down
12 changes: 5 additions & 7 deletions apple/Sources/FerrostarMapLibreUI/NavigationMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,12 @@ public struct NavigationMapView: View {
}


struct NavigationView_Previews: PreviewProvider {
// TODO: Move to environment
private static let apiKey = "YOUR-API-KEY"
static var previews: some View {
#Preview {
// TODO: Make map URL configurable but gitignored
return
NavigationMapView(
lightStyleURL: URL(string: "https://tiles.stadiamaps.com/styles/outdoors.json?api_key=\(apiKey)")!,
darkStyleURL: URL(string: "https://tiles.stadiamaps.com/styles/outdoors.json?api_key=\(apiKey)")!,
lightStyleURL: URL(string: "https://demotiles.maplibre.org/style.json")!,
darkStyleURL: URL(string: "https://demotiles.maplibre.org/style.json")!,
navigationState: .modifiedPedestrianExample(droppingNWaypoints: 4)
)
}
}
2 changes: 1 addition & 1 deletion common/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/ferrostar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ferrostar"
version = "0.0.14"
version = "0.0.15"
authors = ["Ian Wagner <[email protected]>", "Luke Seelenbinder <[email protected]>"]
license = "BSD-3-Clause"
repository = "https://github.com/stadiamaps/ferrostar"
Expand Down

0 comments on commit 3140893

Please sign in to comment.