-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathPackage.swift
More file actions
30 lines (29 loc) · 984 Bytes
/
Package.swift
File metadata and controls
30 lines (29 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "ErrorKit",
defaultLocalization: "en",
platforms: [.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)],
products: [.library(name: "ErrorKit", targets: ["ErrorKit"])],
dependencies: [
// CryptoKit is not available on Linux, so we need Swift Crypto
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.11.0")
],
targets: [
.target(
name: "ErrorKit",
dependencies: [
.product(
name: "Crypto",
package: "swift-crypto",
condition: .when(platforms: [.android, .linux, .openbsd, .wasi, .windows])
)
],
resources: [
.process("Resources/Localizable.xcstrings"),
.process("Resources/PrivacyInfo.xcprivacy"),
]
),
.testTarget(name: "ErrorKitTests", dependencies: ["ErrorKit"]),
]
)