From 58ae6aadc81c85e45706eb07ed760992f4b52b06 Mon Sep 17 00:00:00 2001 From: Denis Andrasec Date: Wed, 5 Mar 2025 15:35:48 +0100 Subject: [PATCH 1/2] Remove workaround for Platform.executable --- .../enricher/io_enricher_event_processor.dart | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart b/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart index d101c3431d..19e2ec5fac 100644 --- a/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart +++ b/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart @@ -78,21 +78,7 @@ class IoEnricherEventProcessor implements EnricherEventProcessor { String? executable; if (_options.sendDefaultPii) { - try { - // This throws sometimes for some reason - // https://github.com/flutter/flutter/issues/83921 - executable = Platform.executable; - } catch (exception, stackTrace) { - _options.logger( - SentryLevel.error, - 'Platform.executable couldn\'t be retrieved.', - exception: exception, - stackTrace: stackTrace, - ); - if (_options.automatedTestMode) { - rethrow; - } - } + executable = Platform.executable; } return { From c69d998732d20b0cdc668ce1e807d9dd447fb646 Mon Sep 17 00:00:00 2001 From: Denis Andrasec Date: Wed, 5 Mar 2025 15:55:41 +0100 Subject: [PATCH 2/2] add // ignore: deprecated_member_use --- dart/example_web/web/main.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/dart/example_web/web/main.dart b/dart/example_web/web/main.dart index 3c0305b49e..7e349b7276 100644 --- a/dart/example_web/web/main.dart +++ b/dart/example_web/web/main.dart @@ -24,6 +24,7 @@ Future main() async { Future runApp() async { print('runApp'); + // ignore: deprecated_member_use document.querySelector('#output')?.text = 'Your Dart app is running.'; await Sentry.addBreadcrumb(