Skip to content

FelixLinBH/IUpgrade

Repository files navigation

IUpgrade

Version License Platform

Notify new version of enterprise app is available.

It provides:

  • Update mode ( Normal / Forec / Skip )
  • Customization alert message

How To Use

Set Plist URL

[[IUpgrade sharedInstance]setPlistUrlString:@"https://xxx.plist"];

Set Type

// Normal.
[[IUpgrade sharedInstance]setType:IUpgradeDefault];
// Forec upgrade,it will swizzling appdelegate applicationWillEnterForeground.
[[IUpgrade sharedInstance]setType:IUpgradeForec];
// User can choose skip the version.
[[IUpgrade sharedInstance]setType:IUpgradeSkip];

Set Message

####Properties####

@property (nonatomic) NSString *alertTitle;
@property (nonatomic) NSString *prefixMessage;
@property (nonatomic) NSString *suffixMessage;

####Method####

[[IUpgrade sharedInstance]setAlertTitle:@"Title" prefixMessage:@"prefix" suffixMessage:@"suffix"];

It will show message that "prefix version suffix".

Check version

After main view makeKeyAndVisible.

[[IUpgrade sharedInstance]checkVersion];

Screen shot

Editor preferences pane

Installation

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

pod "IUpgrade"

Example

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

Author

Felix.lin

License

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

About

Notify a new version of your enterprise release iOS app is available.

Resources

License

Stars

Watchers

Forks

Packages

No packages published