Skip to content

Commit 34d8490

Browse files
MAUI CommunityToolkit MVVM auto instrumentation of async commands (#4125)
--------- Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
1 parent c69110b commit 34d8490

40 files changed

+1921
-38
lines changed

.generated.NoMobile.sln

Lines changed: 712 additions & 6 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- .NET MAUI integration with CommunityToolkit.Mvvm Async Relay Commands can now be auto spanned with the new package Sentry.Maui.CommunityToolkit.Mvvm ([#4125](https://github.com/getsentry/sentry-dotnet/pull/4125))
8+
59
### Dependencies
610

711
- Bump Native SDK from v0.8.4 to v0.8.5 ([#4189](https://github.com/getsentry/sentry-dotnet/pull/4189))

Sentry-CI-Build-Linux.slnf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"src\\Sentry.Google.Cloud.Functions\\Sentry.Google.Cloud.Functions.csproj",
4545
"src\\Sentry.Hangfire\\Sentry.Hangfire.csproj",
4646
"src\\Sentry.Log4Net\\Sentry.Log4Net.csproj",
47+
"src\\Sentry.Maui.CommunityToolkit.Mvvm\\Sentry.Maui.CommunityToolkit.Mvvm.csproj",
4748
"src\\Sentry.Maui\\Sentry.Maui.csproj",
4849
"src\\Sentry.NLog\\Sentry.NLog.csproj",
4950
"src\\Sentry.OpenTelemetry\\Sentry.OpenTelemetry.csproj",
@@ -65,6 +66,7 @@
6566
"test\\Sentry.Google.Cloud.Functions.Tests\\Sentry.Google.Cloud.Functions.Tests.csproj",
6667
"test\\Sentry.Hangfire.Tests\\Sentry.Hangfire.Tests.csproj",
6768
"test\\Sentry.Log4Net.Tests\\Sentry.Log4Net.Tests.csproj",
69+
"test\\Sentry.Maui.CommunityToolkit.Mvvm.Tests\\Sentry.Maui.CommunityToolkit.Mvvm.Tests.csproj",
6870
"test\\Sentry.Maui.Tests\\Sentry.Maui.Tests.csproj",
6971
"test\\Sentry.NLog.Tests\\Sentry.NLog.Tests.csproj",
7072
"test\\Sentry.OpenTelemetry.Tests\\Sentry.OpenTelemetry.Tests.csproj",

Sentry-CI-Build-Windows.slnf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"src\\Sentry.Google.Cloud.Functions\\Sentry.Google.Cloud.Functions.csproj",
4747
"src\\Sentry.Hangfire\\Sentry.Hangfire.csproj",
4848
"src\\Sentry.Log4Net\\Sentry.Log4Net.csproj",
49+
"src\\Sentry.Maui.CommunityToolkit.Mvvm\\Sentry.Maui.CommunityToolkit.Mvvm.csproj",
4950
"src\\Sentry.Maui\\Sentry.Maui.csproj",
5051
"src\\Sentry.NLog\\Sentry.NLog.csproj",
5152
"src\\Sentry.OpenTelemetry\\Sentry.OpenTelemetry.csproj",
@@ -67,6 +68,7 @@
6768
"test\\Sentry.Google.Cloud.Functions.Tests\\Sentry.Google.Cloud.Functions.Tests.csproj",
6869
"test\\Sentry.Hangfire.Tests\\Sentry.Hangfire.Tests.csproj",
6970
"test\\Sentry.Log4Net.Tests\\Sentry.Log4Net.Tests.csproj",
71+
"test\\Sentry.Maui.CommunityToolkit.Mvvm.Tests\\Sentry.Maui.CommunityToolkit.Mvvm.Tests.csproj",
7072
"test\\Sentry.Maui.Tests\\Sentry.Maui.Tests.csproj",
7173
"test\\Sentry.NLog.Tests\\Sentry.NLog.Tests.csproj",
7274
"test\\Sentry.OpenTelemetry.Tests\\Sentry.OpenTelemetry.Tests.csproj",

Sentry-CI-Build-macOS.slnf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"src\\Sentry.Google.Cloud.Functions\\Sentry.Google.Cloud.Functions.csproj",
5252
"src\\Sentry.Hangfire\\Sentry.Hangfire.csproj",
5353
"src\\Sentry.Log4Net\\Sentry.Log4Net.csproj",
54+
"src\\Sentry.Maui.CommunityToolkit.Mvvm\\Sentry.Maui.CommunityToolkit.Mvvm.csproj",
5455
"src\\Sentry.Maui\\Sentry.Maui.csproj",
5556
"src\\Sentry.NLog\\Sentry.NLog.csproj",
5657
"src\\Sentry.OpenTelemetry\\Sentry.OpenTelemetry.csproj",
@@ -72,6 +73,7 @@
7273
"test\\Sentry.Google.Cloud.Functions.Tests\\Sentry.Google.Cloud.Functions.Tests.csproj",
7374
"test\\Sentry.Hangfire.Tests\\Sentry.Hangfire.Tests.csproj",
7475
"test\\Sentry.Log4Net.Tests\\Sentry.Log4Net.Tests.csproj",
76+
"test\\Sentry.Maui.CommunityToolkit.Mvvm.Tests\\Sentry.Maui.CommunityToolkit.Mvvm.Tests.csproj",
7577
"test\\Sentry.Maui.Device.TestApp\\Sentry.Maui.Device.TestApp.csproj",
7678
"test\\Sentry.Maui.Tests\\Sentry.Maui.Tests.csproj",
7779
"test\\Sentry.NLog.Tests\\Sentry.NLog.Tests.csproj",

Sentry-CI-CodeQL.slnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"src\\Sentry.Google.Cloud.Functions\\Sentry.Google.Cloud.Functions.csproj",
1616
"src\\Sentry.Hangfire\\Sentry.Hangfire.csproj",
1717
"src\\Sentry.Log4Net\\Sentry.Log4Net.csproj",
18+
"src\\Sentry.Maui.CommunityToolkit.Mvvm\\Sentry.Maui.CommunityToolkit.Mvvm.csproj",
1819
"src\\Sentry.Maui\\Sentry.Maui.csproj",
1920
"src\\Sentry.NLog\\Sentry.NLog.csproj",
2021
"src\\Sentry.OpenTelemetry\\Sentry.OpenTelemetry.csproj",

Sentry.sln

Lines changed: 712 additions & 6 deletions
Large diffs are not rendered by default.

SentryMobile.slnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"src\\Sentry.Bindings.Android\\Sentry.Bindings.Android.csproj",
1212
"src\\Sentry.Bindings.Cocoa\\Sentry.Bindings.Cocoa.csproj",
1313
"src\\Sentry.Extensions.Logging\\Sentry.Extensions.Logging.csproj",
14+
"src\\Sentry.Maui.CommunityToolkit.Mvvm\\Sentry.Maui.CommunityToolkit.Mvvm.csproj",
1415
"src\\Sentry.Maui\\Sentry.Maui.csproj",
1516
"src\\Sentry.SourceGenerators\\Sentry.SourceGenerators.csproj",
1617
"src\\Sentry\\Sentry.csproj",

SentryNoSamples.slnf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"src\\Sentry.Google.Cloud.Functions\\Sentry.Google.Cloud.Functions.csproj",
1717
"src\\Sentry.Hangfire\\Sentry.Hangfire.csproj",
1818
"src\\Sentry.Log4Net\\Sentry.Log4Net.csproj",
19+
"src\\Sentry.Maui.CommunityToolkit.Mvvm\\Sentry.Maui.CommunityToolkit.Mvvm.csproj",
1920
"src\\Sentry.Maui\\Sentry.Maui.csproj",
2021
"src\\Sentry.NLog\\Sentry.NLog.csproj",
2122
"src\\Sentry.OpenTelemetry\\Sentry.OpenTelemetry.csproj",
@@ -37,6 +38,7 @@
3738
"test\\Sentry.Google.Cloud.Functions.Tests\\Sentry.Google.Cloud.Functions.Tests.csproj",
3839
"test\\Sentry.Hangfire.Tests\\Sentry.Hangfire.Tests.csproj",
3940
"test\\Sentry.Log4Net.Tests\\Sentry.Log4Net.Tests.csproj",
41+
"test\\Sentry.Maui.CommunityToolkit.Mvvm.Tests\\Sentry.Maui.CommunityToolkit.Mvvm.Tests.csproj",
4042
"test\\Sentry.Maui.Tests\\Sentry.Maui.Tests.csproj",
4143
"test\\Sentry.NLog.Tests\\Sentry.NLog.Tests.csproj",
4244
"test\\Sentry.OpenTelemetry.Tests\\Sentry.OpenTelemetry.Tests.csproj",

samples/Sentry.Samples.Maui/AppShell.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ public partial class AppShell
55
public AppShell()
66
{
77
InitializeComponent();
8+
Routing.RegisterRoute("ctmvvm", typeof(CtMvvmPage));
89
}
910
}

0 commit comments

Comments
 (0)