diff --git a/Sources/Secretive/Controllers/JustUpdatedChecker.swift b/Sources/Secretive/Controllers/JustUpdatedChecker.swift index 4c86f68..ee0dceb 100644 --- a/Sources/Secretive/Controllers/JustUpdatedChecker.swift +++ b/Sources/Secretive/Controllers/JustUpdatedChecker.swift @@ -15,14 +15,11 @@ class JustUpdatedChecker: ObservableObject, JustUpdatedCheckerProtocol { } func check() { - let lastBuild = UserDefaults.standard.object(forKey: Constants.previousVersionUserDefaultsKey) as? String ?? "None" + let lastBuild = SettingsStore.get(key: Constants.previousVersionUserDefaultsKey) ?? "None" let currentBuild = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String - UserDefaults.standard.set(currentBuild, forKey: Constants.previousVersionUserDefaultsKey) + SettingsStore.set(key: Constants.previousVersionUserDefaultsKey, value: currentBuild) justUpdated = lastBuild != currentBuild } - - - } extension JustUpdatedChecker {