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.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Reborn is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Reborn'
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!")
}
}
vbicer, vlknbcr@gmail.com
Reborn is available under the MIT license. See the LICENSE file for more info.