-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathPackage.swift
More file actions
86 lines (85 loc) · 3.59 KB
/
Package.swift
File metadata and controls
86 lines (85 loc) · 3.59 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "RepoBar",
platforms: [
.macOS(.v15),
.iOS(.v26),
],
products: [
.library(name: "RepoBarCore", targets: ["RepoBarCore"]),
// Named to avoid colliding with `RepoBar` on case-insensitive filesystems.
.executable(name: "repobarcli", targets: ["repobarcli"]),
],
dependencies: [
.package(url: "https://github.com/steipete/Commander", from: "0.2.0"),
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.8.1"),
.package(url: "https://github.com/orchetect/MenuBarExtraAccess", exact: "1.2.2"),
.package(url: "https://github.com/apple/swift-algorithms", from: "1.2.1"),
.package(url: "https://github.com/apple/swift-log", from: "1.8.0"),
.package(url: "https://github.com/openid/AppAuth-iOS", from: "2.0.0"),
.package(url: "https://github.com/apollographql/apollo-ios", from: "2.0.3"),
.package(url: "https://github.com/onevcat/Kingfisher", from: "8.6.0"),
.package(url: "https://github.com/steipete/Swiftdansi", from: "0.1.1"),
.package(url: "https://github.com/apple/swift-markdown", from: "0.7.3"),
],
targets: [
.target(
name: "RepoBarCore",
dependencies: [
.product(name: "Apollo", package: "apollo-ios"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Markdown", package: "swift-markdown"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.executableTarget(
name: "RepoBar",
dependencies: [
"RepoBarCore",
.product(name: "Sparkle", package: "Sparkle"),
.product(name: "MenuBarExtraAccess", package: "MenuBarExtraAccess"),
.product(name: "Algorithms", package: "swift-algorithms"),
.product(name: "AppAuth", package: "AppAuth-iOS"),
.product(name: "Kingfisher", package: "Kingfisher"),
.product(name: "Logging", package: "swift-log"),
],
exclude: ["Resources/Info.plist"],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
.unsafeFlags([
"-Xlinker", "-sectcreate", "-Xlinker", "__TEXT", "-Xlinker", "__info_plist",
"-Xlinker", "Sources/RepoBar/Resources/Info.plist",
]),
]),
.executableTarget(
name: "repobarcli",
dependencies: [
.product(name: "Commander", package: "Commander"),
.product(name: "Swiftdansi", package: "Swiftdansi"),
"RepoBarCore",
],
path: "Sources/repobarcli",
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.testTarget(
name: "RepoBarTests",
dependencies: ["RepoBar", "RepoBarCore"],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
.enableExperimentalFeature("SwiftTesting"),
]),
.testTarget(
name: "repobarcliTests",
dependencies: ["repobarcli"],
path: "Tests/repobarcliTests",
resources: [
.process("Fixtures"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
.enableExperimentalFeature("SwiftTesting"),
]),
])