Skip to content
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

Merged
merged 7 commits into from
Oct 18, 2021
Merged

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Oct 14, 2021

Closes: #371

CaptureInEditor is a Unity-specific flag and has to be checked before passing the options to the .NET SDK.

@bitsandfoxes bitsandfoxes changed the title fix: Validate options before programmatic init fix: Validate options before SDK init Oct 15, 2021
@bitsandfoxes bitsandfoxes changed the title fix: Validate options before SDK init fix: Validating options before SDK init Oct 15, 2021
@bitsandfoxes bitsandfoxes marked this pull request as ready for review October 15, 2021 08:16
@bitsandfoxes bitsandfoxes requested a review from a team October 15, 2021 08:25
/// <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)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Member

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

@bitsandfoxes bitsandfoxes merged commit 4e0c97c into main Oct 18, 2021
@bitsandfoxes bitsandfoxes deleted the fix/not-in-editor branch October 18, 2021 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CaptureInEditor not working with programmatic initialization
4 participants