mirror of
https://github.com/luxfhe/example-ios-demo.git
synced 2026-10-30 18:13:24 +00:00
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]>
36 lines
1.3 KiB
Swift
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?
|
|
}
|