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

Move all error building code into a dedicated class #851

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

kstenerud
Copy link
Contributor

@kstenerud kstenerud commented Nov 11, 2024

Goal

Move the code that converts exceptions, logged errors etc into Error objects to a single class ErrorBuilder.

ErrorBuilder takes a NativeClient, which will later be used to fetch native information required to build a proper native mapping to C# via the il2cpp mapping file.

There's no new behaviour introduced - the error building code is the same as before, just relocated.

@richardelms richardelms marked this pull request as ready for review November 12, 2024 11:03
@richardelms richardelms self-requested a review November 12, 2024 11:03
@richardelms richardelms self-assigned this Nov 12, 2024
# Conflicts:
#	Bugsnag/Assets/Bugsnag/Runtime/LoadedImage.cs
#	Bugsnag/Assets/Bugsnag/Runtime/Native/Android/NativeClient.cs
#	Bugsnag/Assets/Bugsnag/Runtime/Native/Cocoa/LoadedImages.cs
#	Bugsnag/Assets/Bugsnag/Runtime/Native/Cocoa/NativeImage.cs
#	Bugsnag/Assets/Bugsnag/Runtime/Payload/ErrorBuilder.cs
#	Bugsnag/Assets/Tests/ExceptionTests.cs
#	src/BugsnagUnity/Native/Cocoa/NativeImage.cs
@bugsnagbot
Copy link
Collaborator

Build size impact

Format Size impact of Bugsnag (kB)
IL2CPP APK 2598.27
IL2CPP IPA 1696.44

Generated by 🚫 Danger

Copy link
Contributor

@richardelms richardelms left a comment

Choose a reason for hiding this comment

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

nice

@richardelms richardelms merged commit a072290 into next Nov 12, 2024
14 checks passed
@richardelms richardelms deleted the karl/native-stack-trace-data branch November 12, 2024 15:26
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.

3 participants