mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-21 23:22:08 +02:00
Feature/2854 version management
This commit is contained in:
@@ -91,7 +91,7 @@ import Foundation
|
||||
}
|
||||
|
||||
extension ValidAppVersionsDefaultService : ValidAppVersionsService {
|
||||
|
||||
|
||||
@objc func isCurrentAppVersionOutdated() -> Bool {
|
||||
return currentAppVersionState() == .outdated || currentAppVersionState() == .deprecated
|
||||
}
|
||||
@@ -100,4 +100,12 @@ extension ValidAppVersionsDefaultService : ValidAppVersionsService {
|
||||
return currentAppVersionState() == .deprecated
|
||||
}
|
||||
|
||||
@objc func wasOutdatedAlertShown() -> Bool {
|
||||
return UserDefaults.standard.bool(forKey: "BWIOutdatedAlertShown")
|
||||
}
|
||||
|
||||
@objc func setOutdatedAlertShown(_ shown: Bool) {
|
||||
UserDefaults.standard.set(shown, forKey: "BWIOutdatedAlertShown")
|
||||
UserDefaults.standard.synchronize()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user