Skip to content

Commit 738ccca

Browse files
author
Wes Billman
committed
Added swift package and carthage information
1 parent 4ccb8eb commit 738ccca

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

Package.swift

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import PackageDescription
2+
3+
let package = Package(
4+
name: "JSONFeed",
5+
exclude: ["JSONFeed.xcodeproj", "JSONFeedTests", ".travis.yml", "codecov.yml", ".swiftlint.yml"]
6+
)

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
[![Build Status](https://travis-ci.org/wesbillman/JSONFeed.svg?branch=master)](https://travis-ci.org/wesbillman/JSONFeed)
22
[![Codecov](https://img.shields.io/codecov/c/github/wesbillman/JSONFeed.svg)](https://codecov.io/gh/wesbillman/JSONFeed)
3+
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
4+
![SwiftPM Compatible](https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg)
35

46
### JSONFeed
57

68
Swift parsing for [JSON Feed](https://jsonfeed.org/)
9+
10+
## Installation
11+
12+
### Carthage
13+
14+
You can install [Carthage](https://github.com/Carthage/Carthage) with [Homebrew](http://brew.sh/) using the following command:
15+
16+
```bash
17+
brew update
18+
brew install carthage
19+
```
20+
To integrate JSONFeed into your Xcode project using Carthage, specify it in your `Cartfile` where `"x.x.x"` is the current release:
21+
22+
```ogdl
23+
github "wesbillman/JSONFeed" "x.x.x"
24+
```
25+
26+
### Swift Package Manager
27+
28+
To install using [Swift Package Manager](https://swift.org/package-manager/) have your Swift package set up, and add JSONFeed as a dependency to your `Package.swift`.
29+
30+
```swift
31+
dependencies: [
32+
.Package(url: "https://github.com/wesbillman/JSONFeed.git", majorVersion: 0)
33+
]
34+
```
35+
36+
### Manually
37+
Add all the files from `JSONFeed/JSONFeed` to your project

0 commit comments

Comments
 (0)