-
-
Notifications
You must be signed in to change notification settings - Fork 255
Feature: Initial support for Flutter on Desktop #389
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #389 +/- ##
==========================================
- Coverage 90.74% 89.98% -0.77%
==========================================
Files 52 54 +2
Lines 1654 1678 +24
==========================================
+ Hits 1501 1510 +9
- Misses 153 168 +15
Continue to review full report at Codecov.
|
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.
Very cool!
# Conflicts: # flutter/lib/src/default_integrations.dart # flutter/lib/src/sentry_flutter.dart
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.
left a few small suggestions but overall looks good.
CI is broken though.
Approving it but let's address the open points before merging, LGTM.
let's not squash & merge this branch, but instead just merging it, so we have the history of the other branches merged into this one. |
* Support Linux * Build Linux in CI * Build linux in ci * More linux foo * Fix workflow file * Update .github/workflows/flutter.yml * Remove autogenerated files * ignore autogenerated files * --release is the default * Fix Workflow file Co-authored-by: Bruno Garcia <[email protected]>
@ueman can you test an uncaught exception for macOS? does it work or do we need to do this like for the Apple SDK? https://docs.sentry.io/platforms/apple/usage/#capturing-uncaught-exceptions-in-macos |
Is this feature almost ready for next major release? |
If I click on
When I restart the app, it gets send to Sentry: https://sentry.io/share/issue/4031d612e7504368ab4df8c19c4708bd/ Is that what you wanted to know? |
I just need to fix the CI build and it should be ready. @marandaneto knows more about the release timeline. |
yes, thanks. |
still #410 pending and getsentry/sentry-docs#3399 |
Codecov Report
@@ Coverage Diff @@
## main #389 +/- ##
==========================================
+ Coverage 90.78% 93.52% +2.74%
==========================================
Files 52 5 -47
Lines 1660 170 -1490
==========================================
- Hits 1507 159 -1348
+ Misses 153 11 -142 Continue to review full report at Codecov.
|
@marandaneto This builds now. Do you want to take another look or can I merge this now? |
can we merge without #420 or should we wait for it? |
We could merge without it, but it's probably better to wait for it.
Yep, sure. |
@ueman do we need to run tests also for macos/win/linux? See https://pub.dev/packages/test#platform-selectors |
I think so too. We can mock the platform and all of the Dart and Flutter code does not have any implementation which work on just one platform because we can also mock the platform channels. Also Sentry is platform agnostic, so it doesn't matter. |
* Fix: Trim Unicode Character 'NULL' (U+0000) for Windows * Add PR ID * Rename method and add some explanation * Update flutter/lib/src/default_integrations.dart Co-authored-by: Manoel Aranda Neto <[email protected]> * Add another test Co-authored-by: Manoel Aranda Neto <[email protected]>
📜 Description
Initial desktop support.
Currently only MacOS.
See https://sentry.io/organizations/sentry-sdks/issues/2149575550/?query=is%3Aunresolved for an example event.
What currently works:
What does not work:
SentryWidgetsBindingObserver.didChangeMetrics
get called way too much. It could replace all breadcrumbs with just screen size changes.💡 Motivation and Context
💚 How did you test it?
New tests and manual tests to make sure MacOS works.
📝 Checklist
🔮 Next steps
SentryWidgetsBindingObserver.didChangeMetrics
. As seen in this crash report it gets called way too much. Issue created at Debouncing of SentryWidgetsBindingObserver.didChangeMetrics. #400