mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-22 13:37:07 +00:00
Revert "Use keychain instead of UserDefaults in JustUpdatedChecker.swift"
This reverts commit ae8a21a1bf7f9e2d04fcb83c4543995db0111325.
This commit is contained in:
parent
e29dd20722
commit
52f3fea9a8
@ -15,11 +15,14 @@ class JustUpdatedChecker: ObservableObject, JustUpdatedCheckerProtocol {
|
||||
}
|
||||
|
||||
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
|
||||
SettingsStore.set(key: Constants.previousVersionUserDefaultsKey, value: currentBuild)
|
||||
UserDefaults.standard.set(currentBuild, forKey: Constants.previousVersionUserDefaultsKey)
|
||||
justUpdated = lastBuild != currentBuild
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
extension JustUpdatedChecker {
|
||||
|
Loading…
Reference in New Issue
Block a user