Skip to content

thinhv/DTApplicationUpdateManager

Repository files navigation

DTApplicationUpdateManager

CI Status Version License Platform

Introduction

A simple and easy-to-use update manager which checks if there is any new version available to the AppStore

Example

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

Installation

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

pod 'DTApplicationUpdateManager'

How to use

You can call, for example:

[[DTApplicationUpdateManager sharedInstance] checkForNewAppVersionWithReminderRoutineType:DTApplicationUpdateRoutineTypeEveryWeek];

from didFinishLaunchingWithOptions or applicationWillEnterForeground or applicationDidBecomeActive in AppDelegate etc, in order to check the new version's availability. Remember to set the delegate.

The DTApplicationUpdateRoutineType is used for the reminder. If user ignores to the new version update message, the delegate method will be called after a certain amount of time which depends on the DTApplicationUpdateRoutineType. Remember that DTApplicationUpdateManager will not automatically remind its delegate about the new version until its checkForNewAppVersionWithReminderRoutineType method is called.

Pull requests

Pull request are welcomed!

Author

ducthinh2410@gmail.com

License

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

About

A simple manager which checks if there is any newer app's version available in the AppStore.

Resources

License

Stars

Watchers

Forks

Packages

No packages published