AppCenter to AppInsights migration. (#562)

* Remove AppCenter usage and libraries.

* Remove redundant pacakges and add the app insights sink.

* Diagnostic id support and manipulating telemetries.

* Handling of appdomain unhandled exceptions.

* Remove unused package identity package from mail project.

* Fixing printing.
This commit is contained in:
Burak Kaan Köse
2025-02-16 01:44:41 +01:00
committed by GitHub
parent f0e513bf0d
commit c1336428dc
27 changed files with 160 additions and 134 deletions

View File

@@ -31,8 +31,6 @@ namespace Wino
{
public sealed partial class App : WinoApplication, IRecipient<NewMailSynchronizationRequested>
{
public override string AppCenterKey { get; } = "90deb1d0-a77f-47d0-8a6b-7eaf111c6b72";
private BackgroundTaskDeferral connectionBackgroundTaskDeferral;
private BackgroundTaskDeferral toastActionBackgroundTaskDeferral;

View File

@@ -139,6 +139,31 @@
<ToggleSwitch IsOn="{x:Bind ViewModel.PreferencesService.IsLoggingEnabled, Mode=TwoWay}" />
</StackPanel>
</controls:SettingsCard>
<controls:SettingsCard
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
ContentAlignment="Vertical"
Description="{x:Bind domain:Translator.SettingsDiagnostics_DiagnosticId_Description}"
Header="{x:Bind domain:Translator.SettingsDiagnostics_DiagnosticId_Title}">
<StackPanel Orientation="Horizontal" Spacing="16">
<Button
Grid.Column="1"
HorizontalAlignment="Right"
Command="{x:Bind ViewModel.CopyDiagnosticIdCommand}">
<PathIcon
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="F1 M 10.556641 15 C 10.146484 15 9.755859 14.916992 9.384766 14.750977 C 9.013672 14.584961 8.689778 14.363607 8.413086 14.086914 C 8.136393 13.810222 7.915039 13.486328 7.749023 13.115234 C 7.583007 12.744141 7.5 12.353516 7.5 11.943359 L 7.5 4.306641 C 7.5 3.896484 7.583007 3.505859 7.749023 3.134766 C 7.915039 2.763672 8.136393 2.439779 8.413086 2.163086 C 8.689778 1.886395 9.013672 1.665039 9.384766 1.499023 C 9.755859 1.333008 10.146484 1.25 10.556641 1.25 L 15.693359 1.25 C 16.103516 1.25 16.494141 1.333008 16.865234 1.499023 C 17.236328 1.665039 17.560221 1.886395 17.836914 2.163086 C 18.113605 2.439779 18.334961 2.763672 18.500977 3.134766 C 18.666992 3.505859 18.75 3.896484 18.75 4.306641 L 18.75 11.943359 C 18.75 12.353516 18.666992 12.744141 18.500977 13.115234 C 18.334961 13.486328 18.113605 13.810222 17.836914 14.086914 C 17.560221 14.363607 17.236328 14.584961 16.865234 14.750977 C 16.494141 14.916992 16.103516 15 15.693359 15 Z M 15.625 13.75 C 15.878906 13.75 16.119791 13.701172 16.347656 13.603516 C 16.57552 13.505859 16.775715 13.370769 16.948242 13.198242 C 17.120768 13.025717 17.255859 12.825521 17.353516 12.597656 C 17.451172 12.369792 17.5 12.128906 17.5 11.875 L 17.5 4.375 C 17.5 4.121094 17.451172 3.880209 17.353516 3.652344 C 17.255859 3.42448 17.120768 3.224285 16.948242 3.051758 C 16.775715 2.879232 16.57552 2.744141 16.347656 2.646484 C 16.119791 2.548828 15.878906 2.5 15.625 2.5 L 10.625 2.5 C 10.371094 2.5 10.130208 2.548828 9.902344 2.646484 C 9.674479 2.744141 9.474283 2.879232 9.301758 3.051758 C 9.129231 3.224285 8.994141 3.42448 8.896484 3.652344 C 8.798828 3.880209 8.75 4.121094 8.75 4.375 L 8.75 11.875 C 8.75 12.128906 8.798828 12.369792 8.896484 12.597656 C 8.994141 12.825521 9.129231 13.025717 9.301758 13.198242 C 9.474283 13.370769 9.674479 13.505859 9.902344 13.603516 C 10.130208 13.701172 10.371094 13.75 10.625 13.75 Z M 4.306641 18.75 C 3.896484 18.75 3.505859 18.666992 3.134766 18.500977 C 2.763672 18.334961 2.439779 18.113607 2.163086 17.836914 C 1.886393 17.560221 1.665039 17.236328 1.499023 16.865234 C 1.333008 16.494141 1.25 16.103516 1.25 15.693359 L 1.25 8.056641 C 1.25 7.646484 1.333008 7.255859 1.499023 6.884766 C 1.665039 6.513672 1.886393 6.189779 2.163086 5.913086 C 2.439779 5.636395 2.763672 5.41504 3.134766 5.249023 C 3.505859 5.083009 3.896484 5.000001 4.306641 5 L 6.25 5 L 6.25 6.25 L 4.375 6.25 C 4.121094 6.25 3.880208 6.298828 3.652344 6.396484 C 3.424479 6.494141 3.224284 6.629232 3.051758 6.801758 C 2.879232 6.974284 2.744141 7.174479 2.646484 7.402344 C 2.548828 7.630209 2.5 7.871094 2.5 8.125 L 2.5 15.625 C 2.5 15.878906 2.548828 16.119791 2.646484 16.347656 C 2.744141 16.575521 2.879232 16.775717 3.051758 16.948242 C 3.224284 17.120768 3.424479 17.255859 3.652344 17.353516 C 3.880208 17.451172 4.121094 17.5 4.375 17.5 L 9.375 17.5 C 9.576822 17.5 9.76888 17.470703 9.951172 17.412109 C 10.133463 17.353516 10.302734 17.268881 10.458984 17.158203 C 10.615234 17.047525 10.751953 16.915689 10.869141 16.762695 C 10.986328 16.609701 11.077474 16.438803 11.142578 16.25 L 12.441406 16.25 C 12.369791 16.608072 12.237955 16.940104 12.045898 17.246094 C 11.853841 17.552084 11.621094 17.815756 11.347656 18.037109 C 11.074219 18.258463 10.768229 18.432617 10.429688 18.55957 C 10.091146 18.686523 9.739583 18.75 9.375 18.75 Z " />
</Button>
<TextBlock
VerticalAlignment="Center"
FontWeight="Bold"
Foreground="{StaticResource DiagnosticIdCopyBrush}"
IsTextSelectionEnabled="True"
Text="{x:Bind ViewModel.PreferencesService.DiagnosticId}" />
</StackPanel>
</controls:SettingsCard>
</controls:SettingsExpander.Items>
</controls:SettingsExpander>
@@ -148,3 +173,4 @@
</StackPanel>
</ScrollViewer>
</abstract:AboutPageAbstract>

View File

@@ -11,7 +11,6 @@
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<DisableRuntimeMarshalling>true</DisableRuntimeMarshalling>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAppInstallerFile>True</GenerateAppInstallerFile>
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
@@ -90,15 +89,12 @@
<PackageReference Include="CommunityToolkit.Uwp.Controls.TokenizingTextBox" />
<PackageReference Include="CommunityToolkit.Uwp.Extensions" />
<PackageReference Include="EmailValidation" />
<PackageReference Include="Microsoft.AppCenter.Analytics" />
<PackageReference Include="Microsoft.AppCenter.Crashes" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Microsoft.Identity.Client" />
<PackageReference Include="Microsoft.UI.Xaml" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Uwp.Managed" />
<PackageReference Include="Nito.AsyncEx" />
<PackageReference Include="Serilog" />
<PackageReference Include="Serilog.Exceptions" />
<PackageReference Include="sqlite-net-pcl" />
<PackageReference Include="Win2D.uwp" />
</ItemGroup>