Skip to content

Commit

Permalink
remove appcenter
Browse files Browse the repository at this point in the history
  • Loading branch information
zznty committed Aug 30, 2024
1 parent 0a12ebf commit 405ddf8
Show file tree
Hide file tree
Showing 46 changed files with 230 additions and 1,753 deletions.
10 changes: 0 additions & 10 deletions MusicX/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ private static void SetupAnalytics()
Layout = "${message}"
});
LogManager.Configuration.AddRuleForAllLevels(sentryTargetName);

// TODO remove appcenter completely as msft is shutting it down soon
AppCenter.Start("02130c6d-0a3b-4aa2-b46c-8aeb66c3fd71",
typeof(Analytics), typeof(Crashes));

var properties = new Dictionary<string, string>
{
{"Version", StaticService.Version }
};
Analytics.TrackEvent("StartApp", properties);
}

static Mutex? InstanceCheckMutex;
Expand Down
15 changes: 3 additions & 12 deletions MusicX/Controls/BannerControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,12 @@ private void CardAction_Click(object sender, RoutedEventArgs e)
var notificationService = StaticService.Container.GetRequiredService<Services.NavigationService>();

notificationService.OpenExternalPage(new PlaylistView(playlistId, ownerId, accessKey));
}catch (Exception ex)
}
catch (Exception ex)
{

var properties = new Dictionary<string, string>
{
#if DEBUG
{ "IsDebug", "True" },
#endif
{"Version", StaticService.Version }
};
Crashes.TrackError(ex, properties);

var logger = StaticService.Container.GetRequiredService<Logger>();

logger.Error(ex, ex.Message);
logger.Error(ex, "Failed to open playlist in banner control");
}

}
Expand Down
12 changes: 1 addition & 11 deletions MusicX/Controls/BigBannerControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,9 @@ private async void ActionButton_Click(object sender, RoutedEventArgs e)
}
catch (Exception ex)
{

var properties = new Dictionary<string, string>
{
#if DEBUG
{ "IsDebug", "True" },
#endif
{"Version", StaticService.Version }
};
Crashes.TrackError(ex, properties);

var logger = StaticService.Container.GetRequiredService<Logger>();

logger.Error(ex, ex.Message);
logger.Error(ex, "Failed to open action in big banners control");
}

}
Expand Down
Loading

0 comments on commit 405ddf8

Please sign in to comment.