From f95be4f764acb0ea40ab11184e09825d3046d14f Mon Sep 17 00:00:00 2001 From: Maxim Makhun Date: Wed, 20 Oct 2021 17:02:55 -0400 Subject: [PATCH] v2.0.0 --- Cartfile.resolved | 2 +- Directions Example/Info.plist | 2 +- MapboxDirections.podspec | 2 +- MapboxDirections.xcodeproj/project.pbxproj | 36 ++++++++++------------ README.md | 14 +++------ Sources/MapboxDirections/Info.plist | 4 +-- Tests/MapboxDirectionsTests/Info.plist | 2 +- scripts/update-version.sh | 2 +- 8 files changed, 27 insertions(+), 37 deletions(-) diff --git a/Cartfile.resolved b/Cartfile.resolved index 7968e0d54..46848b69f 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,4 +1,4 @@ github "AliSoftware/OHHTTPStubs" "9.1.0" -github "mapbox/mapbox-events-ios" "v0.10.12" +github "mapbox/mapbox-events-ios" "v0.10.13" github "mapbox/turf-swift" "v2.0.0" github "raphaelmor/Polyline" "v5.0.2" diff --git a/Directions Example/Info.plist b/Directions Example/Info.plist index 47cdbef74..6a59e8ed7 100644 --- a/Directions Example/Info.plist +++ b/Directions Example/Info.plist @@ -19,7 +19,7 @@ CFBundleSignature ???? CFBundleVersion - 76 + 77 LSRequiresIPhoneOS NSLocationWhenInUseUsageDescription diff --git a/MapboxDirections.podspec b/MapboxDirections.podspec index 7b8641e65..831408f6b 100644 --- a/MapboxDirections.podspec +++ b/MapboxDirections.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # s.name = "MapboxDirections" - s.version = "2.0.0-rc.4" + s.version = "2.0.0" s.summary = "Mapbox Directions API wrapper for Swift." s.description = <<-DESC diff --git a/MapboxDirections.xcodeproj/project.pbxproj b/MapboxDirections.xcodeproj/project.pbxproj index ded9ef0f3..502e9ade7 100644 --- a/MapboxDirections.xcodeproj/project.pbxproj +++ b/MapboxDirections.xcodeproj/project.pbxproj @@ -8,7 +8,6 @@ /* Begin PBXBuildFile section */ 2B4383022549C22700A3E38B /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B4383002549C22700A3E38B /* main.swift */; }; - 2B4383032549C22700A3E38B /* ProcessCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B4383012549C22700A3E38B /* ProcessCommand.swift */; }; 2B5407ED2451B17E006C820B /* RouteRefreshResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B5407EC2451B17E006C820B /* RouteRefreshResponse.swift */; }; 2B5407EE2451B17E006C820B /* RouteRefreshResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B5407EC2451B17E006C820B /* RouteRefreshResponse.swift */; }; 2B5407EF2451B17E006C820B /* RouteRefreshResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B5407EC2451B17E006C820B /* RouteRefreshResponse.swift */; }; @@ -449,7 +448,6 @@ /* Begin PBXFileReference section */ 2B4383002549C22700A3E38B /* main.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = main.swift; path = Sources/MapboxDirectionsCLI/main.swift; sourceTree = ""; }; - 2B4383012549C22700A3E38B /* ProcessCommand.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ProcessCommand.swift; path = Sources/MapboxDirectionsCLI/ProcessCommand.swift; sourceTree = ""; }; 2B5407EC2451B17E006C820B /* RouteRefreshResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RouteRefreshResponse.swift; sourceTree = ""; }; 2B5407F12452FA8C006C820B /* RefreshedRoute.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RefreshedRoute.swift; sourceTree = ""; }; 2B5407F6245302AB006C820B /* RouteLegAttributes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RouteLegAttributes.swift; sourceTree = ""; }; @@ -660,7 +658,6 @@ isa = PBXGroup; children = ( 2B4383002549C22700A3E38B /* main.swift */, - 2B4383012549C22700A3E38B /* ProcessCommand.swift */, ); name = MapboxDirectionsCLI; sourceTree = ""; @@ -1352,7 +1349,6 @@ buildActionMask = 2147483647; files = ( 2B4383022549C22700A3E38B /* main.swift in Sources */, - 2B4383032549C22700A3E38B /* ProcessCommand.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1793,11 +1789,11 @@ CLANG_ANALYZER_NONNULL = YES; CODE_SIGN_IDENTITY = ""; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; FRAMEWORK_VERSION = A; @@ -1823,10 +1819,10 @@ CLANG_ANALYZER_NONNULL = YES; CODE_SIGN_IDENTITY = ""; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; FRAMEWORK_VERSION = A; @@ -1897,11 +1893,11 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Sources/MapboxDirections/Info.plist; @@ -1927,10 +1923,10 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Sources/MapboxDirections/Info.plist; @@ -2003,11 +1999,11 @@ APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Sources/MapboxDirections/Info.plist; @@ -2034,10 +2030,10 @@ APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Sources/MapboxDirections/Info.plist; @@ -2063,12 +2059,12 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Sources/MapboxDirections/Info.plist; @@ -2092,11 +2088,11 @@ buildSettings = { CLANG_ANALYZER_NONNULL = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - CURRENT_PROJECT_VERSION = 76; + CURRENT_PROJECT_VERSION = 77; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 76; + DYLIB_CURRENT_VERSION = 77; DYLIB_INSTALL_NAME_BASE = "@rpath"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Sources/MapboxDirections/Info.plist; diff --git a/README.md b/README.md index 1a98a0bc5..1b6575cc4 100644 --- a/README.md +++ b/README.md @@ -15,27 +15,21 @@ Specify the following dependency in your [Carthage](https://github.com/Carthage/ ```cartfile # Latest stable release -github "mapbox/mapbox-directions-swift" ~> 1.2 -# Latest prerelease -github "mapbox/mapbox-directions-swift" "v2.0.0-rc.4" +github "mapbox/mapbox-directions-swift" ~> 2.0 ``` Or in your [CocoaPods](http://cocoapods.org/) Podfile: ```podspec # Latest stable release -pod 'MapboxDirections', '~> 1.2' -# Latest prerelease -pod 'MapboxDirections-pre', '2.0.0-rc.4' +pod 'MapboxDirections', '~> 2.0' ``` Or in your [Swift Package Manager](https://swift.org/package-manager/) Package.swift: ```swift // Latest stable release -.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", from: "1.2.0") -// Latest prerelease -.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", from: "2.0.0-rc.4") +.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", from: "2.0.0") ``` Then `import MapboxDirections`. @@ -64,7 +58,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-rc.4/). +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/). ### Calculating directions between locations diff --git a/Sources/MapboxDirections/Info.plist b/Sources/MapboxDirections/Info.plist index 8a0680e34..2287e45db 100644 --- a/Sources/MapboxDirections/Info.plist +++ b/Sources/MapboxDirections/Info.plist @@ -19,9 +19,9 @@ CFBundleSignature ???? CFBundleVersion - 76 + 77 NSHumanReadableCopyright - Copyright © 2014–2020 Mapbox. All rights reserved. + Copyright © 2014–2021 Mapbox. All rights reserved. NSPrincipalClass diff --git a/Tests/MapboxDirectionsTests/Info.plist b/Tests/MapboxDirectionsTests/Info.plist index 6b96d1e3e..71392a6e2 100644 --- a/Tests/MapboxDirectionsTests/Info.plist +++ b/Tests/MapboxDirectionsTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 76 + 77 diff --git a/scripts/update-version.sh b/scripts/update-version.sh index 40145e3c6..846dbcdaa 100755 --- a/scripts/update-version.sh +++ b/scripts/update-version.sh @@ -46,4 +46,4 @@ fi step "Updating copyright year to ${YEAR}…" -sed -i '' -E "s/© ([0-9]{4})[–-][0-9]{4}/© \\1–${YEAR}/g" LICENSE.md docs/jazzy.yml +sed -i '' -E "s/© ([0-9]{4})[–-][0-9]{4}/© \\1–${YEAR}/g" LICENSE.md docs/jazzy.yml Sources/MapboxDirections/Info.plist