-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Add Flutter runtime information #2742
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2742 +/- ##
==========================================
- Coverage 88.99% 88.98% -0.01%
==========================================
Files 263 263
Lines 8924 8925 +1
==========================================
Hits 7942 7942
- Misses 982 983 +1 ☔ View full report in Codecov by Sentry. |
ohh nice! 🥳 |
return SentryRuntime( | ||
name: 'Flutter', | ||
version: '${FlutterVersion.version} (${FlutterVersion.channel})', | ||
build: FlutterVersion.frameworkRevision, | ||
); |
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.
Does it make sense to you to structure it like this?
/// The URL of the Git repository from which Flutter was obtained. | ||
static const String? gitUrl = bool.hasEnvironment('FLUTTER_GIT_URL') | ||
? String.fromEnvironment('FLUTTER_GIT_URL') | ||
: null; |
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.
Should this be included in a context somewhere?
This PR is ready to review now, but maybe we should wait with merging a little to see whether the changes are sticking this time in the Flutter framework |
@buenaflor The linked PR is sticking, so it should be safe to merge now. |
📜 Description
Fun fact: This fixes the oldest currently open issue in this repo
💡 Motivation and Context
#416
💚 How did you test it?
I'm not entirely sure how to test this, since Dart defines aren't mockable.
You can test this manually by switching to the master channel of Flutter and building an app.
📝 Checklist
sendDefaultPii
is enabled🔮 Next steps
Wait until the Flutter PR is merged, then merge this.