diff --git a/Directions Example/Info.plist b/Directions Example/Info.plist
index bd750a467..b53511844 100644
--- a/Directions Example/Info.plist
+++ b/Directions Example/Info.plist
@@ -19,7 +19,7 @@
CFBundleSignature
????
CFBundleVersion
- 78
+ 79
LSRequiresIPhoneOS
NSLocationWhenInUseUsageDescription
diff --git a/MapboxDirections.podspec b/MapboxDirections.podspec
index accd0f1fb..8e3bbb39f 100644
--- a/MapboxDirections.podspec
+++ b/MapboxDirections.podspec
@@ -3,7 +3,7 @@ Pod::Spec.new do |s|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
s.name = "MapboxDirections"
- s.version = "2.1.0-alpha.1"
+ s.version = "2.1.0-rc.1"
s.summary = "Mapbox Directions API wrapper for Swift."
s.description = <<-DESC
diff --git a/MapboxDirections.xcodeproj/project.pbxproj b/MapboxDirections.xcodeproj/project.pbxproj
index 60d15c27f..fc4ae9014 100644
--- a/MapboxDirections.xcodeproj/project.pbxproj
+++ b/MapboxDirections.xcodeproj/project.pbxproj
@@ -1819,11 +1819,11 @@
CLANG_ANALYZER_NONNULL = YES;
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
FRAMEWORK_VERSION = A;
@@ -1849,10 +1849,10 @@
CLANG_ANALYZER_NONNULL = YES;
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
FRAMEWORK_VERSION = A;
@@ -1923,11 +1923,11 @@
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Sources/MapboxDirections/Info.plist;
@@ -1953,10 +1953,10 @@
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Sources/MapboxDirections/Info.plist;
@@ -2029,11 +2029,11 @@
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Sources/MapboxDirections/Info.plist;
@@ -2060,10 +2060,10 @@
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Sources/MapboxDirections/Info.plist;
@@ -2089,12 +2089,12 @@
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Sources/MapboxDirections/Info.plist;
@@ -2118,11 +2118,11 @@
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
- CURRENT_PROJECT_VERSION = 78;
+ CURRENT_PROJECT_VERSION = 79;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 78;
+ DYLIB_CURRENT_VERSION = 79;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Sources/MapboxDirections/Info.plist;
diff --git a/README.md b/README.md
index ec64801f4..9c0790f61 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Specify the following dependency in your [Carthage](https://github.com/Carthage/
# Latest stable release
github "mapbox/mapbox-directions-swift" ~> 2.0
# Latest prerelease
-github "mapbox/mapbox-directions-swift" "v2.1.0-alpha.1"
+github "mapbox/mapbox-directions-swift" "v2.1.0-rc.1"
```
Or in your [CocoaPods](http://cocoapods.org/) Podfile:
@@ -26,7 +26,7 @@ Or in your [CocoaPods](http://cocoapods.org/) Podfile:
# Latest stable release
pod 'MapboxDirections', '~> 2.0'
# Latest prerelease
-pod 'MapboxDirections', :git => 'https://github.com/mapbox/mapbox-directions-swift.git', :tag => 'v2.1.0-alpha.1'
+pod 'MapboxDirections', :git => 'https://github.com/mapbox/mapbox-directions-swift.git', :tag => 'v2.1.0-rc.1'
```
Or in your [Swift Package Manager](https://swift.org/package-manager/) Package.swift:
@@ -35,7 +35,7 @@ Or in your [Swift Package Manager](https://swift.org/package-manager/) Package.s
// Latest stable release
.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", from: "2.0.0")
// Latest prerelease
-.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", .exact("2.1.0-alpha.1"))
+.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", .exact("2.1.0-rc.1"))
```
Then `import MapboxDirections`.
@@ -64,7 +64,7 @@ v0.30.0 is the last release of MapboxDirections.swift that supports a minimum de
You’ll need a [Mapbox access token](https://docs.mapbox.com/api/#access-tokens-and-token-scopes) in order to use the API. If you’re already using the [Mapbox Maps SDK for iOS](https://docs.mapbox.com/ios/maps/) or [macOS SDK](https://mapbox.github.io/mapbox-gl-native/macos/), Mapbox Directions automatically recognizes your access token, as long as you’ve placed it in the `MBXAccessToken` key of your application’s Info.plist file.
-The examples below are each provided in Swift (denoted with `main.swift`), For further details, see the [Mapbox Directions for Swift API reference](https://docs.mapbox.com/ios/directions/api/2.0.0/).
+The examples below are each provided in Swift (denoted with `main.swift`). For further details, see the documentation available by the link in the [releases](https://github.com/mapbox/mapbox-directions-swift/releases).
### Calculating directions between locations
@@ -104,7 +104,7 @@ let task = directions.calculate(options) { (session, result) in
guard let route = response.routes?.first, let leg = route.legs.first else {
return
}
-
+
print("Route via \(leg):")
let distanceFormatter = LengthFormatter()
@@ -155,7 +155,7 @@ let task = directions.calculate(options) { (session, result) in
guard let match = response.matches?.first, let leg = match.legs.first else {
return
}
-
+
print("Match via \(leg):")
let distanceFormatter = LengthFormatter()
@@ -190,7 +190,7 @@ let isochroneOptions = IsochroneOptions(centerCoordinate: CLLocationCoordinate2D
.init(value: 500, unit: .meters, color: .orange),
.init(value: 1, unit: .kilometers, color: .red)
]))
-
+
isochrones.calculate(isochroneOptions) { session, result in
if case .success(let response) = result {
print(response)
@@ -214,7 +214,7 @@ if var routeCoordinates = route.shape?.coordinates, routeCoordinates.count > 0 {
// Add the polyline to the map.
mapView.addAnnotation(routeLine)
-
+
// Fit the viewport to the polyline.
let camera = mapView.cameraThatFitsShape(routeLine, direction: 0, edgePadding: .zero)
mapView.setCamera(camera, animated: true)
diff --git a/Sources/MapboxDirections/Info.plist b/Sources/MapboxDirections/Info.plist
index e801a31b8..d1751704e 100644
--- a/Sources/MapboxDirections/Info.plist
+++ b/Sources/MapboxDirections/Info.plist
@@ -19,7 +19,7 @@
CFBundleSignature
????
CFBundleVersion
- 78
+ 79
NSHumanReadableCopyright
Copyright © 2014–2021 Mapbox. All rights reserved.
NSPrincipalClass
diff --git a/Tests/MapboxDirectionsTests/Info.plist b/Tests/MapboxDirectionsTests/Info.plist
index 07bb076fc..8be61229c 100644
--- a/Tests/MapboxDirectionsTests/Info.plist
+++ b/Tests/MapboxDirectionsTests/Info.plist
@@ -19,6 +19,6 @@
CFBundleSignature
????
CFBundleVersion
- 78
+ 79