-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
fix: Validating options before SDK init #370
Conversation
/// <param name="unitySentryOptionsConfigure">Callback to configure the options.</param> | ||
public static void Init(Action<SentryUnityOptions> unitySentryOptionsConfigure) | ||
/// <param name="sentryUnityOptionsConfigure">Callback to configure the options.</param> | ||
public static void Init(Action<SentryUnityOptions> sentryUnityOptionsConfigure) |
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.
note that this is a breaking change if someone is using named parameters
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.
That's actually a very good point. Thanks for pointing it out. Did not consider that at all.
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.
That's good to keep in mind. But since we're on 0.x
version and adoption is still low, we can go ahead with it here
Closes: #371
CaptureInEditor is a Unity-specific flag and has to be checked before passing the options to the .NET SDK.