eddies5 / Bumper

🚘 Easy version number bump detection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bumper

Version License

Overview

Bumper detects the version number stored in the Info.plist under the CFBundleShortVersionString key for increases. Bumper calls your code when and where you want when it detects a version bump. Bumper's completion block will only be called once per app upgrade. Bumper's great for "New Features" views on app upgrades.

Apple's Version Numbering Conventions are the rules followed to detect version bumps.

Example

To run the example project, clone the repo, and run pod install from the Example directory first. Run the app once to install the example app on your simulator or device. Then in the General settings section of the Bumper_Example target, increase the Version number. Run the app again and see Bumper execute.

Installation

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

pod 'Bumper'

Usage

Setup

Place Bumper.launch() in your AppDelegate:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    Bumper.launch()
    ...
}

Execution

Bumper.tryToExecute {
    ...
}

Contributors

Eddie Saenz (@eddies5)

License

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

About

🚘 Easy version number bump detection.

License:MIT License


Languages

Language:Swift 84.6%Language:Ruby 15.4%