Skip to content

Commit 6cc07bb

Browse files
Upgrade to MapboxMaps v10.5.0, MapboxNavigationNative v99.0.0 (#3869)
* Upgrade MapboxMaps to v10.5.0 and NN to v99.0. * Add pr number to links in changelog. * Maps from v10.5.0. * Handle replacement of ReroutingError.wrongRequest. * Improve error handling for routes generation. * Fix RoutesCoordinatorTests. * Add TollCollection.name property. * Fix Podfile.lock issue from rebase. * Remove print statement for debugging from tests. * Keep .wrongRequest case. * Update changelog. Co-authored-by: Maxim Makhun <[email protected]>
1 parent 874a376 commit 6cc07bb

File tree

12 files changed

+64
-52
lines changed

12 files changed

+64
-52
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Packaging
66

7-
* MapboxNavigation now requires [MapboxMaps v10.5.0-rc.1](https://github.com/mapbox/mapbox-maps-ios/releases/tag/v10.5.0-rc.1). ([#3834](https://github.com/mapbox/mapbox-navigation-ios/pull/3834))
7+
* MapboxNavigation now requires [MapboxMaps v10.5.0](https://github.com/mapbox/mapbox-maps-ios/releases/tag/v10.5.0). ([#3869](https://github.com/mapbox/mapbox-navigation-ios/pull/3869))
88
* MapboxCoreNavigation now requires [MapboxDirections v2.5.0-beta.1](https://github.com/mapbox/mapbox-directions-swift/releases/tag/v2.5.0-beta.1). ([#3871](https://github.com/mapbox/mapbox-navigation-ios/pull/3871))
9-
* MapboxCoreNavigation now requires [MapboxNavigationNative v98._x_](https://github.com/mapbox/mapbox-navigation-native-ios/releases/tag/98.0.0). ([#3862](https://github.com/mapbox/mapbox-navigation-ios/pull/3862))
9+
* MapboxCoreNavigation now requires [MapboxNavigationNative v99._x_](https://github.com/mapbox/mapbox-navigation-native-ios/releases/tag/99.0.0). ([#3869](https://github.com/mapbox/mapbox-navigation-ios/pull/3869))
1010

1111
### User interface
1212

@@ -41,6 +41,11 @@
4141
* Renamed the `Router(alongRouteAtIndex:in:options:routingProvider:dataSource:)` initializer to `Router(alongRouteAtIndex:in:options:customRoutingProvider:dataSource:)`
4242
* Replaced the `Router.routingProvider` property with `Router.customRoutingProvider`.
4343
* Renamed the `NavigationSettings.initialize(directions:tileStoreConfiguration:)` method to `NavigationSettings.initialize(directions:tileStoreConfiguration:routingProviderSource:)`. This method allows you to control whether the rerouting uses the network or offline routing data. ([#3754](https://github.com/mapbox/mapbox-navigation-ios/pull/3754), [#3824](https://github.com/mapbox/mapbox-navigation-ios/pull/3824))
44+
* Fixed an issue where a failure to calculate a route offline could result in a successful result being passed to a `Directions.RouteCompletionHandler`. (mapbox/mapbox-navigation-native#5537)
45+
46+
### Other Changes
47+
* During turn-by-turn navigation, incidents along the route are now refreshed periodically along with traffic congestion. (mapbox/api-valhalla#1023, mapbox/mapbox-navigation-native#5728)
48+
* When the user passes a named toll collection point, the `TollCollection` object obtained through the `Notification.Name.electronicHorizonDidPassRoadObject` notification now has the `TollCollection.name` property set. (mapbox/mapbox-navigation-native#5675, mapbox/mapbox-navigation-native#5721)
4449

4550
### CarPlay
4651

Cartfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 21.3.0-rc.2
2-
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-navigation-native/MapboxNavigationNative.xcframework.json" ~> 98.0
1+
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 21.3.0
2+
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-navigation-native/MapboxNavigationNative.xcframework.json" ~> 99.0
33
github "mapbox/mapbox-directions-swift" == 2.5.0-beta.1
44
github "mapbox/mapbox-events-ios" ~> 1.0.0

Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" "21.3.0-rc.2"
2-
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-navigation-native/MapboxNavigationNative.xcframework.json" "98.0.0"
1+
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" "21.3.0"
2+
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-navigation-native/MapboxNavigationNative.xcframework.json" "99.0.0"
33
github "Quick/Nimble" "v9.2.1"
44
github "Quick/Quick" "v3.1.2"
55
github "mapbox/mapbox-directions-swift" "v2.5.0-beta.1"

MapboxCoreNavigation.podspec

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

43-
s.dependency "MapboxNavigationNative", "~> 98.0"
43+
s.dependency "MapboxNavigationNative", "~> 99.0"
4444
s.dependency "MapboxDirections-pre", "2.5.0-beta.1"
4545
s.dependency "MapboxMobileEvents", "~> 1.0"
4646

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

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

MapboxNavigation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Pod::Spec.new do |s|
4444
s.module_name = "MapboxNavigation"
4545

4646
s.dependency "MapboxCoreNavigation", "#{s.version.to_s}"
47-
s.dependency "MapboxMaps", "10.5.0-rc.1"
47+
s.dependency "MapboxMaps", "10.5.0"
4848
s.dependency "Solar-dev", "~> 3.0"
4949
s.dependency "MapboxSpeech", "~> 2.0"
5050
s.dependency "MapboxMobileEvents", "~> 1.0"

Package.resolved

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

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ let package = Package(
2424
dependencies: [
2525
.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", .exact("2.5.0-beta.1")),
2626
.package(name: "MapboxMobileEvents", url: "https://github.com/mapbox/mapbox-events-ios.git", from: "1.0.0"),
27-
.package(name: "MapboxNavigationNative", url: "https://github.com/mapbox/mapbox-navigation-native-ios.git", from: "98.0.0"),
28-
.package(name: "MapboxMaps", url: "https://github.com/mapbox/mapbox-maps-ios.git", .exact("10.5.0-rc.1")),
27+
.package(name: "MapboxNavigationNative", url: "https://github.com/mapbox/mapbox-navigation-native-ios.git", from: "99.0.0"),
28+
.package(name: "MapboxMaps", url: "https://github.com/mapbox/mapbox-maps-ios.git", from: "10.5.0"),
2929
.package(name: "Solar", url: "https://github.com/ceeK/Solar.git", from: "3.0.0"),
3030
.package(name: "MapboxSpeech", url: "https://github.com/mapbox/mapbox-speech-swift.git", from: "2.0.0"),
3131
.package(name: "Quick", url: "https://github.com/Quick/Quick.git", from: "3.1.2"),

Sources/MapboxCoreNavigation/RerouteControllerDelegate.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ public enum ReroutingError: Error {
1919
case routeError
2020
/// Could not compose correct request for rerouting.
2121
case wrongRequest
22+
/// Cause of reroute error is unknown.
23+
case unknown
2224
/// Reroute was cancelled by user.
2325
case cancelled
2426

2527
init(_ nativeError: RerouteError) {
2628
switch (nativeError.type) {
2729
case .routerError:
2830
self = .routeError
29-
case .wrongRequest:
30-
self = .wrongRequest
31+
case .unknown:
32+
self = .unknown
3133
case .cancelled:
3234
self = .cancelled
3335
@unknown default:

Sources/MapboxCoreNavigation/TollCollection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ extension TollCollection {
77
init(_ tollInfo: TollCollectionInfo) {
88
switch tollInfo.type {
99
case .tollBooth:
10-
self.init(type: .booth)
10+
self.init(type: .booth, name: tollInfo.name)
1111
case .tollGantry:
12-
self.init(type: .gantry)
12+
self.init(type: .gantry, name: tollInfo.name)
1313
@unknown default:
1414
fatalError("Unknown TollCollectionInfo type.")
1515
}

0 commit comments

Comments
 (0)