Files
Trace/Package.swift
Blue c7e624d1ad Initial version of Trace, a local activity tracker for macOS
Records the frontmost app, window title, file path and page URL into a
local SQLite database, and shows the day as an overview, a drill-down
timeline and a record-by-record list. Includes tags with automatic rules
and manual overrides, week/month/year reports with CSV export, onboarding,
settings, a menu bar panel, and English and Simplified Chinese.
2026-11-13 20:57:40 +08:00

33 lines
943 B
Swift

// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Trace",
defaultLocalization: "en",
platforms: [.macOS(.v14)],
products: [
.executable(name: "Trace", targets: ["Trace"]),
.library(name: "TraceCore", targets: ["TraceCore"]),
],
dependencies: [
.package(url: "https://github.com/groue/GRDB.swift.git", from: "7.0.0"),
],
targets: [
// Models, storage, tagging and aggregation. No UI, fully testable.
.target(
name: "TraceCore",
dependencies: [.product(name: "GRDB", package: "GRDB.swift")]
),
// The macOS app: capture, SwiftUI views, menu bar.
.executableTarget(
name: "Trace",
dependencies: ["TraceCore"]
),
.testTarget(
name: "TraceCoreTests",
dependencies: ["TraceCore"]
),
],
swiftLanguageModes: [.v5]
)