Files
Chronos/Directory.Build.props
T
Claude ec297914db fix(app): offer the usage counts consent only in builds with TitanoAdsEnabled
RF-3: the anonymous usage counts checkbox (Welcome and Settings › General) promised a
daily ping that does not exist; BRIEF §21 puts that consent inside monetization, which
ships disabled until the human flips TitanoAdsEnabled=true. Directory.Build.props now
defines the property (default false) and stamps it into every assembly as metadata;
ProductFeatures.AdsEnabled reads it, and both checkboxes and the Settings search
keyword follow it. The unused Shell.Welcome.Consent sentence is removed from every
culture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 09:30:42 +00:00

58 lines
2.7 KiB
XML

<Project>
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<TitanoVersion Condition="'$(TitanoVersion)' == ''">0.1.0</TitanoVersion>
<Version>$(TitanoVersion)</Version>
<AssemblyVersion>$([System.Text.RegularExpressions.Regex]::Match($(TitanoVersion), '^\d+\.\d+\.\d+').Value).0</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<InformationalVersion>$(TitanoVersion)</InformationalVersion>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Product>Titano</Product>
<Company>Titano</Company>
<Copyright>© Titano</Copyright>
<NeutralLanguage>en</NeutralLanguage>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<Deterministic>true</Deterministic>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<InvariantGlobalization>false</InvariantGlobalization>
<SatelliteResourceLanguages>en;it;de;fr;es;pt-BR;pt-PT;nl;pl;cs;sk;hu;ro;sv;da;nb;fi;ru;uk;tr;el;bg;hr;sl;lt;lv;et;ja;zh-Hans;zh-Hant;ko;ar;he;hi;id;ms;vi;th</SatelliteResourceLanguages>
<!-- Lets Linux build the Windows projects (compile check); runtime remains Windows-only. -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<!-- No package feeds are used; restore only fetches SDK targeting/runtime packs. -->
<NuGetAudit>false</NuGetAudit>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<IsPackable>false</IsPackable>
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup>
<!-- Public repository that hosts releases, update checks and the Unraid template (BRIEF §19.4). -->
<TitanoReleasesRepo Condition="'$(TitanoReleasesRepo)' == ''">alby96/titano-releases</TitanoReleasesRepo>
</PropertyGroup>
<ItemGroup>
<AssemblyMetadata Include="TitanoReleasesRepo" Value="$(TitanoReleasesRepo)" />
</ItemGroup>
<PropertyGroup>
<!-- Monetization (BRIEF §21) ships disabled; the human's own builds pass -p:TitanoAdsEnabled=true. -->
<TitanoAdsEnabled Condition="'$(TitanoAdsEnabled)' != 'true'">false</TitanoAdsEnabled>
</PropertyGroup>
<ItemGroup>
<AssemblyMetadata Include="TitanoAdsEnabled" Value="$(TitanoAdsEnabled)" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<Optimize>true</Optimize>
</PropertyGroup>
</Project>