Files
zeekayandHanzo Dev c8bfbebc15 Keep ZAMA's copyright notices
This app is ZAMA's BSD 3-Clause Clear demo. The license requires its notices to
survive redistribution, and a rebrand had replaced every one of them with ours:
the LICENSE text, 66 source headers and the app's copyright string. They are
back, each with our line beside it for our changes.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-23 01:55:03 -07:00

36 lines
1.3 KiB
Swift

// Copyright © 2025 Zama. All rights reserved.
// Copyright © 2025 Lux Industries Inc.
import Foundation
enum Constants {
@UserDefaultsStorage(key: "v12.selectedNight", defaultValue: nil)
static var selectedNight: Date?
@UserDefaultsStorage(key: "v12.selectedNightInputPreviewString", defaultValue: nil)
private static var _selectedNightInputPreviewString: String?
static var selectedNightInputPreviewURL: URL? {
get {
_selectedNightInputPreviewString.flatMap(URL.init(string:))
} set {
_selectedNightInputPreviewString = newValue?.absoluteString
}
}
@UserDefaultsStorage(key: "v12.selectedNightResultPreviewString", defaultValue: nil)
private static var _selectedNightResultPreviewString: String?
static var selectedNightResultPreviewURL: URL? {
get {
_selectedNightResultPreviewString.flatMap(URL.init(string:))
} set {
_selectedNightResultPreviewString = newValue?.absoluteString
}
}
@UserDefaultsStorage(key: "v12.uploadedServerKeyHash", defaultValue: nil)
static var uploadedServerKeyHash: String?
@UserDefaultsStorage(key: "v12.uploadedServerKeyUID", defaultValue: nil)
static var uploadedServerKeyUID: Network.UID?
}