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

[PLAT-8383] Configure bugsnag_flutter from native layer #145

Merged
merged 4 commits into from Jun 23, 2022

Conversation

nickdowell
Copy link
Contributor

Goal

Allow the native layer of apps to configure whether bugsnag_flutter should automatically detect unhandled Dart errors.

Builds on top of #144

Changeset

Adds BugsnagFlutterConfiguration and BugsnagFlutterEnabledErrorTypes classes.

The Flutter plugin's attach method returns a JSON representation of the configuration, which bugsnag.attach then examines to determine whether autoDetectErrors should be enabled.

Testing

Adds an E2E scenario to verify that setting BugsnagFlutterConfiguration.enabledErrorTypes.dartErrors = false disables automatic detection.

@nickdowell nickdowell requested a review from lemnik June 22, 2022 09:02
Base automatically changed from nickdowell/native-flutter-examples to next June 23, 2022 08:29
Co-authored-by: Jason <lemnik@users.noreply.github.com>
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

@nickdowell nickdowell merged commit f5fde3e into next Jun 23, 2022
@nickdowell nickdowell deleted the nickdowell/native-flutter-config branch June 23, 2022 09:03
@nickdowell nickdowell mentioned this pull request Jun 28, 2022
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.

None yet

2 participants