Skip to content

Commit b5169c9

Browse files
committed
Consider as up to date app if the current version is greater than or equal to the AppStore version
1 parent 8998758 commit b5169c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AppStoreVersion.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "AppStoreVersion"
3-
s.version = "1.0.0"
3+
s.version = "1.0.1"
44
s.summary = "An easy Swift framework to check your latest app version available on the AppStore and compare it to the installed version"
55
s.description = <<-DESC
66
An easy Swift framework to check your latest app version available on the AppStore and compare it to the installed version.

AppStoreVersion/AppStoreVersion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ open class AppStoreVersion {
112112
if let appStoreVersion = result[Keys.kAppStoreVersionKey] as? String {
113113
self.cache = result
114114
self.latestVersionAvailable = appStoreVersion
115-
if currentVersion == appStoreVersion {
115+
if currentVersion >= appStoreVersion {
116116
completion(true, nil)
117117
} else {
118118
completion(false, nil)

0 commit comments

Comments
 (0)