Skip to content

Commit

Permalink
fix: remove WinUI integration from mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Nov 13, 2023
1 parent f539268 commit 15bbe80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if NET5_0_OR_GREATER
#if NET5_0_OR_GREATER && !__MOBILE__
using Sentry.Extensibility;
using Sentry.Internal;

Expand Down
6 changes: 3 additions & 3 deletions src/Sentry/SentryOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ internal IEnumerable<ISdkIntegration> Integrations
}
#endif

#if NET5_0_OR_GREATER
#if NET5_0_OR_GREATER && !__MOBILE__
if ((_defaultIntegrations & DefaultIntegrations.WinUiUnhandledExceptionIntegration) != 0)
{
yield return new WinUIUnhandledExceptionIntegration();
Expand Down Expand Up @@ -1184,7 +1184,7 @@ public SentryOptions()
#if HAS_DIAGNOSTIC_INTEGRATION
| DefaultIntegrations.SentryDiagnosticListenerIntegration
#endif
#if NET5_0_OR_GREATER
#if NET5_0_OR_GREATER && !__MOBILE__
| DefaultIntegrations.WinUiUnhandledExceptionIntegration
#endif
;
Expand Down Expand Up @@ -1283,7 +1283,7 @@ internal enum DefaultIntegrations
#if HAS_DIAGNOSTIC_INTEGRATION
SentryDiagnosticListenerIntegration = 1 << 5,
#endif
#if NET5_0_OR_GREATER
#if NET5_0_OR_GREATER && !__MOBILE__
WinUiUnhandledExceptionIntegration = 1 << 6,
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion src/Sentry/SentryOptionsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static void DisableNetFxInstallationsIntegration(this SentryOptions optio
public static void DisableAppDomainProcessExitFlush(this SentryOptions options) =>
options.RemoveDefaultIntegration(SentryOptions.DefaultIntegrations.AppDomainProcessExitIntegration);

#if NET5_0_OR_GREATER
#if NET5_0_OR_GREATER && !__MOBILE__
/// <summary>
/// Disables WinUI exception handler
/// </summary>
Expand Down

0 comments on commit 15bbe80

Please sign in to comment.