mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-09-09 09:59:03 +02:00
* Add SettingsStore * Use keychain instead of UserDefaults in JustUpdatedChecker.swift * Add ability disable the SSH comment via settings * Make SettingsStore functions non-static, re-implement them as subscripts and make settingsStore an environmentObject Fixes: https://github.com/maxgoedjen/secretive/pull/536#discussion_r1508446459 * Add rawValues for CommentStyle enum * Use SettingsStore for querying the comment style in SecretDetailView Fixes: https://github.com/maxgoedjen/secretive/pull/536#discussion_r1509655340 * Revert "Use keychain instead of UserDefaults in JustUpdatedChecker.swift" This reverts commit ae8a21a1bf7f9e2d04fcb83c4543995db0111325. * Remove copyright info * Use "enum Constants" in SettingsStore * WIP * Cleanup * Cleanup * Cleanup strings * WIP * Cleanup * Cleanup * Cleanup * Cleanup * Cleanup --------- Co-authored-by: Paul Heidekrüger <paul.heidekrueger@tum.de>
155 lines
4.5 KiB
Swift
155 lines
4.5 KiB
Swift
// swift-tools-version:6.4
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "SecretivePackages",
|
|
defaultLocalization: "en",
|
|
platforms: [
|
|
.macOS(.v15)
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "SecretKit",
|
|
targets: ["SecretKit"]),
|
|
.library(
|
|
name: "SecureEnclaveSecretKit",
|
|
targets: ["SecureEnclaveSecretKit"]),
|
|
.library(
|
|
name: "SmartCardSecretKit",
|
|
targets: ["SmartCardSecretKit"]),
|
|
.library(
|
|
name: "CertificateKit",
|
|
targets: ["CertificateKit"]),
|
|
.library(
|
|
name: "SettingsKit",
|
|
targets: ["SettingsKit"]),
|
|
.library(
|
|
name: "SecretAgentKit",
|
|
targets: ["SecretAgentKit"]),
|
|
.library(
|
|
name: "Formatters",
|
|
targets: ["Formatters"]),
|
|
.library(
|
|
name: "Common",
|
|
targets: ["Common"]),
|
|
.library(
|
|
name: "SharedXPCServices",
|
|
targets: ["SharedXPCServices"]),
|
|
.library(
|
|
name: "Brief",
|
|
targets: ["Brief"]),
|
|
.library(
|
|
name: "XPCWrappers",
|
|
targets: ["XPCWrappers"]),
|
|
.library(
|
|
name: "SSHProtocolKit",
|
|
targets: ["SSHProtocolKit"]),
|
|
],
|
|
dependencies: [
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "SecretKit",
|
|
dependencies: [],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.testTarget(
|
|
name: "SecretKitTests",
|
|
dependencies: ["SecretKit", "SecretAgentKit", "SecureEnclaveSecretKit", "SmartCardSecretKit"],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "SecureEnclaveSecretKit",
|
|
dependencies: ["SecretKit"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "SmartCardSecretKit",
|
|
dependencies: ["SecretKit"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "CertificateKit",
|
|
dependencies: ["SecretKit", "Formatters"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "SettingsKit",
|
|
dependencies: [],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "SecretAgentKit",
|
|
dependencies: ["SecretKit", "SSHProtocolKit", "CertificateKit", "Common", "Formatters"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.testTarget(
|
|
name: "SecretAgentKitTests",
|
|
dependencies: ["SecretAgentKit"],
|
|
),
|
|
.target(
|
|
name: "SSHProtocolKit",
|
|
dependencies: ["SecretKit", "CertificateKit"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.testTarget(
|
|
name: "SSHProtocolKitTests",
|
|
dependencies: ["SSHProtocolKit"],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "Formatters",
|
|
dependencies: [],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "Common",
|
|
dependencies: ["SSHProtocolKit", "SecretKit"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "SharedXPCServices",
|
|
dependencies: ["XPCWrappers", "CertificateKit", "SSHProtocolKit"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.target(
|
|
name: "Brief",
|
|
dependencies: ["XPCWrappers", "SSHProtocolKit"],
|
|
resources: [localization],
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
.testTarget(
|
|
name: "BriefTests",
|
|
dependencies: ["Brief"],
|
|
),
|
|
.target(
|
|
name: "XPCWrappers",
|
|
swiftSettings: swiftSettings,
|
|
),
|
|
]
|
|
)
|
|
|
|
var localization: Resource {
|
|
.process("../../Resources/Localizable.xcstrings")
|
|
}
|
|
|
|
var swiftSettings: [PackageDescription.SwiftSetting] {
|
|
[
|
|
.swiftLanguageMode(.v6),
|
|
.treatAllWarnings(as: .error),
|
|
.strictMemorySafety()
|
|
]
|
|
}
|