Popularity
0.6
Growing
Activity
0.0
Stable
12
4
2

Code Quality Rank: L5
Programming language: Swift
License: MIT License
Tags: Utility    
Latest version: v0.5.0

AEAppVersion alternatives and similar libraries

Based on the "Utility" category.
Alternatively, view AEAppVersion alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of AEAppVersion or a related project?

Add another 'Utility' Library

README

Swift 5.1 Platforms iOS CocoaPods Carthage SPM [License MIT](LICENSE)

AEAppVersion

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](Sources) and [Tests](Tests).

Index

Intro

Dead simple app version tracking. Add one line to your code and you're all set.

Features

  • Check app version state via enum property
  • Get app version information via static properties
  • Covered with unit tests
  • Covered with docs

Usage

You should just initialize AEAppVersion from your AppDelegate's didFinishLaunchingWithOptions: like this:

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.

Installation

License

AEAppVersion is released under the MIT license. See [LICENSE](LICENSE) for details.


*Note that all licence references and agreements mentioned in the AEAppVersion README section above are relevant to that project's source code only.