Skip to content

Force 'Auto' from sentry window #219

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

Merged
merged 6 commits into from
Jun 10, 2021
Merged

Force 'Auto' from sentry window #219

merged 6 commits into from
Jun 10, 2021

Conversation

semuserable
Copy link
Contributor

closes #217

I decided to force Auto if you configure from sentry window. We can differentiate between scripting backends with the following code

PlayerSettings.GetScriptingBackend(EditorUserBuildSettings.selectedBuildTargetGroup) == ScriptingImplementation.IL2CPP

but it's available only in Unity.Editor.dll. We could do that logic not on options level, but on window level itself.

Which path should we take?

PS. Please notice, I didn't include tests as I'm trying to understand which approach we take.

@semuserable
Copy link
Contributor Author

updated

cc @bruno-garcia @bitsandfoxes

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge this but I used the programatic approach and turns out it doesn't default to Auto there so it ends up breaking IL2CPP.

So basically what we need is to always set base.CompressionLevel = NoCompression through the SetDefaults method so that's done regardless of how SentryUnityOptions is created

@semuserable
Copy link
Contributor Author

Changed to NoCompression and moved into defaults.

cc @bruno-garcia

@bitsandfoxes bitsandfoxes merged commit f1c77e2 into main Jun 10, 2021
@bitsandfoxes bitsandfoxes deleted the patch/compression branch June 10, 2021 16:20
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.

Compress payload 'Optimal', 'Fastest' don't work with il2cpp
3 participants