mirror of
https://github.com/lxyeternal/Trace.git
synced 2026-12-04 23:59:23 +08:00
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.
33 lines
943 B
Swift
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]
|
|
)
|