diff --git a/Cartfile b/Cartfile index 797ffe949..524c6ec42 100644 --- a/Cartfile +++ b/Cartfile @@ -1,2 +1,2 @@ github "raphaelmor/Polyline" ~> 5.0 -github "mapbox/turf-swift" ~> 2.4 +github "mapbox/turf-swift" ~> 2.6.1 diff --git a/Cartfile.resolved b/Cartfile.resolved index dd5d247a2..a5d8a55d1 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,4 +1,4 @@ github "AliSoftware/OHHTTPStubs" "9.1.0" github "mapbox/mapbox-events-ios" "v0.10.14" -github "mapbox/turf-swift" "v2.5.0" +github "mapbox/turf-swift" "v2.6.1" github "raphaelmor/Polyline" "v5.1.0" diff --git a/MapboxDirections-pre.podspec b/MapboxDirections-pre.podspec new file mode 100644 index 000000000..dec323830 --- /dev/null +++ b/MapboxDirections-pre.podspec @@ -0,0 +1,51 @@ +Pod::Spec.new do |s| + + # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + + s.name = "MapboxDirections-pre" + s.version = "2.8.0-rc.1" + s.summary = "Mapbox Directions API wrapper for Swift." + + s.description = <<-DESC + MapboxDirections makes it easy to connect your iOS, macOS, tvOS, or watchOS application to the Mapbox Directions API. Quickly get driving, cycling, or walking directions, whether the trip is nonstop or it has multiple stopping points, all using a simple interface reminiscent of MapKit’s `MKDirections` API. The Mapbox Directions API is powered by the OSRM routing engine and open data from the OpenStreetMap project. + DESC + + s.homepage = "https://www.mapbox.com/navigation/" + s.documentation_url = "https://docs.mapbox.com/ios/api/directions/" + + # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + + s.license = { :type => "ISC", :file => "LICENSE.md" } + + # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + + s.author = { "Mapbox" => "mobile@mapbox.com" } + s.social_media_url = "https://twitter.com/mapbox" + + # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + + # When using multiple platforms + s.ios.deployment_target = "12.0" + s.osx.deployment_target = "10.14" + s.watchos.deployment_target = "5.0" + s.tvos.deployment_target = "12.0" + + + # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + + s.source = { :git => "https://github.com/mapbox/mapbox-directions-swift.git", :tag => "v#{s.version.to_s}" } + + # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + + s.source_files = ["Sources/MapboxDirections", "Sources/MapboxDirections/*/*"] + + # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + + s.requires_arc = true + s.module_name = "MapboxDirections" + s.swift_version = "5.5" + + s.dependency "Polyline", "~> 5.0" + s.dependency "Turf", "~> 2.6.1" + +end diff --git a/MapboxDirections.podspec b/MapboxDirections.podspec index 7848b2f58..8372d80ff 100644 --- a/MapboxDirections.podspec +++ b/MapboxDirections.podspec @@ -46,6 +46,6 @@ Pod::Spec.new do |s| s.swift_version = "5.5" s.dependency "Polyline", "~> 5.0" - s.dependency "Turf", "~> 2.4" + s.dependency "Turf", "~> 2.6.1" end diff --git a/Package.resolved b/Package.resolved index 92c43220b..0eaf49735 100644 --- a/Package.resolved +++ b/Package.resolved @@ -33,8 +33,8 @@ "repositoryURL": "https://github.com/mapbox/turf-swift.git", "state": { "branch": null, - "revision": "dbc07b0a298d642414d3abec59c9eaba1fb3367f", - "version": "2.5.0" + "revision": "87b5b37108ba9f37f0885b586d8f6355d8240dd8", + "version": "2.6.1" } } ] diff --git a/Package.swift b/Package.swift index fe14c648a..b64cbc9ab 100644 --- a/Package.swift +++ b/Package.swift @@ -21,7 +21,7 @@ let package = Package( dependencies: [ // Dependencies declare other packages that this package depends on. .package(url: "https://github.com/raphaelmor/Polyline.git", from: "5.0.2"), - .package(name: "Turf", url: "https://github.com/mapbox/turf-swift.git", from: "2.4.0"), + .package(name: "Turf", url: "https://github.com/mapbox/turf-swift.git", from: "2.6.1"), .package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"), .package(url: "https://github.com/AliSoftware/OHHTTPStubs", from: "9.1.0") ],