-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Set Java/Android SDK options #1694
Conversation
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.
Looking great
This reverts commit 28b3e43.
I had to revert the last commit. I was attempting to map Java enums to C# enums using the recommended approach documented here. The library compiled fine, but generated the wrong method signature in the Android Callable Wrapper, so failed when building one of the sample apps. I hunted for a workaround but found none. I need to raise this as an upstream issue to Microsoft, but in the meantime we can just keep things as they were. |
FYI - the enum issue is reported here: dotnet/java-interop#991 |
This sets most of the Java/Android SDK options when using the
net6.0-android
target from the .NET SDK.SentryOptions
andSentryAndroidOptions
are not available on ours at all, so I have exposed them onSentryOptions.Android
and mirrored the defaults.This is also relevant for MAUI.
Note, #1692 and #1693 need to be in place before this works.
Also, we currently have no way to write unit tests for this code, but it's all been run manually several times on my box.