-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
54 lines (53 loc) · 1.76 KB
/
Copy pathPackage.swift
File metadata and controls
54 lines (53 loc) · 1.76 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Uncommitted",
platforms: [
.macOS(.v14),
],
products: [
.executable(name: "uncommitted", targets: ["Uncommitted"]),
.executable(name: "UncommittedTests", targets: ["UncommittedTests"]),
],
dependencies: [
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.6.0"),
],
targets: [
// Model, services, stores. Everything testable lives here.
// No Sparkle dependency — core stays framework-free.
.target(
name: "UncommittedCore",
swiftSettings: [
.swiftLanguageMode(.v5),
]
),
// Thin SwiftUI + AppKit shell that depends on the Core library
// and Sparkle for auto-updates.
.executableTarget(
name: "Uncommitted",
dependencies: [
"UncommittedCore",
.product(name: "Sparkle", package: "Sparkle"),
],
resources: [
.copy("Resources/icon-glyph.svg"),
.copy("Resources/github-mark.svg"),
],
swiftSettings: [
.swiftLanguageMode(.v5),
]
),
// Plain executable test runner. XCTest and swift-testing are both
// unavailable on a Command Line Tools-only toolchain, so we expose
// the tests via `swift run UncommittedTests` — zero dependencies on
// external test frameworks.
.executableTarget(
name: "UncommittedTests",
dependencies: ["UncommittedCore"],
path: "Tests/UncommittedTests",
swiftSettings: [
.swiftLanguageMode(.v5),
]
),
]
)