Skip to content

Commit 9ca6ad8

Browse files
authored
Update Vapor example Package.swift for Vapor 4 (#454)
1 parent b863152 commit 9ca6ad8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
// swift-tools-version:5.1
1+
// swift-tools-version:5.2
22
import PackageDescription
33

44
let package = Package(
55
name: "VaporExample",
66
platforms: [
7-
.macOS(.v10_14)
7+
.macOS(.v10_15)
88
],
99
dependencies: [
1010
// The driver depends on SwiftNIO 2 and therefore is only compatible with Vapor 4.
11-
.package(url: "https://github.com/vapor/vapor", .exact("4.0.0-beta.3.24")),
11+
.package(url: "https://github.com/vapor/vapor.git", from: "4.2.1"),
1212
.package(url: "https://github.com/mongodb/mongo-swift-driver", .upToNextMajor(from: "1.0.0-rc0"))
1313
],
1414
targets: [
15-
.target(name: "VaporExample", dependencies: ["Vapor", "MongoSwift"])
15+
.target(name: "VaporExample", dependencies: [
16+
.product(name: "MongoSwift", package: "mongo-swift-driver"),
17+
.product(name: "Vapor", package: "vapor"),
18+
])
1619
]
1720
)

0 commit comments

Comments
 (0)