Skip to content

Commit

Permalink
run dart fix —apply
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Jan 29, 2025
1 parent fe75631 commit b13b3c4
Show file tree
Hide file tree
Showing 62 changed files with 62 additions and 64 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/min_version_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # [email protected]
with:
flutter-version: "3.0.0"
flutter-version: "3.24.0"

- name: Build iOS
run: |
Expand All @@ -70,7 +70,7 @@ jobs:

- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # [email protected]
with:
flutter-version: "3.0.0"
flutter-version: "3.24.0"

- name: Build web
run: |
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/sentry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

/// A pure Dart client for Sentry.io crash reporting.
library sentry_dart;
library;

export 'src/run_zoned_guarded_integration.dart';
export 'src/hub.dart';
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/src/protocol/sentry_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class SentryEvent with SentryEventLike<SentryEvent> {
/// If this behavior is undesirable, consider using a custom formatted
/// [message] instead.
dynamic get throwable => (_throwable is ThrowableMechanism)
? (_throwable as ThrowableMechanism).throwable
? _throwable.throwable
: _throwable;

/// A throwable decorator that holds a [Mechanism] related to the decorated
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/src/sentry_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ class SentryClient {

bool _sampleRate() {
if (_options.sampleRate != null && _random != null) {
return (_options.sampleRate! < _random!.nextDouble());
return (_options.sampleRate! < _random.nextDouble());
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/src/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/// tool used to submit events to Sentry.io.
///
/// This library contains Sentry.io SDK constants used by this package.
library version;
library;

/// The SDK version reported to Sentry.io in the submitted events.
const String sdkVersion = '8.11.0-beta.1';
Expand Down
2 changes: 1 addition & 1 deletion dart/test/event_processor/enricher/io_enricher_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:io';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:io';

Expand Down
2 changes: 1 addition & 1 deletion dart/test/event_processor/enricher/web_enricher_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('browser')
library dart_test;
library;

import 'package:sentry/sentry.dart';
import 'package:sentry/src/event_processor/enricher/html_enricher_event_processor.dart'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:io';

Expand Down
3 changes: 1 addition & 2 deletions dart/test/example_web_compile_test.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:version/version.dart';
import 'package:test/test.dart';

// Tests for the following issue
Expand Down
2 changes: 1 addition & 1 deletion dart/test/http_client/io_client_provider_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:io';

Expand Down
2 changes: 1 addition & 1 deletion dart/test/initialization_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'package:sentry/sentry.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 1 addition & 1 deletion dart/test/load_dart_debug_images_integration_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:async';

Expand Down
2 changes: 1 addition & 1 deletion dart/test/run_zoned_guarded_integration_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'package:sentry/sentry.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 1 addition & 1 deletion dart/test/sentry_attachment_io_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:io';

Expand Down
2 changes: 1 addition & 1 deletion dart/test/sentry_browser_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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;
library;

import 'package:test/test.dart';

Expand Down
2 changes: 1 addition & 1 deletion dart/test/sentry_envelope_vm_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:convert';
import 'dart:io';
Expand Down
2 changes: 1 addition & 1 deletion dart/test/sentry_io_client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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;
library;

import 'dart:io';

Expand Down
2 changes: 1 addition & 1 deletion dart/test/sentry_isolate_extension_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'dart:isolate';

Expand Down
2 changes: 1 addition & 1 deletion dart/test/sentry_isolate_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dart_test;
library;

import 'package:sentry/src/hub.dart';
import 'package:sentry/src/protocol/sentry_level.dart';
Expand Down
2 changes: 1 addition & 1 deletion dart/test/version_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

@TestOn('vm')
library dart_test;
library;

import 'dart:io';

Expand Down
2 changes: 1 addition & 1 deletion dio/lib/sentry_dio.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library sentry_dio;
library;

export 'src/sentry_dio_extension.dart';

Expand Down
2 changes: 1 addition & 1 deletion dio/test/version_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library dio_test;
library;

import 'dart:io';

Expand Down
2 changes: 1 addition & 1 deletion drift/lib/sentry_drift.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
library sentry_drift;
library;

export 'src/sentry_query_executor.dart';
2 changes: 1 addition & 1 deletion flutter/lib/sentry_flutter.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// A Flutter client for Sentry.io crash reporting.
library sentry_flutter;
library;

// ignore: invalid_export_of_internal_element
export 'package:sentry/sentry.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/lib/src/sentry_asset_bundle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class SentryAssetBundle implements AssetBundle {

ImmutableBuffer data;
try {
data = await _bundle.loadBuffer(key);;
data = await _bundle.loadBuffer(key);
_setDataLength(data, span);
span?.status = SpanStatus.ok();
} catch (exception) {
Expand Down
1 change: 0 additions & 1 deletion flutter/lib/src/sentry_flutter.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:ui';

import 'package:flutter/widgets.dart';
import 'package:meta/meta.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;
// ignore_for_file: invalid_use_of_internal_member

import 'package:flutter/services.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Tags(['canvasKit']) // Web renderer where this test can run
library flutter_test;
library;

import 'dart:math';
import 'dart:ui';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('browser')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/file_system_transport_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'dart:convert';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ignore_for_file: invalid_use_of_internal_member
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/initialization_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/integrations/init_native_sdk_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/integrations/load_image_list_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:collection/collection.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'dart:async';
import 'dart:core';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/integrations/native_sdk_integration_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/native_scope_observer_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/profiling_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;

import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/replay/replay_native_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ignore_for_file: invalid_use_of_internal_member

@TestOn('vm')
library flutter_test;
library;

import 'dart:async';

Expand Down
2 changes: 1 addition & 1 deletion flutter/test/replay/scheduled_recorder_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For some reason, this test is not working in the browser but that's OK, we
// don't support video recording anyway.
@TestOn('vm')
library dart_test;
library;

import 'dart:ui';

Expand Down
2 changes: 1 addition & 1 deletion flutter/test/screenshot/recorder_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For some reason, this test is not working in the browser but that's OK, we
// don't support video recording anyway.
@TestOn('vm')
library dart_test;
library;

import 'dart:ui';

Expand Down
2 changes: 1 addition & 1 deletion flutter/test/screenshot/sentry_screenshot_widget_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;
// ignore_for_file: invalid_use_of_internal_member

import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/sentry_native/sentry_native_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// a browser. @TestOn('vm') doesn't help by itself in this case because imports
// are still evaluated, thus causing a compilation failure.
@TestOn('vm && (windows || linux)')
library sentry_native_test;
library;

import 'package:flutter_test/flutter_test.dart';

Expand Down
2 changes: 1 addition & 1 deletion flutter/test/sentry_native_channel_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ignore_for_file: inference_failure_on_function_invocation

@TestOn('vm')
library flutter_test;
library;

import 'dart:typed_data';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TestOn('vm')
library flutter_test;
library;
// ignore_for_file: invalid_use_of_internal_member

import 'dart:async';
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/version_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

@TestOn('vm')
library flutter_test;
library;

import 'dart:io';

Expand Down
Loading

0 comments on commit b13b3c4

Please sign in to comment.