Skip to content

Commit

Permalink
Add SPM support
Browse files Browse the repository at this point in the history
  • Loading branch information
Goos authored and Brent Mifsud committed Aug 10, 2021
1 parent 7bff4c1 commit 37a17b4
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

## Build generated
build/
.build/
DerivedData/

## Various settings
Expand Down
25 changes: 25 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"object": {
"pins": [
{
"package": "IGListKit",
"repositoryURL": "https://github.com/Instagram/IGListKit.git",
"state": {
"branch": null,
"revision": "36da20119ca70c0a8b46ef0acc93b3bcb5a9ea69",
"version": "4.0.0"
}
},
{
"package": "RxSwift",
"repositoryURL": "https://github.com/ReactiveX/RxSwift.git",
"state": {
"branch": null,
"revision": "7c17a6ccca06b5c107cfa4284e634562ddaf5951",
"version": "6.2.0"
}
}
]
},
"version": 1
}
25 changes: 25 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "RxIGListKit",
platforms: [.iOS(.v9)],
products: [
.library(
name: "RxIGListKit",
targets: ["RxIGListKit"]),
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.0.0"),
.package(url: "https://github.com/Instagram/IGListKit.git", from: "4.0.0")
],
targets: [
.target(
name: "RxIGListKit",
dependencies: ["RxSwift", "IGListKit"],
path: "./RxIGListKit"
)
]
)
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ For [Carthage](https://github.com/Carthage/Carthage), add the following to your
github "RxSwiftCommunity/RxIGListKit" "master"
```

For [Swift Package Manager](https://swift.org/package-manager/), add the following to your `Package.swift`

```swift
dependencies: [
.package(url: "https://github.com/RxSwiftCommunity/RxIGListKit.git", branch: "master")
],
targets: [
.target(
name: "MyPackage",
dependencies: ["RxIGListKit"]
)
]
```

## Author

Bruce-pac, [email protected]
Expand Down

0 comments on commit 37a17b4

Please sign in to comment.