-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
49 lines (45 loc) · 1.45 KB
/
Copy pathPackage.swift
File metadata and controls
49 lines (45 loc) · 1.45 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// swift-tools-version: 6.3
import PackageDescription
var packageDependencies: [Package.Dependency] = [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.8.2"),
.package(url: "https://github.com/apple/swift-log.git", exact: "1.15.1"),
]
var cliDependencies: [Target.Dependency] = [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Logging", package: "swift-log"),
]
#if os(macOS)
packageDependencies += [
.package(
url: "https://github.com/getsentry/sentry-apple-swift-log.git",
exact: "9.28.0",
traits: ["SentryFromSource"]
),
.package(
url: "https://github.com/getsentry/sentry-cocoa.git",
exact: "9.28.0",
traits: ["NoUIFramework"]
),
]
cliDependencies += [
.product(name: "SentrySwiftLog", package: "sentry-apple-swift-log"),
.product(name: "SentrySPM", package: "sentry-cocoa"),
]
#endif
let package = Package(
name: "apple-docs-cli",
platforms: [.macOS(.v13)],
products: [
.executable(name: "apple-docs", targets: ["CLI"])
],
dependencies: packageDependencies,
targets: [
.executableTarget(
name: "CLI",
dependencies: cliDependencies
),
.testTarget(name: "CLITests", dependencies: ["CLI"]),
.testTarget(name: "CLIIntegrationTests"),
],
swiftLanguageModes: [.v6]
)