2 writes to versionTrail
Microsoft.Maui.Essentials (2)
VersionTracking\VersionTracking.shared.cs (2)
241
versionTrail
= new(StringComparer.Ordinal)
249
versionTrail
= new(StringComparer.Ordinal)
16 references to versionTrail
Microsoft.Maui.Essentials (16)
VersionTracking\VersionTracking.shared.cs (16)
210
string LastInstalledVersion =>
versionTrail
[versionsKey]?.LastOrDefault() ?? string.Empty;
212
string LastInstalledBuild =>
versionTrail
[buildsKey]?.LastOrDefault() ?? string.Empty;
224
if (
versionTrail
!= null)
256
IsFirstLaunchForCurrentVersion = !
versionTrail
[versionsKey].Contains(CurrentVersion) || CurrentVersion != LastInstalledVersion;
260
versionTrail
[versionsKey].RemoveAll(v => v == CurrentVersion);
261
versionTrail
[versionsKey].Add(CurrentVersion);
264
IsFirstLaunchForCurrentBuild = !
versionTrail
[buildsKey].Contains(CurrentBuild) || CurrentBuild != LastInstalledBuild;
268
versionTrail
[buildsKey].RemoveAll(b => b == CurrentBuild);
269
versionTrail
[buildsKey].Add(CurrentBuild);
274
WriteHistory(versionsKey,
versionTrail
[versionsKey]);
275
WriteHistory(buildsKey,
versionTrail
[buildsKey]);
293
public string? FirstInstalledVersion =>
versionTrail
[versionsKey].FirstOrDefault();
295
public string? FirstInstalledBuild =>
versionTrail
[buildsKey].FirstOrDefault();
297
public IReadOnlyList<string> VersionHistory =>
versionTrail
[versionsKey].ToArray();
299
public IReadOnlyList<string> BuildHistory =>
versionTrail
[buildsKey].ToArray();
336
var trail =
versionTrail
[key];