Skip to content

Commit 95ef1dd

Browse files
committed
#8 Add SPM support
1 parent fcf99e7 commit 95ef1dd

File tree

2 files changed

+32
-23
lines changed

2 files changed

+32
-23
lines changed

Package.resolved

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "Reachability",
6+
"repositoryURL": "https://github.com/lucas34/Reachability.swift.git",
7+
"state": {
8+
"branch": null,
9+
"revision": "31b72208fcc563e3213fbd260b9300b2c0b8609f",
10+
"version": "5.0.0"
11+
}
12+
}
13+
]
14+
},
15+
"version": 1
16+
}

Package.swift

+16-23
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
11
// swift-tools-version:4.0
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
3-
42
import PackageDescription
53

64
let package = Package(
7-
name: "SwiftQueue",
8-
products: [
9-
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10-
.library(
11-
name: "SwiftQueue",
12-
targets: ["SwiftQueue"])
13-
],
14-
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
16-
// .package(url: /* package url */, from: "1.0.0"),
17-
],
18-
targets: [
19-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20-
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
21-
.target(
22-
name: "SwiftQueue",
23-
dependencies: []),
24-
.testTarget(
25-
name: "SwiftQueueTests",
26-
dependencies: ["SwiftQueue"])
27-
]
5+
name: "SwiftQueue",
6+
products: [
7+
.library(name: "SwiftQueue", targets: ["SwiftQueue"]),
8+
],
9+
dependencies: [
10+
.package(url: "https://github.com/lucas34/Reachability.swift.git", .upToNextMajor(from: "5.0.0")),
11+
],
12+
targets: [
13+
.target(
14+
name: "SwiftQueue",
15+
dependencies: ["Reachability"]),
16+
.testTarget(
17+
name: "SwiftQueueTests",
18+
dependencies: ["SwiftQueue"]),
19+
],
20+
swiftLanguageVersions: [3, 4]
2821
)

0 commit comments

Comments
 (0)