Skip to content

Commit

Permalink
add explaining comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ueman committed Feb 20, 2025
1 parent d3b2989 commit 1fa65d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dart/lib/src/event_processor/enricher/flutter_runtime.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import '../../protocol/sentry_runtime.dart';

// The Flutter version information can be fetched via Dart defines,
// see https://github.com/flutter/flutter/pull/140783.
// This code lives in the Dart only Sentry code, since the code
// doesn't require any Flutter dependency.
// Additionally, this makes it work on background isolates in
// Flutter, where one may not initialize the whole Flutter Sentry
// SDK.

SentryRuntime? get flutterRuntime {
if (FlutterVersion.version == null ||
FlutterVersion.channel == null ||
Expand Down

0 comments on commit 1fa65d3

Please sign in to comment.