mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-30 21:23:35 +00:00
20 lines
504 B
Swift
20 lines
504 B
Swift
import Foundation
|
|
|
|
enum PushEnrollmentConsent {
|
|
static let disclosureAcceptedKey = "push.enrollment.disclosureAccepted"
|
|
|
|
static var disclosureAccepted: Bool {
|
|
UserDefaults.standard.bool(forKey: disclosureAcceptedKey)
|
|
}
|
|
|
|
static func markDisclosureAccepted() {
|
|
UserDefaults.standard.set(true, forKey: self.disclosureAcceptedKey)
|
|
}
|
|
|
|
#if DEBUG
|
|
static func reset() {
|
|
UserDefaults.standard.removeObject(forKey: self.disclosureAcceptedKey)
|
|
}
|
|
#endif
|
|
}
|