Skip to content

Commit 57f50d8

Browse files
authored
Merge pull request #40 from CodaFi/readme-and-weep
Update README
2 parents 08fea87 + 7376e93 commit 57f50d8

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

Package.swift

+7-5
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

+18-12
Original file line numberDiff line numberDiff line change
@@ -136,23 +136,29 @@ System Requirements
136136

137137
Concurrent supports OS X 10.9+ and iOS 7.0+.
138138

139-
Setup
139+
Installation
140140
=====
141141

142-
Concurrent can be included one of two ways:
142+
#### Swift Package Manager
143143

144-
**Using Carthage**
144+
- Add SwiftCheck to your `Package.swift` file's dependencies section:
145145

146-
- Add Concurrent to your Cartfile
147-
- Run `carthage update`
148-
- Drag the relevant copy of Concurrent into your project.
149-
- Expand the Link Binary With Libraries phase
150-
- Click the + and add Concurrent
151-
- Click the + at the top left corner to add a Copy Files build phase
152-
- Set the directory to `Frameworks`
153-
- Click the + and add Concurrent
146+
```
147+
.Package(url: "https://github.com/typelift/Concurrent.git", versions: Version(0,4,0)..<Version(1,0,0))
148+
```
149+
150+
#### Carthage
151+
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.
152+
153+
```
154+
github "typelift/Concurrent"
155+
```
156+
157+
#### Manually
158+
1. Download and drop `/Sources` folder in your project.
159+
2. Congratulations!
154160

155-
**Framework**
161+
#### Framework
156162

157163
- Drag Concurrent.xcodeproj or Concurrent-iOS.xcodeproj into your project tree as a subproject
158164
- Under your project's Build Phases, expand Target Dependencies

0 commit comments

Comments
 (0)