Revert "Use keychain instead of UserDefaults in JustUpdatedChecker.swift"

This reverts commit ae8a21a1bf7f9e2d04fcb83c4543995db0111325.
This commit is contained in:
Paul Heidekrüger 2024-04-05 10:31:33 +02:00
parent e29dd20722
commit 52f3fea9a8

View File

@ -15,11 +15,14 @@ class JustUpdatedChecker: ObservableObject, JustUpdatedCheckerProtocol {
} }
func check() { func check() {
let lastBuild = SettingsStore.get(key: Constants.previousVersionUserDefaultsKey) ?? "None" let lastBuild = UserDefaults.standard.object(forKey: Constants.previousVersionUserDefaultsKey) as? String ?? "None"
let currentBuild = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String let currentBuild = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String
SettingsStore.set(key: Constants.previousVersionUserDefaultsKey, value: currentBuild) UserDefaults.standard.set(currentBuild, forKey: Constants.previousVersionUserDefaultsKey)
justUpdated = lastBuild != currentBuild justUpdated = lastBuild != currentBuild
} }
} }
extension JustUpdatedChecker { extension JustUpdatedChecker {