Skip to content

Commit 1d22f04

Browse files
authored
Merge pull request #7 from petrpavlik/master
Improvements
2 parents 4cb034b + 66e4fbe commit 1d22f04

18 files changed

+552
-594
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/.build
33
/Packages
44
/*.xcodeproj
5+
.swiftpm
6+
Package.resolved

Package.resolved

-160
This file was deleted.

Package.swift

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
1-
// swift-tools-version:4.0
1+
// swift-tools-version:5.6
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "Ferno",
8+
platforms: [
9+
.macOS(.v10_15)
10+
],
811
products: [
9-
// Products define the executables and libraries produced by a package, and make them visible to other packages.
1012
.library(
1113
name: "Ferno",
12-
targets: ["Ferno"]),
14+
targets: ["Ferno"]
15+
),
1316
],
1417
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")
1920
],
2021
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.
2322
.target(
2423
name: "Ferno",
25-
dependencies: ["Vapor", "JWT"]),
24+
dependencies: [
25+
.product(name: "Vapor", package: "vapor"),
26+
.product(name: "JWT", package: "jwt")
27+
]
28+
),
2629
.testTarget(
2730
name: "FernoTests",
28-
dependencies: ["Ferno"]),
31+
dependencies: [
32+
.target(name: "Ferno"),
33+
.product(name: "XCTVapor", package: "vapor")
34+
]
35+
),
2936
]
3037
)

0 commit comments

Comments
 (0)