프로젝트
GitHub에서 보기
eure/AppVersionMonitor
소개
Monitor iOS app version easily.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAppVersionMonitor
Monitor iOS app version easily.
You can get previous version and installation history.
Usage
To run the example project, clone the repo, and run pod install from the Example directory first.
Requirements
- iOS8.0 +
- Semantic Versioning
Installation
AppVersionMonitor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AppVersionMonitor"
Usage
Setup
// AppDelegate
func applicationDidFinishLaunching(application: UIApplication) {
AppVersionMonitor.sharedMonitor.startup()
}
Get MarketingVersion (CFBundleShortVersionString)
let currentVersion: AppVersion = AppVersion.marketingVersion
let versionString: String = AppVersion.marketingVersion.versionString // "1.2.3"
Get installed version
let installedVersions: [AppVersion] = AppVersionMonitor.sharedMonitor.installedVersions
Compare Version
AppVersion.marketingVersion > AppVersion("1.2.3")
AppVersion("1.2.3") < AppVersion("3.2.1")
AppVersion("1.2.3") < "3.2.1"
You can check app version status easily.
switch AppVersionMonitor.sharedMonitor.state {
case .Installed:
// Do something when app installed.
// Happy! 🍻
// ex. Start tutorial.
case .NotChanged:
// Do something when version not changed.
// Peace 😌
// Nothing to do?
case .Upgraded(let previousVersion: AppVersion):
// Do something when version upgraded.
// Yeah! 😝
// ex. Migrate App Data.
case .Downgraded(let previousVersion: AppVersion):
// Do something when version downgraded. (Impossible normally)
// What happened? 😵
// ex. Purge App Data.
}
Author
muukii [email protected]
License
AppVersionMonitor is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…