Skip to content

Commit

Permalink
Consider as up to date app if the current version is greater than or …
Browse files Browse the repository at this point in the history
…equal to the AppStore version
  • Loading branch information
iMac0de committed Nov 22, 2018
1 parent 8998758 commit b5169c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AppStoreVersion.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "AppStoreVersion"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "An easy Swift framework to check your latest app version available on the AppStore and compare it to the installed version"
s.description = <<-DESC
An easy Swift framework to check your latest app version available on the AppStore and compare it to the installed version.
Expand Down
2 changes: 1 addition & 1 deletion AppStoreVersion/AppStoreVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ open class AppStoreVersion {
if let appStoreVersion = result[Keys.kAppStoreVersionKey] as? String {
self.cache = result
self.latestVersionAvailable = appStoreVersion
if currentVersion == appStoreVersion {
if currentVersion >= appStoreVersion {
completion(true, nil)
} else {
completion(false, nil)
Expand Down

0 comments on commit b5169c9

Please sign in to comment.