VersionUpManager

CI Status Version License Platform

Example

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

##import head file

#import <VersionUpManager/VersionUpManager.h>

##Use this when app’s version number has changed

 [[VersionUpManager sharedManager] runVersionUpdateProcessIfNeedsWith:^(NSString *oldVer, NSString *newVer) {
        NSLog(@"oldVer: %@, newVer:%@",oldVer, newVer);
    }];

##Use this with your custom token

[[VersionUpManager sharedManager] runOnceWithToken:@"AnyToken" onProcessBlock:^(NSString *oldVer, NSString *newVer) {
        NSLog(@"Only run once with token: AnyToken");
    }];

Requirements

Installation

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

pod "VersionUpManager"

Author

kmk, 44663768@163.com

License

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