Bumper 0.1.0

Bumper 0.1.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2017年10月
SwiftSwift 版本4.0
SPM支持 SPM

Eddie Saenz 维护。



Bumper 0.1.0


概述

Bumper 会检测 Info.plist 中存储的 CFBundleShortVersionString 键的版本号提升。当 Bumper 检测到版本提升时,会在您想要和需要的位置调用您的代码。Bumper 的完成块只会在每个应用程序升级时调用一次。Bumper ideal for "New Features" views on app upgrades.

Apple's Version Numbering Conventions 是检测版本提升的规则。

示例

要运行示例项目,首先从(repo)克隆仓库,然后在 Example 目录中运行 pod install。运行应用一次,在您的模拟器或设备上安装示例应用。然后在 Bumper_Example 目标的 General 设置部分中,增加版本号。再次运行应用,并观察 Bumper 的执行。

安装

Bumper 通过 CocoaPods 提供。要安装,只需将以下行添加到您的 Podfile 中

pod 'Bumper'

使用

设置

Bumper.launch() 放入您的 AppDelegate 中

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

    Bumper.launch()
    ...
}

执行

Bumper.tryToExecute {
    ...
}

贡献者

Eddie Saenz (@eddies5)

许可证

Bumper 在 MIT 许可证下可用。有关更多信息,请参阅LICENSE 文件。