Skip to content

Commit

Permalink
Update Package.swift format for 5.1 Swift tools
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlospt committed Feb 3, 2020
1 parent 568816a commit 4a0141c
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
// swift-tools-version:5.1
import PackageDescription

let package = Package(
name: "ErrorHandler",
platforms: [
.iOS(.v8),
.macOS(.v10_10),
.watchOS(.v2),
.tvOS(.v9)
],
products: [
.library(
name: "ErrorHandler",
targets: ["ErrorHandler"]),
],
dependencies: [
.Package(url: "https://github.com/Alamofire/Alamofire.git", versions: Version(4, 0, 0)..<Version(5, 0, 0))
.package(url: "https://github.com/Alamofire/Alamofire.git", "4.0.0"..<"5.0.0")
],
targets: [
.target(name: "ErrorHandler", dependencies: ["Alamofire"], path: "./ErrorHandler"),
.testTarget(name: "ErrorHandlerTests", dependencies: ["ErrorHandler"], path: "./Example/Tests")
],
exclude: ["Example"]
swiftLanguageVersions: [.v4_2, .v5]
)

0 comments on commit 4a0141c

Please sign in to comment.