AppUpdateChecker 0.1.1

AppUpdateChecker 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by asashin227.



  • By
  • asashin227




Bundle identifier and Bundle versions string, short in Info.plist is used in AppUpdateChecker.

And using iTunes API

Usage

AppUpdateChecker().conferm() {
    result in
    switch result {
    case .existUpdate(let version, let storeScheme):
        // For example, Show UIAlertController here.
        print("Now available version: \(version)")
        print("DL from hare: \(storeScheme.absoluteString)")
    case .noUpdate:
        print("Current version is newest")
    case .error(let error):
        print("error: \(error)")
    }
}

Example

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

Installation

AppUpdateChecker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'AppUpdateChecker'

License

AppUpdateChecker is available under the MIT license. See the LICENSE file for more info.