{"id":19751996,"url":"https://github.com/colbylwilliams/versiontrackingplugin","last_synced_at":"2025-04-30T10:31:42.859Z","repository":{"id":60774120,"uuid":"52119456","full_name":"colbylwilliams/VersionTrackingPlugin","owner":"colbylwilliams","description":"Version Tracking Plugin for Xamarin and Windows","archived":false,"fork":false,"pushed_at":"2017-11-03T19:11:44.000Z","size":472,"stargazers_count":62,"open_issues_count":2,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-06T22:45:52.935Z","etag":null,"topics":["android","ios","nuget","versioning","windows","xamarin","xamarin-android","xamarin-forms","xamarin-ios","xamarin-plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","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/colbylwilliams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-19T22:02:03.000Z","updated_at":"2022-02-23T21:01:35.000Z","dependencies_parsed_at":"2022-10-04T15:31:35.828Z","dependency_job_id":null,"html_url":"https://github.com/colbylwilliams/VersionTrackingPlugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2FVersionTrackingPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2FVersionTrackingPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2FVersionTrackingPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2FVersionTrackingPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colbylwilliams","download_url":"https://codeload.github.com/colbylwilliams/VersionTrackingPlugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224208212,"owners_count":17273674,"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":["android","ios","nuget","versioning","windows","xamarin","xamarin-android","xamarin-forms","xamarin-ios","xamarin-plugin"],"created_at":"2024-11-12T02:47:22.476Z","updated_at":"2024-11-12T02:47:22.966Z","avatar_url":"https://github.com/colbylwilliams.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Version Tracking Plugin for Xamarin and Windows ![NuGet](https://img.shields.io/nuget/v/Plugin.VersionTracking.svg?label=NuGet)\n\nTrack which versions of your Xamarin.iOS, Xamarin.Mac, Xamarin.Android, or Windows app a user has previously installed.  \n\n## Setup\n* Available on NuGet: https://www.nuget.org/packages/Plugin.VersionTracking/\n* Install into your PCL/.NET Standard project and Client projects.  \n_(fuctionality is exposed through a built-in Singleton, no dependency service required)_\n\n\n##### Platform Support\n\n|Platform|Version|\n| ------------------- | :------------------: |\n|Xamarin.iOS|iOS 7+|\n|Xamarin.Android|API 10+|\n|Windows 10 UWP|10+|\n|Xamarin.Mac|All|\n\n**_Supports both classic Xamarin.iOS / Xamarin.Android and Xamarin.Forms_**\n\n\n## API Usage\n\nCall this on each app launch inside `DidFinishLaunching` (Xamarin.iOS), `FinishedLaunching` (Xamarin.Mac), or the MainActivity's `OnCreate` (Xamarin.Android)\n\n```C#\nCrossVersionTracking.Current.Track ();\n```\n\nThen call these whenever you want (in these examples the user has launched a bunch of previous versions, and this is the first time he's launched the new version 1.0.11):\n\n```C#\nvar vt = CrossVersionTracking.Current;\n\nvt.IsFirstLaunchEver;        // false\nvt.IsFirstLaunchForVersion;  // true\nvt.IsFirstLaunchForBuild;    // true\n\nvt.CurrentVersion;           // 1.0.11\nvt.PreviousVersion;          // 1.0.10\nvt.FirstInstalledVersion;    // 1.0.0\nvt.VersionHistory;           // [ 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.10, 1.0.11 ]\n\nvt.CurrentBuild;             // 18\nvt.PreviousBuild;            // 15\nvt.FirstInstalledBuild;      // 1\nvt.BuildHistory;             // [ 1, 2, 3, 4, 5, 8, 9, 10, 11, 13, 15, 18 ]\n ```\n\nOr set up actions to be called on the first lauch of a specific version or build:\n\n```C#\nvar vt = CrossVersionTracking.Current;\n\nvt.OnFirstLaunchOfBuild (\"18\", () =\u003e Console.WriteLine (\"First time Build 18 launched!\"));\nvt.OnFirstLaunchOfVersion (\"1.0.11\", () =\u003e Console.WriteLine (\"First time Version 1.0.11 launched!\"));\n```\n\n\n## Contributors\n* [Colby Williams](https://github.com/colbylwilliams)\n* _Originally inspired by [GBVersionTracking](https://github.com/lmirosevic/GBVersionTracking)_\n\n\n#### License\nThe MIT License (MIT)\nCopyright © 2017 Colby Williams\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolbylwilliams%2Fversiontrackingplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolbylwilliams%2Fversiontrackingplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolbylwilliams%2Fversiontrackingplugin/lists"}