The owner does not want Chronos to send data about its use, and nothing ever sent the counts the consent promised. The first-run checkbox, the Settings > General row, the AnonymousUsageCounts setting and its three strings in every culture are gone; a settings file that still carries the member loads and is saved without it. BRIEF §21, the EULA and the Welcome mockup now say Chronos sends nothing about its use; the diagnostics bundle stays, saved only locally. Refs #30 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
748 B
C#
18 lines
748 B
C#
using System.Reflection;
|
|
|
|
namespace Chronos.App.Infrastructure;
|
|
|
|
/// <summary>Features a build switches on through MSBuild properties (Directory.Build.props), read from the assembly metadata.</summary>
|
|
public static class ProductFeatures
|
|
{
|
|
/// <summary>
|
|
/// Monetization (BRIEF §21: ads, the licence) ships disabled until a build sets
|
|
/// <c>ChronosAdsEnabled=true</c>; until then nothing of it shows.
|
|
/// </summary>
|
|
public static bool AdsEnabled { get; } = Flag("ChronosAdsEnabled");
|
|
|
|
private static bool Flag(string key) =>
|
|
typeof(ProductFeatures).Assembly.GetCustomAttributes<AssemblyMetadataAttribute>().FirstOrDefault(a => a.Key == key)?.Value is { } value
|
|
&& bool.TryParse(value, out var on) && on;
|
|
}
|