Skip to content

Commit

Permalink
Fixes #15: Update for Swift 5.1 toolchain.
Browse files Browse the repository at this point in the history
- Added build targets
- Added installation instructions to README
- Added library product to package description
  • Loading branch information
Peter Thomas Horn committed Feb 26, 2020
1 parent beb9b6f commit 19bb8be
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// swift-tools-version:4.0
//
// Created by Richard Hodgkins on 07/06/2016.
// Copyright (c) 2016 Richard Hodgkins. All rights reserved.
Expand All @@ -6,5 +7,23 @@
import PackageDescription

let package = Package(
name: "HTTPStatusCodes"
name: "HTTPStatusCodes",
products: [
.library(name: "HTTPStatusCodes", targets: ["HTTPStatusCodes"])
],
targets: [
.target(
name: "HTTPStatusCodes",
path: "Sources"
),
.testTarget(
name: "HTTPStatusCodesTests",
dependencies: ["HTTPStatusCodes"],
path: "Tests/HTTPStatusCodesTests",
sources: [
"HTTPStatusCodesTests.swift",
"RegressionTests.swift"
]
)
]
)
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ If this library is out of date compared to this page please open an issue and I

### Swift versions support

* Swift 5.1 - use version 3.3.2
* Swift 5 - use version 3.3.1
* Swift 4 - use version 3.3.0
* Swift 3 - use version 3.1
* Older versions - use version 3.0

### Swift Package Manager

Add this package to the dependencies in your `Package.swift` file:

```swift
.package(url: "https://github.com/rhodgkins/SwiftHTTPStatusCodes.git", .upToNextMajor(from: "3.0.0"))
```

### Carthage

`Cartfile`:
Expand Down

0 comments on commit 19bb8be

Please sign in to comment.