Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added SPM compatibility #170

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,23 @@
* THE SOFTWARE.
*/

// swift-tools-version:3.1
// swift-tools-version:5.5

import PackageDescription

let package = Package(name: "Graph")
let package = Package(
name: "Graph",
platforms: [
.iOS("8.0"),
.macOS("10.10")
],
products: [
.library(
name: "Graph",
targets: ["Graph"]),
],
targets: [
.executableTarget(
name: "Graph")
]
)
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ Then, run the following command:
```bash
$ pod install
```

## Swift Package Manager
To add Graph to a [Swift Package Manager](https://swift.org/package-manager/) based project, add:

```swift
.package(url: "https://github.com/CosmicMind/Graph", .branch("development")),
```
to your `Package.swift` files `dependencies` array.

## Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
Expand Down