-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
38 lines (37 loc) · 1008 Bytes
/
Copy pathPackage.swift
File metadata and controls
38 lines (37 loc) · 1008 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
31
32
33
34
35
36
37
38
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "Brygga",
platforms: [
// macOS 15 Sequoia is the real floor:
// - `.containerBackground(_:for: .window)` requires macOS 15.
// - `@Observable`, `@Bindable`, `.inspector`, `.onKeyPress`,
// `ContentUnavailableView` all ship from macOS 14, but one newer
// API pulls the whole floor up.
// Policy: build for latest, raise the floor as needed, no
// `@available` guards.
.macOS(.v15),
],
products: [
.executable(name: "Brygga", targets: ["Brygga"]),
.library(name: "BryggaCore", targets: ["BryggaCore"]),
],
targets: [
// Domain logic (IRC protocol, models) — testable
.target(
name: "BryggaCore",
path: "Sources/BryggaCore",
),
// App executable (SwiftUI views, @main)
.executableTarget(
name: "Brygga",
dependencies: ["BryggaCore"],
path: "Sources/Brygga",
),
.testTarget(
name: "BryggaCoreTests",
dependencies: ["BryggaCore"],
path: "Tests",
),
],
)