|
1 |
| -// swift-tools-version:4.0 |
| 1 | +// swift-tools-version:5.6 |
2 | 2 | // The swift-tools-version declares the minimum version of Swift required to build this package.
|
3 | 3 |
|
4 | 4 | import PackageDescription
|
5 | 5 |
|
6 | 6 | let package = Package(
|
7 | 7 | name: "Ferno",
|
| 8 | + platforms: [ |
| 9 | + .macOS(.v10_15) |
| 10 | + ], |
8 | 11 | products: [
|
9 |
| - // Products define the executables and libraries produced by a package, and make them visible to other packages. |
10 | 12 | .library(
|
11 | 13 | name: "Ferno",
|
12 |
| - targets: ["Ferno"]), |
| 14 | + targets: ["Ferno"] |
| 15 | + ), |
13 | 16 | ],
|
14 | 17 | dependencies: [
|
15 |
| - // Dependencies declare other packages that this package depends on. |
16 |
| - // .package(url: /* package url */, from: "1.0.0"), |
17 |
| - .package(url: "https://github.com/vapor/vapor.git", from: "3.0.1"), |
18 |
| - .package(url: "https://github.com/vapor/jwt.git", from: "3.0.0") |
| 18 | + .package(url: "https://github.com/vapor/vapor.git", from: "4.8.0"), |
| 19 | + .package(url: "https://github.com/vapor/jwt.git", from: "4.0.0") |
19 | 20 | ],
|
20 | 21 | targets: [
|
21 |
| - // Targets are the basic building blocks of a package. A target can define a module or a test suite. |
22 |
| - // Targets can depend on other targets in this package, and on products in packages which this package depends on. |
23 | 22 | .target(
|
24 | 23 | name: "Ferno",
|
25 |
| - dependencies: ["Vapor", "JWT"]), |
| 24 | + dependencies: [ |
| 25 | + .product(name: "Vapor", package: "vapor"), |
| 26 | + .product(name: "JWT", package: "jwt") |
| 27 | + ] |
| 28 | + ), |
26 | 29 | .testTarget(
|
27 | 30 | name: "FernoTests",
|
28 |
| - dependencies: ["Ferno"]), |
| 31 | + dependencies: [ |
| 32 | + .target(name: "Ferno"), |
| 33 | + .product(name: "XCTVapor", package: "vapor") |
| 34 | + ] |
| 35 | + ), |
29 | 36 | ]
|
30 | 37 | )
|
0 commit comments