diff --git a/dart/pubspec.yaml b/dart/pubspec.yaml index ebb883c308..efef9ca103 100644 --- a/dart/pubspec.yaml +++ b/dart/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: dev_dependencies: build_runner: ^2.4.2 mockito: ^5.1.0 - lints: ^3.0.0 + lints: ^4.0.0 test: ^1.21.1 yaml: ^3.1.0 # needed for version match (code and pubspec) collection: ^1.16.0 diff --git a/dart/test/event_processor/enricher/io_enricher_test.dart b/dart/test/event_processor/enricher/io_enricher_test.dart index 72080cba3f..bdc6da2e4e 100644 --- a/dart/test/event_processor/enricher/io_enricher_test.dart +++ b/dart/test/event_processor/enricher/io_enricher_test.dart @@ -1,4 +1,5 @@ @TestOn('vm') +library dart_test; import 'package:sentry/sentry.dart'; import 'package:sentry/src/event_processor/enricher/io_enricher_event_processor.dart'; diff --git a/dart/test/event_processor/enricher/web_enricher_test.dart b/dart/test/event_processor/enricher/web_enricher_test.dart index e5d5b2efec..cdc7310fab 100644 --- a/dart/test/event_processor/enricher/web_enricher_test.dart +++ b/dart/test/event_processor/enricher/web_enricher_test.dart @@ -1,4 +1,6 @@ @TestOn('browser') +library dart_test; + import 'dart:html' as html; import 'package:sentry/sentry.dart'; diff --git a/dart/test/event_processor/exception/io_exception_event_processor_test.dart b/dart/test/event_processor/exception/io_exception_event_processor_test.dart index 5d4d771a08..9523038638 100644 --- a/dart/test/event_processor/exception/io_exception_event_processor_test.dart +++ b/dart/test/event_processor/exception/io_exception_event_processor_test.dart @@ -1,4 +1,5 @@ @TestOn('vm') +library dart_test; import 'dart:io'; diff --git a/dart/test/example_web_compile_test.dart b/dart/test/example_web_compile_test.dart index d327dcaed1..4199a47dda 100644 --- a/dart/test/example_web_compile_test.dart +++ b/dart/test/example_web_compile_test.dart @@ -1,4 +1,6 @@ @TestOn('vm') +library dart_test; + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/dart/test/initialization_test.dart b/dart/test/initialization_test.dart index 7eb8c15265..e6f9ddea23 100644 --- a/dart/test/initialization_test.dart +++ b/dart/test/initialization_test.dart @@ -1,4 +1,5 @@ @TestOn('vm') +library dart_test; import 'package:sentry/sentry.dart'; import 'package:test/test.dart'; diff --git a/dart/test/run_zoned_guarded_integration_test.dart b/dart/test/run_zoned_guarded_integration_test.dart index 13b102d7da..dd3c2aa0f3 100644 --- a/dart/test/run_zoned_guarded_integration_test.dart +++ b/dart/test/run_zoned_guarded_integration_test.dart @@ -1,4 +1,5 @@ @TestOn('vm') +library dart_test; import 'package:sentry/sentry.dart'; import 'package:test/test.dart'; diff --git a/dart/test/sentry_attachment_io_test.dart b/dart/test/sentry_attachment_io_test.dart index 2752355a2b..29a0076bfe 100644 --- a/dart/test/sentry_attachment_io_test.dart +++ b/dart/test/sentry_attachment_io_test.dart @@ -1,4 +1,5 @@ @TestOn('vm') +library dart_test; import 'dart:io'; diff --git a/dart/test/sentry_browser_test.dart b/dart/test/sentry_browser_test.dart index 8524019467..eaccfa1d03 100644 --- a/dart/test/sentry_browser_test.dart +++ b/dart/test/sentry_browser_test.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @TestOn('browser') +library dart_test; + import 'package:test/test.dart'; import 'test_utils.dart'; diff --git a/dart/test/sentry_envelope_vm_test.dart b/dart/test/sentry_envelope_vm_test.dart index a000c0c4e6..7854ffccb0 100644 --- a/dart/test/sentry_envelope_vm_test.dart +++ b/dart/test/sentry_envelope_vm_test.dart @@ -1,4 +1,6 @@ @TestOn('vm') +library dart_test; + import 'dart:convert'; import 'dart:io'; diff --git a/dart/test/sentry_io_client_test.dart b/dart/test/sentry_io_client_test.dart index b2479a27c8..9ffe1f319c 100644 --- a/dart/test/sentry_io_client_test.dart +++ b/dart/test/sentry_io_client_test.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @TestOn('vm') +library dart_test; + import 'dart:io'; import 'package:test/test.dart'; diff --git a/dart/test/sentry_isolate_extension_test.dart b/dart/test/sentry_isolate_extension_test.dart index 415f67c797..626d7e525c 100644 --- a/dart/test/sentry_isolate_extension_test.dart +++ b/dart/test/sentry_isolate_extension_test.dart @@ -1,4 +1,6 @@ @TestOn('vm') +library dart_test; + import 'dart:isolate'; import 'package:sentry/src/sentry_isolate_extension.dart'; diff --git a/dart/test/sentry_isolate_test.dart b/dart/test/sentry_isolate_test.dart index 7cebc3e5e4..6d41636303 100644 --- a/dart/test/sentry_isolate_test.dart +++ b/dart/test/sentry_isolate_test.dart @@ -1,4 +1,5 @@ @TestOn('vm') +library dart_test; import 'package:sentry/src/hub.dart'; import 'package:sentry/src/protocol/sentry_level.dart'; diff --git a/dart/test/version_test.dart b/dart/test/version_test.dart index f1ff8574a8..f2022bbba2 100644 --- a/dart/test/version_test.dart +++ b/dart/test/version_test.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. @TestOn('vm') +library dart_test; import 'dart:io';