Skip to content

Commit

Permalink
Fix an issue which was not caching the data anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
iMac0de committed Aug 11, 2020
1 parent 3532ba5 commit 4c262ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions AppStoreVersion/AppStoreVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import os

open class AppStoreVersion {

Expand Down Expand Up @@ -153,6 +154,9 @@ open class AppStoreVersion {
return
}

self.cache = result
self.latestVersionAvailable = appStoreVersion

if currentVersion >= appStoreVersion {
completion(true, nil)
} else {
Expand Down
2 changes: 1 addition & 1 deletion AppStoreVersion/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
*/

"AppStoreVersion.NewVersionTitle" = "New Version Available!";
"AppStoreVersion.NewVersionMessage" = "The version %@ is available on the AppStore.";
"AppStoreVersion.NewVersionMessage" = "The version %@ is available on the App Store.";
"AppStoreVersion.Download" = "Download";
"AppStoreVersion.Later" = "Later";
2 changes: 1 addition & 1 deletion AppStoreVersion/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
*/

"AppStoreVersion.NewVersionTitle" = "Nouvelle version disponible !";
"AppStoreVersion.NewVersionMessage" = "La version %@ est disponible sur l'AppStore.";
"AppStoreVersion.NewVersionMessage" = "La version %@ est disponible sur l'App Store.";
"AppStoreVersion.Download" = "Télécharger";
"AppStoreVersion.Later" = "Plus tard";

0 comments on commit 4c262ac

Please sign in to comment.