diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 00000000..f7b26808 --- /dev/null +++ b/Package.resolved @@ -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 +} diff --git a/Package.swift b/Package.swift index b142202f..b3738a0d 100644 --- a/Package.swift +++ b/Package.swift @@ -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] )