Skip to content

Commit b66d6a8

Browse files
authored
Adding SPM Support (dzenbot#447)
Better late than never! Adding SPM Support Closes dzenbot#463 Closes dzenbot#462 Closes dzenbot#461 Closes dzenbot#445
1 parent 8deb3fe commit b66d6a8

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ xcuserdata
1313
profile
1414
*.moved-aside
1515
DerivedData
16-
.idea/
16+
.idea/
17+
/.swiftpm

Package.swift

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.0
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: "DZNEmptyDataSet",
8+
platforms: [
9+
.iOS(.v8),
10+
.tvOS(.v9)
11+
],
12+
products: [
13+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
14+
.library(
15+
name: "DZNEmptyDataSet",
16+
targets: ["DZNEmptyDataSet"])
17+
],
18+
dependencies: [
19+
// Dependencies declare other packages that this package depends on.
20+
// .package(url: /* package url */, from: "1.0.0"),
21+
],
22+
targets: [
23+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
24+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
25+
.target(
26+
name: "DZNEmptyDataSet",
27+
dependencies: [],
28+
path: ".",
29+
sources: ["Source"],
30+
publicHeadersPath: "Source"
31+
)
32+
]
33+
)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ To integrate DZNEmptyDataSet into your Xcode project using Carthage, specify it
6161
github "dzenbot/DZNEmptyDataSet"
6262
```
6363

64+
To integrate DZNEmptyDataSet into your Xcode project using SPM, specify it in your `Package.swift`:
65+
66+
```ruby
67+
.package(
68+
url: "https://github.com/dzenbot/DZNEmptyDataSet",
69+
.branch("master")
70+
)
71+
```
72+
For existing, go to "File Navigator" -> "Select Project" -> "Project Name" -> "Swift Packages" -> "+" -> Paste "https://github.com/dzenbot/DZNEmptyDataSet" and proceed to select your target.
6473

6574
## How to use
6675
For complete documentation, [visit CocoaPods' auto-generated doc](http://cocoadocs.org/docsets/DZNEmptyDataSet/)

0 commit comments

Comments
 (0)