目录
目录README.md

Reborn

CI Status Version License Platform Language Readme Score

About

Reborn checks a user’s currently installed version of your iOS app against the version that is currently configured.

If a both versions match and if it’s the first time then fire and event to inform configured version installed.

Example

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

Installation

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

pod 'Reborn'

Usage

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.
    setupReborn()
    return true
}

func setupReborn(){
    // Alert will be fired when the first time 1.3 version installed
    let reborn = Reborn(at: "1.3")
    reborn.isTest = true
    reborn.delegate = self
    reborn.check()
}

extension AppDelegate: RebornDelegate{
    func rebornDidComplete() {
        print("Reborn did triggered!")
    }
}

Author

vbicer, vlknbcr@gmail.com

License

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

关于
48.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号