Skip to content

Commit bfc6194

Browse files
committed
Update readme with Carthage instructions.
1 parent 1f8143f commit bfc6194

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ For more info, see my accompanying [blog article](https://oleb.net/blog/2017/02/
1212

1313
[![Build Status](https://travis-ci.org/ole/SortedArray.svg?branch=master)](https://travis-ci.org/ole/SortedArray)
1414

15+
## Supported Platforms
16+
17+
Since the code has no dependencies other than the Swift standard library (it doesn't even use Foundation), it should work on all platforms where Swift is available.
18+
19+
I tested it on macOS, iOS, tvOS, and Linux.
20+
1521
## Usage
1622

17-
Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.
23+
### Swift Package Manager
1824

19-
If you want to try this out in a Swift Package Manager project, add this to your `Package.swift` file:
25+
Add this to your `Package.swift` file:
2026

2127
```swift
2228
// Package.swift
@@ -30,6 +36,20 @@ let package = Package(
3036
)
3137
```
3238

39+
### Carthage
40+
41+
Add this to your `Cartfile`:
42+
43+
```
44+
github "ole/SortedArray" ~> 0.3
45+
```
46+
47+
Integration via Carthage should work for macOS, iOS, tvOS, and watchOS targets.
48+
49+
### Manually
50+
51+
Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.
52+
3353
## Dependencies
3454

3555
None.

0 commit comments

Comments
 (0)