Skip to content

wajeeh-hassan/swift-app-update-checker

Repository files navigation

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, wajeeh661@gmail.com

License

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

About

A Library for iOS developers to check newer version of app from the app store

Resources

License

Stars

Watchers

Forks

Packages

No packages published