Bumper 0.1.0

Bumper 0.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Eddie Saenz.



Bumper 0.1.0


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.