{"id":3013,"url":"https://github.com/tbaranes/VersionTrackerSwift","last_synced_at":"2025-08-06T16:32:22.047Z","repository":{"id":56481825,"uuid":"52037589","full_name":"tbaranes/VersionTrackerSwift","owner":"tbaranes","description":"Versions tracker for your iOS, macOS, and tvOS app","archived":false,"fork":false,"pushed_at":"2024-04-30T06:54:38.000Z","size":173,"stargazers_count":88,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-07T23:41:46.485Z","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/tbaranes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-18T20:48:06.000Z","updated_at":"2024-04-30T06:53:57.000Z","dependencies_parsed_at":"2024-06-21T20:18:08.600Z","dependency_job_id":"4117fd58-76a5-4188-9875-f5fdde7f6085","html_url":"https://github.com/tbaranes/VersionTrackerSwift","commit_stats":{"total_commits":65,"total_committers":6,"mean_commits":"10.833333333333334","dds":"0.19999999999999996","last_synced_commit":"fedea0c30fd804023868f4f7ff288fd4bba8aa97"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaranes%2FVersionTrackerSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaranes%2FVersionTrackerSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaranes%2FVersionTrackerSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaranes%2FVersionTrackerSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbaranes","download_url":"https://codeload.github.com/tbaranes/VersionTrackerSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923760,"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.940Z","updated_at":"2024-12-09T16:31:20.875Z","avatar_url":"https://github.com/tbaranes.png","language":"Swift","readme":"# VersionTrackerSwift\n\n![Language](https://img.shields.io/badge/language-Swift%205.10-orange.svg)\n[![Platform](https://img.shields.io/cocoapods/p/VersionTrackerSwift.svg?style=flat)](http://cocoadocs.org/docsets/VersionTrackerSwift)\n\nVersionTrackerSwift is a versions / builds tracker to know which version has been installed by a user. \n\n![](./assets/demo.png)\n\n## Usage\n\nIn your ApplicationDelegate, call the method `track` to track the current version:\n\n```swift\n// iOS / tvOS\nfunc application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -\u003e Bool {\n    VersionTracker.track()\n    return true\n}\n```\n\n```swift\n// macOS\nfunc applicationDidFinishLaunching(aNotification: NSNotification) {\n    VersionTracker.track()\n    return true        \n}\n```\n\nThen, call whenever one of the following methods to get the data you need:\n\n```swift\nVersionTracker.shared.track() \nVersionTracker.shared.isFirstLaunchEver // Bool\nVersionTracker.shared.isFirstVersionLaunch // Bool\nVersionTracker.shared.isFirstBuildLaunch // Bool\nVersionTracker.shared.versionHistory // [String]\nVersionTracker.shared.buildHistory // [String]\n\nVersionTracker.currentVersion // String\nVersionTracker.currentBuild // String\n```\n\nCheck out the examples and play with the version / build / number to have a concrete example.\n\n### How it works?\n\nEach time you call the method `track`, the version and build are stored in `NSUserDefaults` if a new version / build is detected. Then, you can access to any information from the tracker.\n\nThe version and build number are the information you specify in your app's Info.plist.\n\n### Manual\n\nJust drag the `Source/*.swift` files into your project.\n \n## Contribution\n\n- If you found a **bug**, open an **issue**\n- If you have a **feature request**, open an **issue**\n- If you want to **contribute**, submit a **pull request**\n\n## Licence\n\nVersionTrackerSwift is available under the MIT license. See the LICENSE file for more info.\n\n","funding_links":[],"categories":["Utility","Libs","Version Manager [🔝](#readme)","Uncategorized"],"sub_categories":["Web View","Version Manager","Other free courses","Utility","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbaranes%2FVersionTrackerSwift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbaranes%2FVersionTrackerSwift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbaranes%2FVersionTrackerSwift/lists"}