Skip to content

Commit 8cb4a97

Browse files
committed
MapboxDirections v2.0.0-beta.2
1 parent 7002062 commit 8cb4a97

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* The Mapbox Navigation SDK for iOS license has changed from the ISC License to the Mapbox Terms of Service. ([#2808](https://github.com/mapbox/mapbox-navigation-ios/pull/2808))
88
* You can now install MapboxNavigation using Swift Package Manager, but you can no longer install it using Carthage. If you previously installed MapboxNavigation using Carthage, use Swift Package Manager instead. ([#2808](https://github.com/mapbox/mapbox-navigation-ios/pull/2808))
99
* MapboxNavigation now depends on [MapboxMaps v10.0.0-beta.16](https://github.com/mapbox/mapbox-maps-ios/), MapboxNavigationNative v47.0.0, and MapboxCommon v10.0.2. ([#2884](https://github.com/mapbox/mapbox-navigation-ios/pull/2884))
10-
* MapboxCoreNavigation depends on MapboxDirections v2.0.0-alpha.2 but no longer depends on MapboxAccounts. ([#2808](https://github.com/mapbox/mapbox-navigation-ios/pull/2808), [#2829](https://github.com/mapbox/mapbox-navigation-ios/pull/2829), [#2837](https://github.com/mapbox/mapbox-navigation-ios/pull/2837))
10+
* MapboxCoreNavigation depends on MapboxDirections v2.0.0-beta.2 but no longer depends on MapboxAccounts. ([#2808](https://github.com/mapbox/mapbox-navigation-ios/pull/2808), [#2829](https://github.com/mapbox/mapbox-navigation-ios/pull/2829), [#2837](https://github.com/mapbox/mapbox-navigation-ios/pull/2837))
1111
* MapboxNavigation and MapboxCoreNavigation require iOS 11.0 or above to run. iOS 10._x_ is no longer supported. ([#2808](https://github.com/mapbox/mapbox-navigation-ios/pull/2808))
1212
* Xcode 12.4 or above is now required for building this SDK from source.
1313

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon-ios.json" ~> 10.0.2
22
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-navigation-native/MapboxNavigationNative.json" ~> 47.0.0
3-
github "mapbox/mapbox-directions-swift" "v2.0.0-alpha.2"
3+
github "mapbox/mapbox-directions-swift" "v2.0.0-beta.2"
44
github "mapbox/turf-swift" "v2.0.0-alpha.3"
55
github "mapbox/mapbox-events-ios" ~> 0.10.2

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ github "Quick/Nimble" "v8.1.2"
44
github "Quick/Quick" "v2.2.1"
55
github "Udumft/SwiftCLI" "da19d2a16cd5aa838d8fb7256e28c171bc67dd82"
66
github "mapbox/MapboxGeocoder.swift" "v0.10.2"
7-
github "mapbox/mapbox-directions-swift" "v2.0.0-alpha.2"
7+
github "mapbox/mapbox-directions-swift" "v2.0.0-beta.2"
88
github "mapbox/mapbox-events-ios" "v0.10.8"
99
github "mapbox/turf-swift" "v2.0.0-alpha.3"
1010
github "raphaelmor/Polyline" "v5.0.2"

MapboxCoreNavigation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Pod::Spec.new do |s|
4141
s.module_name = "MapboxCoreNavigation"
4242

4343
s.dependency "MapboxNavigationNative", "~> 47.0"
44-
s.dependency "MapboxDirections-pre", "2.0.0-alpha.2"
44+
s.dependency "MapboxDirections-pre", "2.0.0-beta.2"
4545
s.dependency "MapboxMobileEvents", "~> 0.10.2" # Always specify a patch release if pre-v1.0
4646
s.dependency "Turf", "2.0.0-alpha.3"
4747

MapboxNavigation-Documentation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Pod::Spec.new do |s|
4545

4646
s.frameworks = ['CarPlay']
4747

48-
s.dependency "MapboxDirections-pre", "2.0.0-alpha.2"
48+
s.dependency "MapboxDirections-pre", "2.0.0-beta.2"
4949
s.dependency "MapboxGeocoder.swift", "~> 0.10.0"
5050
s.dependency "MapboxMaps", "10.0.0-beta.16"
5151
s.dependency "MapboxMobileEvents", "~> 0.10.2"

MapboxNavigation.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let package = Package(
2121
])
2222
],
2323
dependencies: [
24-
.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", .exact("2.0.0-alpha.2")),
24+
.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", .exact("2.0.0-beta.2")),
2525
.package(name: "MapboxGeocoder", url: "https://github.com/mapbox/MapboxGeocoder.swift.git", from: "0.14.0"),
2626
.package(name: "MapboxMobileEvents", url: "https://github.com/mapbox/mapbox-events-ios.git", from: "0.10.8"),
2727
.package(name: "MapboxNavigationNative", url: "https://github.com/mapbox/mapbox-navigation-native-ios.git", from: "47.0.0"),

Sources/MapboxNavigation/InstructionPresenter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class InstructionPresenter {
133133
let exitSide: ExitSide = instruction.maneuverDirection == .left ? .left : .right
134134
return exitShield(side: exitSide, text: text.text, dataSource: dataSource, cacheKey: component.cacheKey!)
135135
?? NSAttributedString(string: text.text, attributes: defaultAttributes)
136-
case .lane(_, _):
136+
case .lane(_, _, _):
137137
preconditionFailure("Lane component has no attributed string representation.")
138138
case .guidanceView(_, let alternativeText):
139139
return NSAttributedString(string: alternativeText.text, attributes: defaultAttributes)

Sources/MapboxNavigation/LanesView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ open class LanesView: UIView, NavigationComponent {
8282
}
8383

8484
let subviews = tertiaryInstruction.components.compactMap { (component) -> LaneView? in
85-
if case let .lane(indications: indications, isUsable: isUsable) = component {
85+
if case let .lane(indications: indications, isUsable: isUsable, preferredDirection: _) = component {
8686
let maneuverDirection = visualInstruction?.primaryInstruction.maneuverDirection ?? ManeuverDirection(rawValue: indications.description)
8787
return LaneView(indications: indications, isUsable: isUsable, direction: maneuverDirection)
8888
} else {

0 commit comments

Comments
 (0)