Merge branch ‘release/0.5.0’
Simple and lightweight iOS App Version Tracking written in Swift
I made this for personal use, but feel free to use it or contribute. For more examples check out Sources and Tests.
Dead simple app version tracking. Add one line to your code and you’re all set.
You should just initialize AEAppVersion from your AppDelegate’s didFinishLaunchingWithOptions: like this:
AEAppVersion
didFinishLaunchingWithOptions:
AEAppVersion.launch()
Anytime later you can check version state like this:
switch AEAppVersion.shared.state { case .new: return "Clean Install" case .equal: return "Not Changed" case .update(let previousVersion): return "Update from: \(previousVersion)" case .rollback(let previousVersion): return "Rollback from: \(previousVersion)" }
Hint: You may use helpers for app version and build number like this:
let version = AEAppVersion.version let build = AEAppVersion.build
You can also check out the example project and unit tests for more information.
Swift Package Manager:
.package(url: "https://github.com/tadija/AEAppVersion.git", from: "0.5.0")
Carthage:
github "tadija/AEAppVersion"
CocoaPods:
pod 'AEAppVersion'
AEAppVersion is released under the MIT license. See LICENSE for details.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
AEAppVersion
Simple and lightweight iOS App Version Tracking written in Swift
Index
Intro
Dead simple app version tracking. Add one line to your code and you’re all set.
Features
Usage
You should just initialize
AEAppVersion
from your AppDelegate’sdidFinishLaunchingWithOptions:
like this:Anytime later you can check version state like this:
Hint: You may use helpers for app version and build number like this:
You can also check out the example project and unit tests for more information.
Installation
Swift Package Manager:
Carthage:
CocoaPods:
License
AEAppVersion is released under the MIT license. See LICENSE for details.