clear cache - refactor to use version numbers
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
4270b609ed
commit
c2768a4864
@ -25,6 +25,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|||||||
let navigationController = UINavigationController(rootViewController: employeeListVC)
|
let navigationController = UINavigationController(rootViewController: employeeListVC)
|
||||||
window.rootViewController = navigationController
|
window.rootViewController = navigationController
|
||||||
|
|
||||||
|
let appVersion = 1.5// get app version
|
||||||
|
let currentVersion = 1.0 //cached version
|
||||||
|
|
||||||
|
if appVersion != currentVersion {
|
||||||
|
EmployeeCacheService.shared.clear()
|
||||||
|
}
|
||||||
|
|
||||||
// Set the window to the scene
|
// Set the window to the scene
|
||||||
self.window = window
|
self.window = window
|
||||||
window.makeKeyAndVisible()
|
window.makeKeyAndVisible()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user