From a0644874ace5e974acf266a3eaa0ede09d7435af Mon Sep 17 00:00:00 2001 From: Bobby Sudekum Date: Wed, 21 Mar 2018 13:15:21 -0700 Subject: [PATCH] Release v0.19.0 --- Directions Example/Info.plist | 4 +-- MapboxDirections.swift.podspec | 2 +- MapboxDirections.xcodeproj/project.pbxproj | 32 +++++++++++----------- MapboxDirections/Info.plist | 4 +-- MapboxDirectionsTests/Info.plist | 4 +-- README.md | 32 +++++++++++----------- 6 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Directions Example/Info.plist b/Directions Example/Info.plist index 9e2d0bf2b..14b16d314 100644 --- a/Directions Example/Info.plist +++ b/Directions Example/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.18.0 + 0.19.0 CFBundleSignature ???? CFBundleVersion - 25 + 26 LSRequiresIPhoneOS UILaunchStoryboardName diff --git a/MapboxDirections.swift.podspec b/MapboxDirections.swift.podspec index 231caa118..6f04d3bcc 100644 --- a/MapboxDirections.swift.podspec +++ b/MapboxDirections.swift.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # s.name = "MapboxDirections.swift" - s.version = "0.18.0" + s.version = "0.19.0" s.summary = "Mapbox Directions API wrapper for Swift and Objective-C." s.description = <<-DESC diff --git a/MapboxDirections.xcodeproj/project.pbxproj b/MapboxDirections.xcodeproj/project.pbxproj index 583b89011..31aa93ad8 100644 --- a/MapboxDirections.xcodeproj/project.pbxproj +++ b/MapboxDirections.xcodeproj/project.pbxproj @@ -1335,11 +1335,11 @@ CLANG_ANALYZER_NONNULL = YES; CODE_SIGN_IDENTITY = ""; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1366,10 +1366,10 @@ CLANG_ANALYZER_NONNULL = YES; CODE_SIGN_IDENTITY = ""; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1436,11 +1436,11 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1467,10 +1467,10 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1537,11 +1537,11 @@ APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1569,10 +1569,10 @@ APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1599,12 +1599,12 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1628,11 +1628,11 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - CURRENT_PROJECT_VERSION = 25; + CURRENT_PROJECT_VERSION = 26; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 25; + DYLIB_CURRENT_VERSION = 26; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", diff --git a/MapboxDirections/Info.plist b/MapboxDirections/Info.plist index b4df20637..0f056ad7e 100644 --- a/MapboxDirections/Info.plist +++ b/MapboxDirections/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.18.0 + 0.19.0 CFBundleSignature ???? CFBundleVersion - 25 + 26 NSHumanReadableCopyright Copyright © 2014–2018 Mapbox. All rights reserved. NSPrincipalClass diff --git a/MapboxDirectionsTests/Info.plist b/MapboxDirectionsTests/Info.plist index c8389e7c3..85f880d56 100644 --- a/MapboxDirectionsTests/Info.plist +++ b/MapboxDirectionsTests/Info.plist @@ -15,10 +15,10 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 0.18.0 + 0.19.0 CFBundleSignature ???? CFBundleVersion - 25 + 26 diff --git a/README.md b/README.md index a1e997c19..6f64d8d8b 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,13 @@ MapboxDirections.swift pairs well with [MapboxGeocoder.swift](https://github.com Specify the following dependency in your [Carthage](https://github.com/Carthage/Carthage) Cartfile: ```cartfile -github "mapbox/MapboxDirections.swift" ~> 0.18 +github "mapbox/MapboxDirections.swift" ~> 0.19 ``` Or in your [CocoaPods](http://cocoapods.org/) Podfile: ```podspec -pod 'MapboxDirections.swift', '~> 0.18' +pod 'MapboxDirections.swift', '~> 0.19' ``` Then `import MapboxDirections` or `@import MapboxDirections;`. @@ -99,19 +99,19 @@ let task = directions.calculate(options) { (waypoints, routes, error) in print("Error calculating directions: \(error!)") return } - + if let route = routes?.first, let leg = route.legs.first { print("Route via \(leg):") - + let distanceFormatter = LengthFormatter() let formattedDistance = distanceFormatter.string(fromMeters: route.distance) - + let travelTimeFormatter = DateComponentsFormatter() travelTimeFormatter.unitsStyle = .short let formattedTravelTime = travelTimeFormatter.string(from: route.expectedTravelTime) - + print("Distance: \(formattedDistance); ETA: \(formattedTravelTime!)") - + for step in leg.steps { print("\(step.instructions)") let formattedDistance = distanceFormatter.string(fromMeters: step.distance) @@ -140,21 +140,21 @@ NSURLSessionDataTask *task = [directions calculateDirectionsWithOptions:options NSLog(@"Error calculating directions: %@", error); return; } - + MBRoute *route = routes.firstObject; MBRouteLeg *leg = route.legs.firstObject; if (leg) { NSLog(@"Route via %@:", leg); - + NSLengthFormatter *distanceFormatter = [[NSLengthFormatter alloc] init]; NSString *formattedDistance = [distanceFormatter stringFromMeters:leg.distance]; - + NSDateComponentsFormatter *travelTimeFormatter = [[NSDateComponentsFormatter alloc] init]; travelTimeFormatter.unitsStyle = NSDateComponentsFormatterUnitsStyleShort; NSString *formattedTravelTime = [travelTimeFormatter stringFromTimeInterval:route.expectedTravelTime]; - + NSLog(@"Distance: %@; ETA: %@", formattedDistance, formattedTravelTime); - + for (MBRouteStep *step in leg.steps) { NSLog(@"%@", step.instructions); NSString *formattedDistance = [distanceFormatter stringFromMeters:step.distance]; @@ -215,7 +215,7 @@ if route.coordinateCount > 0 { // Convert the route’s coordinates into a polyline. var routeCoordinates = route.coordinates! let routeLine = MGLPolyline(coordinates: &routeCoordinates, count: route.coordinateCount) - + // Add the polyline to the map and fit the viewport to the polyline. mapView.addAnnotation(routeLine) mapView.setVisibleCoordinates(&routeCoordinates, count: route.coordinateCount, edgePadding: .zero, animated: true) @@ -230,11 +230,11 @@ if (route.coordinateCount) { CLLocationCoordinate2D *routeCoordinates = malloc(route.coordinateCount * sizeof(CLLocationCoordinate2D)); [route getCoordinates:routeCoordinates]; MGLPolyline *routeLine = [MGLPolyline polylineWithCoordinates:routeCoordinates count:route.coordinateCount]; - + // Add the polyline to the map and fit the viewport to the polyline. [mapView addAnnotation:routeLine]; [mapView setVisibleCoordinates:routeCoordinates count:route.coordinateCount edgePadding:UIEdgeInsetsZero animated:YES]; - + // Make sure to free this array to avoid leaking memory. free(routeCoordinates); } @@ -246,7 +246,7 @@ See the [Mapbox Navigation SDK for iOS](https://github.com/mapbox/mapbox-navigat ## Tests -To run the included unit tests, you need to use [Carthage](https://github.com/Carthage/Carthage) 0.19 or above to install the dependencies. +To run the included unit tests, you need to use [Carthage](https://github.com/Carthage/Carthage) 0.19 or above to install the dependencies. 1. `carthage build --platform iOS` 1. `open MapboxDirections.xcodeproj`