Skip to content

Commit

Permalink
Merge pull request #159 from funkenstrahlen/master
Browse files Browse the repository at this point in the history
Swift 4 package manager support
  • Loading branch information
drmohundro authored Oct 18, 2017
2 parents b5606b0 + 29a3ff6 commit 5de7d41
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
4.0
19 changes: 18 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
// swift-tools-version:4.0
import PackageDescription

let package = Package(
name: "SWXMLHash"
name: "SWXMLHash",
products: [
.library(
name: "SWXMLHash",
targets: ["SWXMLHash"]
)
],
targets: [
.target(
name: "SWXMLHash",
path: "Source"
),
.testTarget(
name: "SWXMLHashTests",
dependencies: ["SWXMLHash"]
)
]
)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ github "drmohundro/SWXMLHash" ~> 4.0

### Swift Package Manager

Swift Package Manager requires Swift version 3.0 or higher. First, create a `Package.swift` file. It should look like:
Swift Package Manager requires Swift version 4.0 or higher. First, create a `Package.swift` file. It should look like:

```swift
dependencies: [
.Package(url: "https://github.com/drmohundro/SWXMLHash.git", majorVersion: 4)
.Package(url: "https://github.com/drmohundro/SWXMLHash.git", from: "4.0.0")
]
```

Expand Down

0 comments on commit 5de7d41

Please sign in to comment.