Skip to content

Commit 441ba93

Browse files
committed
Updated SPM support to modern times.
1 parent 2f39dec commit 441ba93

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

Package.swift

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1+
// swift-tools-version:5.1
12
import PackageDescription
23

3-
4-
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
5-
let package = Package(
6-
name: "JWT",
7-
dependencies: [
8-
.Package(url: "https://github.com/kylef-archive/CommonCrypto.git", majorVersion: 1),
9-
],
10-
exclude: [
11-
"Sources/JWT/HMACCryptoSwift.swift",
12-
]
13-
)
14-
#else
154
let package = Package(
16-
name: "JWT",
17-
dependencies: [
18-
.Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", majorVersion: 0, minor: 8),
19-
],
20-
exclude: [
21-
"Sources/JWT/HMACCommonCrypto.swift",
22-
]
5+
name: "JWT",
6+
platforms: [
7+
.iOS(.v12),
8+
.tvOS(.v12),
9+
.watchOS(.v6)
10+
],
11+
products: [
12+
// Products define the executables and libraries a package produces, and make them visible to other packages.
13+
.library(
14+
name: "JWT",
15+
targets: ["JWT"])
16+
],
17+
dependencies: [],
18+
targets: [
19+
.target(
20+
name: "JWT",
21+
dependencies: [],
22+
path: "Sources/JWT",
23+
exclude: ["HMACCryptoSwift.swift"]
24+
)
25+
],
26+
swiftLanguageVersions: [.v5]
2327
)
24-
#endif

0 commit comments

Comments
 (0)