Skip to content

Commit 7376e93

Browse files
committed
Add package manager instructions
1 parent e994033 commit 7376e93

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

Package.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import PackageDescription
22

33
let package = Package(
4-
name: "Concurrent",
5-
targets: [
6-
Target(
7-
name: "Concurrent",
8-
dependencies: []),
4+
name: "Concurrent",
5+
targets: [
6+
Target(
7+
name: "Concurrent",
8+
dependencies: []),
99
]
1010
)
1111

12+
let libConcurrent = Product(name: "Concurrent", type: .Library(.Dynamic), modules: "Concurrent")
13+
products.append(libConcurrent)

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ Concurrent supports OS X 10.9+ and iOS 7.0+.
139139
Installation
140140
=====
141141

142+
#### Swift Package Manager
143+
144+
- Add SwiftCheck to your `Package.swift` file's dependencies section:
145+
146+
```
147+
.Package(url: "https://github.com/typelift/Concurrent.git", versions: Version(0,4,0)..<Version(1,0,0))
148+
```
149+
142150
#### Carthage
143151
Create a `Cartfile` that lists the framework and run `carthage bootstrap`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/Concurrent.framework` to an iOS project.
144152

@@ -147,7 +155,7 @@ github "typelift/Concurrent"
147155
```
148156

149157
#### Manually
150-
1. Download and drop ```/Sources``` folder in your project.
158+
1. Download and drop `/Sources` folder in your project.
151159
2. Congratulations!
152160

153161
#### Framework

0 commit comments

Comments
 (0)