-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Xamarin.Mac support #138
Conversation
* Added support for Xamarin.Mac applications * Added a Xamarin.Mac sample
I'm fine adding support here fwiw. Just need to get tests to pass
What part specifically you mean? for MAUI we have already the device info for example. And native crash support even |
… GitHub actions workflows.
Hi and thank you for the PR! A few notes from the build errors since you can't see the logs (I suppose)
On Windows:
|
# Conflicts: # Sentry.Xamarin.sln # Src/Sentry.Xamarin/Sentry.Xamarin.csproj
On their docs they mention "through Mac Catalyst": https://learn.microsoft.com/en-us/dotnet/maui/supported-platforms What's the benefit/goal/tradeoff of supporting also |
@bruno-garcia If you want to write a Mac .NET app that uses AppKit, as opposed the Catalyst/UIKit API's, then you need to target netX-macos. (netx-macos, is essentially the latest version of Xamarin.Mac). MAUI doesn't support an AppKit backend; however like with Xamarin.iOS and Xamarin.Mac, the majority of the code that Sentry would need would be shared, thus it's probably the best place to add it. |
Fair so we're talking about AppKit (Native Mac app with .NET) that targets |
Thanks! Also keep in mind there are developers, like myself, that do iOS and Android development that don't use MAUI. For example, my iOS apps target net7-ios; however, they don't reference or use MAUI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this took a bit for me to wrap my head around. Thanks for contributing here!
That's fair. Sentry itself uses |
Session logging is not implemented for Xamarin.Mac so an additional constant was added (
LIFECYCLE_PROCESSOR
) to for iOS, Android and UWP that do have that functionality. Previously,NATIVE_PROCESSOR
was an indication that there were native implementations for both session logging and event processing.Note 1: The same DSN that was used in the other samples was used.
Note 2: Something similar should be implemented for the Sentry.Maui project for the "net7.0-macos" framework as well.