diff --git a/src/NewsReader/NewsReader.Applications/Controllers/FeedsController.cs b/src/NewsReader/NewsReader.Applications/Controllers/FeedsController.cs
index 17cde1a8..ae8a6bad 100644
--- a/src/NewsReader/NewsReader.Applications/Controllers/FeedsController.cs
+++ b/src/NewsReader/NewsReader.Applications/Controllers/FeedsController.cs
@@ -1,5 +1,4 @@
-using Microsoft.AppCenter.Crashes;
-using System.Waf.Applications;
+using System.Waf.Applications;
using System.Windows.Input;
using Waf.NewsReader.Applications.Properties;
using Waf.NewsReader.Applications.Services;
diff --git a/src/NewsReader/NewsReader.Applications/LogExtensions.cs b/src/NewsReader/NewsReader.Applications/LogExtensions.cs
index c2b71920..2e09ea3b 100644
--- a/src/NewsReader/NewsReader.Applications/LogExtensions.cs
+++ b/src/NewsReader/NewsReader.Applications/LogExtensions.cs
@@ -1,5 +1,4 @@
-using Microsoft.AppCenter.Crashes;
-using NLog;
+using NLog;
namespace Waf.NewsReader; // Use here the root namespace - as this should be available in all upper layers.
@@ -8,12 +7,12 @@ public static class LogExtensions
public static void TrackError(this Logger log, Exception ex, [Localizable(false)] string message)
{
log.Error(ex, message);
- Crashes.TrackError(ex);
+ // Idea: track error via telemetry
}
public static void TrackError(this Logger log, Exception ex, [Localizable(false)] string format, params object?[] arguments)
{
log.Error(ex, format, arguments);
- Crashes.TrackError(ex);
+ // Idea: track error via telemetry
}
}
diff --git a/src/NewsReader/NewsReader.Applications/NewsReader.Applications.csproj b/src/NewsReader/NewsReader.Applications/NewsReader.Applications.csproj
index d2c8e134..127c41ef 100644
--- a/src/NewsReader/NewsReader.Applications/NewsReader.Applications.csproj
+++ b/src/NewsReader/NewsReader.Applications/NewsReader.Applications.csproj
@@ -7,10 +7,6 @@
-
-
-
-
diff --git a/src/NewsReader/NewsReader.Presentation/App.xaml.cs b/src/NewsReader/NewsReader.Presentation/App.xaml.cs
index 2b7e266a..fa45ef2a 100644
--- a/src/NewsReader/NewsReader.Presentation/App.xaml.cs
+++ b/src/NewsReader/NewsReader.Presentation/App.xaml.cs
@@ -1,7 +1,4 @@
-using Microsoft.AppCenter.Analytics;
-using Microsoft.AppCenter.Crashes;
-using Microsoft.AppCenter;
-using System.Globalization;
+using System.Globalization;
using System.Waf.Applications.Services;
using Waf.NewsReader.Applications.Controllers;
using Waf.NewsReader.Applications.Properties;
@@ -14,17 +11,6 @@
namespace Waf.NewsReader.Presentation;
-// Telemetry data collection with https://appcenter.ms
-// Provide the secrets via separate file 'App.xaml.keys.cs' which is excluded from GIT:
-//
-//public partial class App
-//{
-// static partial void GetAppCenterSecret(ref string? appSecret)
-// {
-// appSecret = "android={secret};windowsdesktop={secret};ios={secret}";
-// }
-//}
-
public partial class App : Application
{
private static readonly (string loggerNamePattern, LogLevel minLevel)[] logSettings =
@@ -79,10 +65,6 @@ private void OnCreated()
Log.Default.Info("App started {0}, {1} on {2}", appInfoService.AppName, appInfoService.VersionString, DateTime.Now.ToString("yyyy'-'MM'-'dd' 'HH':'mm':'ssK", CultureInfo.InvariantCulture));
Log.Default.Info("Device: {0} {1} {2}; Platform: {3} {4}", DeviceInfo.Idiom, DeviceInfo.Manufacturer, DeviceInfo.Model, DeviceInfo.Platform, DeviceInfo.Version);
- string? appSecret = null;
- GetAppCenterSecret(ref appSecret);
- if (appSecret != null) AppCenter.Start(appSecret, typeof(Analytics), typeof(Crashes));
- Analytics.TrackEvent("App started");
appController.Start();
}
@@ -159,6 +141,4 @@ private static void InitializeCultures(AppSettings appSettings)
CultureInfo.CurrentCulture = CultureInfo.DefaultThreadCurrentCulture = culture;
}
}
-
- static partial void GetAppCenterSecret(ref string? appSecret);
}