Skip to content

Commit 37a17b4

Browse files
GoosBrent Mifsud
authored and
Brent Mifsud
committed
Add SPM support
1 parent 7bff4c1 commit 37a17b4

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
## Build generated
99
build/
10+
.build/
1011
DerivedData/
1112

1213
## Various settings

Package.resolved

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "IGListKit",
6+
"repositoryURL": "https://github.com/Instagram/IGListKit.git",
7+
"state": {
8+
"branch": null,
9+
"revision": "36da20119ca70c0a8b46ef0acc93b3bcb5a9ea69",
10+
"version": "4.0.0"
11+
}
12+
},
13+
{
14+
"package": "RxSwift",
15+
"repositoryURL": "https://github.com/ReactiveX/RxSwift.git",
16+
"state": {
17+
"branch": null,
18+
"revision": "7c17a6ccca06b5c107cfa4284e634562ddaf5951",
19+
"version": "6.2.0"
20+
}
21+
}
22+
]
23+
},
24+
"version": 1
25+
}

Package.swift

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// swift-tools-version:5.3
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "RxIGListKit",
8+
platforms: [.iOS(.v9)],
9+
products: [
10+
.library(
11+
name: "RxIGListKit",
12+
targets: ["RxIGListKit"]),
13+
],
14+
dependencies: [
15+
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.0.0"),
16+
.package(url: "https://github.com/Instagram/IGListKit.git", from: "4.0.0")
17+
],
18+
targets: [
19+
.target(
20+
name: "RxIGListKit",
21+
dependencies: ["RxSwift", "IGListKit"],
22+
path: "./RxIGListKit"
23+
)
24+
]
25+
)

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ For [Carthage](https://github.com/Carthage/Carthage), add the following to your
3939
github "RxSwiftCommunity/RxIGListKit" "master"
4040
```
4141

42+
For [Swift Package Manager](https://swift.org/package-manager/), add the following to your `Package.swift`
43+
44+
```swift
45+
dependencies: [
46+
.package(url: "https://github.com/RxSwiftCommunity/RxIGListKit.git", branch: "master")
47+
],
48+
targets: [
49+
.target(
50+
name: "MyPackage",
51+
dependencies: ["RxIGListKit"]
52+
)
53+
]
54+
```
55+
4256
## Author
4357

4458

0 commit comments

Comments
 (0)