{"id":13552398,"url":"https://github.com/KevMorelli/version_tracker","last_synced_at":"2025-04-03T03:31:34.131Z","repository":{"id":53134711,"uuid":"352188234","full_name":"KevMorelli/version_tracker","owner":"KevMorelli","description":"Xamarin.Essentials VersionTracking for Flutter","archived":false,"fork":false,"pushed_at":"2024-05-03T11:34:34.000Z","size":415,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-15T06:51:39.835Z","etag":null,"topics":["dart","dart-package","flutter","flutter-package","flutter-plugin","pub"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/KevMorelli.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":"2021-03-27T22:11:33.000Z","updated_at":"2024-05-03T11:34:38.000Z","dependencies_parsed_at":"2023-01-21T04:01:39.765Z","dependency_job_id":"b5a21e9d-aedd-4f39-9e24-cc74b1c0b564","html_url":"https://github.com/KevMorelli/version_tracker","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":0.08695652173913049,"last_synced_commit":"82a690efcb46a015b9d096cdc5cb3cbdcd634e07"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevMorelli%2Fversion_tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevMorelli%2Fversion_tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevMorelli%2Fversion_tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevMorelli%2Fversion_tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevMorelli","download_url":"https://codeload.github.com/KevMorelli/version_tracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933435,"owners_count":20857048,"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":["dart","dart-package","flutter","flutter-package","flutter-plugin","pub"],"created_at":"2024-08-01T12:02:03.400Z","updated_at":"2025-04-03T03:31:29.059Z","avatar_url":"https://github.com/KevMorelli.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"[![Pub Version](https://img.shields.io/pub/v/version_tracker)](https://pub.dev/packages/version_tracker)\n[![GitHub](https://img.shields.io/github/license/KevMorelli/version_tracker)](https://github.com/KevMorelli/version_tracker/blob/main/LICENSE)\n\n# VersionTracker\n\nLocal version and build tracker plugin. Provides the ability to keep track of previous installations and easily migrate data between upgrades.\n\n## Usage\n\nCall this on the main function\n\n```dart\nvar vt = VersionTracker();\nawait vt.track();\n```\n\nYou can also set the max number for version and build history by giving a value to ``buildHistoryMaxLength`` and ``versionHistoryMaxLength`` in the track function.\n\n```dart\nvar vt = VersionTracker();\nawait vt.track(buildHistoryMaxLength: 10, versionHistoryMaxLength: 10);\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```dart\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKevMorelli%2Fversion_tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKevMorelli%2Fversion_tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKevMorelli%2Fversion_tracker/lists"}