{"id":3006,"url":"https://github.com/eure/AppVersionMonitor","last_synced_at":"2025-08-06T16:32:23.040Z","repository":{"id":56031891,"uuid":"48053004","full_name":"eure/AppVersionMonitor","owner":"eure","description":"Monitor iOS app version easily.","archived":false,"fork":false,"pushed_at":"2022-02-01T15:02:23.000Z","size":51,"stargazers_count":260,"open_issues_count":1,"forks_count":20,"subscribers_count":87,"default_branch":"master","last_synced_at":"2024-11-12T06:05:56.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-15T15:51:39.000Z","updated_at":"2024-10-12T22:10:58.000Z","dependencies_parsed_at":"2022-08-15T11:50:24.945Z","dependency_job_id":null,"html_url":"https://github.com/eure/AppVersionMonitor","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eure%2FAppVersionMonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eure%2FAppVersionMonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eure%2FAppVersionMonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eure%2FAppVersionMonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eure","download_url":"https://codeload.github.com/eure/AppVersionMonitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923763,"owners_count":17992574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:16:28.760Z","updated_at":"2024-12-09T16:31:22.217Z","avatar_url":"https://github.com/eure.png","language":"Swift","readme":"# AppVersionMonitor\n\n[![CI Status](http://img.shields.io/travis/muukii/AppVersionMonitor.svg?style=flat)](https://travis-ci.org/muukii/AppVersionMonitor)\n[![Version](https://img.shields.io/cocoapods/v/AppVersionMonitor.svg?style=flat)](http://cocoapods.org/pods/AppVersionMonitor)\n[![License](https://img.shields.io/cocoapods/l/AppVersionMonitor.svg?style=flat)](http://cocoapods.org/pods/AppVersionMonitor)\n[![Platform](https://img.shields.io/cocoapods/p/AppVersionMonitor.svg?style=flat)](http://cocoapods.org/pods/AppVersionMonitor)\n\n**Monitor iOS app version easily.**\n\nYou can get previous version and installation history.\n\n## Usage\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n- iOS8.0 +\n- [Semantic Versioning](http://semver.org/)\n\n## Installation\n\nAppVersionMonitor is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"AppVersionMonitor\"\n```\n\n## Usage\n\n#### Setup\n\n```swift\n\n// AppDelegate\n\nfunc applicationDidFinishLaunching(application: UIApplication) {\n\n    AppVersionMonitor.sharedMonitor.startup()\n}\n\n```\n\n#### Get MarketingVersion (CFBundleShortVersionString)\n```\nlet currentVersion: AppVersion = AppVersion.marketingVersion\nlet versionString: String = AppVersion.marketingVersion.versionString // \"1.2.3\"\n```\n\n#### Get installed version\n\n```swift\nlet installedVersions: [AppVersion] = AppVersionMonitor.sharedMonitor.installedVersions\n```\n\n#### Compare Version\n\n```swift\nAppVersion.marketingVersion \u003e AppVersion(\"1.2.3\")\nAppVersion(\"1.2.3\") \u003c AppVersion(\"3.2.1\")\nAppVersion(\"1.2.3\") \u003c \"3.2.1\"\n```\n\n#### You can check app version status easily.\n```swift\nswitch AppVersionMonitor.sharedMonitor.state {\ncase .Installed:\n\n// Do something when app installed.\n// Happy! 🍻\n// ex. Start tutorial.\n\ncase .NotChanged:\n\n// Do something when version not changed.\n// Peace 😌\n// Nothing to do?\n\ncase .Upgraded(let previousVersion: AppVersion):\n\n// Do something when version upgraded.\n// Yeah! 😝\n// ex. Migrate App Data.\n\ncase .Downgraded(let previousVersion: AppVersion):\n\n// Do something when version downgraded. (Impossible normally)\n// What happened? 😵\n// ex. Purge App Data.\n\n}\n```\n\n## Author\n\nmuukii \u003cm@muukii.me\u003e\n\n## License\n\nAppVersionMonitor is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["Utility","Libs","Swift","Version Manager [🔝](#readme)"],"sub_categories":["Web View","Version Manager","Other free courses","Utility"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feure%2FAppVersionMonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feure%2FAppVersionMonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feure%2FAppVersionMonitor/lists"}