Skip to content

volkanbicer/Reborn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.