Skip to content

Commit

Permalink
#8 Add SPM support
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas34 committed Nov 23, 2017
1 parent fcf99e7 commit 95ef1dd
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "Reachability",
"repositoryURL": "https://github.com/lucas34/Reachability.swift.git",
"state": {
"branch": null,
"revision": "31b72208fcc563e3213fbd260b9300b2c0b8609f",
"version": "5.0.0"
}
}
]
},
"version": 1
}
39 changes: 16 additions & 23 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "SwiftQueue",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "SwiftQueue",
targets: ["SwiftQueue"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "SwiftQueue",
dependencies: []),
.testTarget(
name: "SwiftQueueTests",
dependencies: ["SwiftQueue"])
]
name: "SwiftQueue",
products: [
.library(name: "SwiftQueue", targets: ["SwiftQueue"]),
],
dependencies: [
.package(url: "https://github.com/lucas34/Reachability.swift.git", .upToNextMajor(from: "5.0.0")),
],
targets: [
.target(
name: "SwiftQueue",
dependencies: ["Reachability"]),
.testTarget(
name: "SwiftQueueTests",
dependencies: ["SwiftQueue"]),
],
swiftLanguageVersions: [3, 4]
)

0 comments on commit 95ef1dd

Please sign in to comment.