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

Add Flutter runtime information #2742

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

ueman
Copy link
Collaborator

@ueman ueman commented Feb 20, 2025

📜 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

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

Wait until the Flutter PR is merged, then merge this.

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.98%. Comparing base (08aff50) to head (1c20261).

Files with missing lines Patch % Lines
...rocessor/enricher/io_enricher_event_processor.dart 0.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@ueman ueman marked this pull request as ready for review February 20, 2025 17:48
@buenaflor
Copy link
Contributor

ohh nice! 🥳

@ueman ueman marked this pull request as draft February 20, 2025 18:14
Comment on lines 18 to 22
return SentryRuntime(
name: 'Flutter',
version: '${FlutterVersion.version} (${FlutterVersion.channel})',
build: FlutterVersion.frameworkRevision,
);
Copy link
Collaborator Author

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?

Comment on lines +54 to +57
/// 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;
Copy link
Collaborator Author

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?

@ueman
Copy link
Collaborator Author

ueman commented Feb 24, 2025

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

@ueman ueman marked this pull request as ready for review February 24, 2025 21:39
@ueman
Copy link
Collaborator Author

ueman commented Feb 28, 2025

@buenaflor The linked PR is sticking, so it should be safe to merge now.

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.

Report version of Flutter
2 participants