swift-app-update-checker

A very simple solution check new version of your application is available on store or not.

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

swift-app-update-checker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'swift-app-update-checker'

Usage

import swift_app_update_checker

   
   // A simple and easy method to check vew version is available or not on app store 
   
    
        DispatchQueue.main.async {
            AppUpdateChecker.shared.isUpdateAvailable{ isAvailable, localVersion, storeVersion  in
                
                print("update available : \(isAvailable)")
                print("local app version : \(localVersion)")
                print("store app version : \(storeVersion)")
                
                if isAvailable{
                    self.showAppUpdateAlert(Version: storeVersion, Force: false, AppURL: "Your app url on store")
                }
            }
        }
   

   
   // if you want to use your custom dialouge ,  you can call this method to open app store
   
     AppUpdateChecker.shared.openAppStore(AppURL: "Your app url on store")

Author

wajeehulhassan, [email protected]

License

swift-app-update-checker is available under the MIT license. See the LICENSE file for more info.

GitHub

View Github