From b5169c98dbeeae20ac0fa83e5c637cd1eb5a0b7a Mon Sep 17 00:00:00 2001 From: iMac0de Date: Thu, 22 Nov 2018 16:28:05 +0100 Subject: [PATCH] Consider as up to date app if the current version is greater than or equal to the AppStore version --- AppStoreVersion.podspec | 2 +- AppStoreVersion/AppStoreVersion.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AppStoreVersion.podspec b/AppStoreVersion.podspec index 1865d91..f559c05 100644 --- a/AppStoreVersion.podspec +++ b/AppStoreVersion.podspec @@ -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. diff --git a/AppStoreVersion/AppStoreVersion.swift b/AppStoreVersion/AppStoreVersion.swift index f86ac2b..ac6aa9e 100644 --- a/AppStoreVersion/AppStoreVersion.swift +++ b/AppStoreVersion/AppStoreVersion.swift @@ -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)