From 537dfef1c920eb047ade3c75381dd50dedd2037e Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Wed, 19 Feb 2025 17:49:12 +0100 Subject: [PATCH 01/14] update Android dependency to 7.22.0 (#2705) --- CHANGELOG.md | 8 ++++++++ flutter/android/build.gradle | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a51f7c509..25b90c6175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## Unreleased + +### Dependencies + +- Bump Android SDK from v7.20.1 to v7.22.0 ([#2705](https://github.com/getsentry/sentry-dart/pull/2705)) + - [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#7220) + - [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...7.22.0) + ## 8.13.0 ### Breaking changes diff --git a/flutter/android/build.gradle b/flutter/android/build.gradle index e91208507f..a0807d2bfc 100644 --- a/flutter/android/build.gradle +++ b/flutter/android/build.gradle @@ -60,7 +60,7 @@ android { } dependencies { - api 'io.sentry:sentry-android:7.20.1' + api 'io.sentry:sentry-android:7.22.0' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" // Required -- JUnit 4 framework From 220db540eb2d3f7a5e6344cf5f5fd8412c59e0cc Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Wed, 19 Feb 2025 17:50:28 +0100 Subject: [PATCH 02/14] fix: navigation breadcrumb with missing to crashes native (#2720) --- CHANGELOG.md | 4 ++++ .../flutter/SentryFlutterReplayBreadcrumbConverter.kt | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b90c6175..31cf553b77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Fixes + +- Replay video interruption if a `navigation` breadcrumb is missing `to` route info ([#2720](https://github.com/getsentry/sentry-dart/pull/2720)) + ### Dependencies - Bump Android SDK from v7.20.1 to v7.22.0 ([#2705](https://github.com/getsentry/sentry-dart/pull/2705)) diff --git a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayBreadcrumbConverter.kt b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayBreadcrumbConverter.kt index a711a36439..3c264c8d47 100644 --- a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayBreadcrumbConverter.kt +++ b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayBreadcrumbConverter.kt @@ -28,7 +28,13 @@ class SentryFlutterReplayBreadcrumbConverter : DefaultReplayBreadcrumbConverter( "sentry.event" -> null "sentry.transaction" -> null "http" -> convertNetworkBreadcrumb(breadcrumb) - "navigation" -> newRRWebBreadcrumb(breadcrumb) + "navigation" -> { + if (breadcrumb.data.containsKey("to") && breadcrumb.data["to"] is String) { + newRRWebBreadcrumb(breadcrumb) + } else { + null + } + } "ui.click" -> newRRWebBreadcrumb(breadcrumb).apply { category = "ui.tap" From e75d20eb80ea878be605e290f5b2b384653d1c96 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Wed, 19 Feb 2025 16:52:21 +0000 Subject: [PATCH 03/14] release: 8.13.1 --- CHANGELOG.md | 2 +- dart/lib/src/version.dart | 2 +- dart/pubspec.yaml | 2 +- dio/lib/src/version.dart | 2 +- dio/pubspec.yaml | 4 ++-- drift/lib/src/version.dart | 2 +- drift/pubspec.yaml | 4 ++-- file/lib/src/version.dart | 2 +- file/pubspec.yaml | 4 ++-- flutter/example/pubspec.yaml | 2 +- flutter/lib/src/version.dart | 2 +- flutter/pubspec.yaml | 4 ++-- hive/lib/src/version.dart | 2 +- hive/pubspec.yaml | 4 ++-- isar/lib/src/version.dart | 2 +- isar/pubspec.yaml | 4 ++-- link/pubspec.yaml | 4 ++-- logging/lib/src/version.dart | 2 +- logging/pubspec.yaml | 4 ++-- sqflite/lib/src/version.dart | 2 +- sqflite/pubspec.yaml | 4 ++-- 21 files changed, 30 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31cf553b77..149d8088f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 8.13.1 ### Fixes diff --git a/dart/lib/src/version.dart b/dart/lib/src/version.dart index b8ca6c1e46..1de225e871 100644 --- a/dart/lib/src/version.dart +++ b/dart/lib/src/version.dart @@ -9,7 +9,7 @@ library version; /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName; diff --git a/dart/pubspec.yaml b/dart/pubspec.yaml index c9b65d5ac5..00c8b31248 100644 --- a/dart/pubspec.yaml +++ b/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 8.13.0 +version: 8.13.1 description: > A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart VM and Web. For Flutter consider sentry_flutter instead. diff --git a/dio/lib/src/version.dart b/dio/lib/src/version.dart index f356d79579..8f21d18a05 100644 --- a/dio/lib/src/version.dart +++ b/dio/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_dio'; diff --git a/dio/pubspec.yaml b/dio/pubspec.yaml index 9834877d26..d1b911a82b 100644 --- a/dio/pubspec.yaml +++ b/dio/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_dio description: An integration which adds support for performance tracing for the Dio package. -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: dio: ^5.0.0 - sentry: 8.13.0 + sentry: 8.13.1 dev_dependencies: meta: ^1.3.0 diff --git a/drift/lib/src/version.dart b/drift/lib/src/version.dart index 5386931faf..da8f53116d 100644 --- a/drift/lib/src/version.dart +++ b/drift/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_drift'; diff --git a/drift/pubspec.yaml b/drift/pubspec.yaml index 161fc3080e..910aa6cc56 100644 --- a/drift/pubspec.yaml +++ b/drift/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_drift description: An integration which adds support for performance tracing for the drift package. -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.0 + sentry: 8.13.1 meta: ^1.3.0 drift: ^2.13.0 diff --git a/file/lib/src/version.dart b/file/lib/src/version.dart index 549212a6cb..ec5356f531 100644 --- a/file/lib/src/version.dart +++ b/file/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_file'; diff --git a/file/pubspec.yaml b/file/pubspec.yaml index 8c0327fb06..a7768b8e8c 100644 --- a/file/pubspec.yaml +++ b/file/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_file description: An integration which adds support for performance tracing for dart.io.File. -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: windows: dependencies: - sentry: 8.13.0 + sentry: 8.13.1 meta: ^1.3.0 dev_dependencies: diff --git a/flutter/example/pubspec.yaml b/flutter/example/pubspec.yaml index 6b9c517750..30c70296bf 100644 --- a/flutter/example/pubspec.yaml +++ b/flutter/example/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_flutter_example description: Demonstrates how to use the sentry_flutter plugin. -version: 8.13.0 +version: 8.13.1 publish_to: 'none' # Remove this line if you wish to publish to pub.dev diff --git a/flutter/lib/src/version.dart b/flutter/lib/src/version.dart index 818e02f7ba..c57ad790f2 100644 --- a/flutter/lib/src/version.dart +++ b/flutter/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The default SDK name reported to Sentry.io in the submitted events. const String sdkName = 'sentry.dart.flutter'; diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 923bd45d1d..37a2cb2910 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry_flutter -version: 8.13.0 +version: 8.13.1 description: Sentry SDK for Flutter. This package aims to support different Flutter targets by relying on the many platforms supported by Sentry with native SDKs. homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart @@ -23,7 +23,7 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - sentry: 8.13.0 + sentry: 8.13.1 package_info_plus: '>=1.0.0' meta: ^1.3.0 ffi: ^2.0.0 diff --git a/hive/lib/src/version.dart b/hive/lib/src/version.dart index 253629ca83..9a0dad15d5 100644 --- a/hive/lib/src/version.dart +++ b/hive/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_hive'; diff --git a/hive/pubspec.yaml b/hive/pubspec.yaml index 2307861109..95b9f6b34d 100644 --- a/hive/pubspec.yaml +++ b/hive/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_hive description: An integration which adds support for performance tracing for the hive package. -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.0 + sentry: 8.13.1 hive: ^2.2.3 meta: ^1.3.0 diff --git a/isar/lib/src/version.dart b/isar/lib/src/version.dart index 554942d405..2ec1bf8d62 100644 --- a/isar/lib/src/version.dart +++ b/isar/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_isar'; diff --git a/isar/pubspec.yaml b/isar/pubspec.yaml index 81a7fa5ba0..1c709ebee9 100644 --- a/isar/pubspec.yaml +++ b/isar/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_isar description: An integration which adds support for performance tracing for the isar package. -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -20,7 +20,7 @@ platforms: dependencies: isar: ^3.1.0 isar_flutter_libs: ^3.1.0 # contains Isar Core - sentry: 8.13.0 + sentry: 8.13.1 meta: ^1.3.0 path: ^1.8.3 diff --git a/link/pubspec.yaml b/link/pubspec.yaml index f5bb40f9f4..740820bdec 100644 --- a/link/pubspec.yaml +++ b/link/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_link description: Automatic capture of exceptions and GraphQL errors for the gql eco-system, like graphql and ferry -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -13,7 +13,7 @@ dependencies: gql_exec: ">=0.4.4 <2.0.0" gql_link: ">=0.5.0 <2.0.0" gql: ">=0.14.0 <2.0.0" - sentry: 8.13.0 + sentry: 8.13.1 dev_dependencies: lints: ^4.0.0 diff --git a/logging/lib/src/version.dart b/logging/lib/src/version.dart index b96cae5646..34e261a816 100644 --- a/logging/lib/src/version.dart +++ b/logging/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_logging'; diff --git a/logging/pubspec.yaml b/logging/pubspec.yaml index 8825edf593..f29eee5081 100644 --- a/logging/pubspec.yaml +++ b/logging/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_logging description: An integration which adds support for recording log from the logging package. -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: logging: ^1.0.0 - sentry: 8.13.0 + sentry: 8.13.1 dev_dependencies: lints: '>=2.0.0' diff --git a/sqflite/lib/src/version.dart b/sqflite/lib/src/version.dart index bac93198ce..5cce226e6a 100644 --- a/sqflite/lib/src/version.dart +++ b/sqflite/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.0'; +const String sdkVersion = '8.13.1'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_sqflite'; diff --git a/sqflite/pubspec.yaml b/sqflite/pubspec.yaml index 25727c3304..d6e4354e1b 100644 --- a/sqflite/pubspec.yaml +++ b/sqflite/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_sqflite description: An integration which adds support for performance tracing for the sqflite package. -version: 8.13.0 +version: 8.13.1 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -15,7 +15,7 @@ platforms: macos: dependencies: - sentry: 8.13.0 + sentry: 8.13.1 sqflite: ^2.2.8 sqflite_common: ^2.0.0 meta: ^1.3.0 From 2b7ea905ddd2d2465415e63215c54a73247e5e82 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Thu, 20 Feb 2025 14:26:11 +0100 Subject: [PATCH 04/14] update changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 149d8088f8..71d12556ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Unreleased + +### Fixes + +- `build_web_compiler` error ([#2736](https://github.com/getsentry/sentry-dart/pull/2736)) + - Use `if (dart.library.html)` instead of `if (dart.html)` for imports + ## 8.13.1 ### Fixes From 135d6e4760b9f34b927d673170d9739872cf0ff9 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 20 Feb 2025 16:08:52 +0100 Subject: [PATCH 05/14] fix(web): use `if (dart.library.html)` instead of `if (dart.html)` (#2736) * fix * regenerate mocks * update CHANGELOG * update test * update * fix test --- .../integration_test/web_sdk_test.dart | 7 +- .../lib/src/web/html_sentry_js_binding.dart | 7 +- flutter/lib/src/web/sentry_js_binding.dart | 2 +- flutter/test/mocks.mocks.dart | 4315 +++++++---------- .../sentry_screenshot_widget_test.mocks.dart | 16 +- flutter/test/web/sentry_web_test.dart | 80 +- 6 files changed, 1840 insertions(+), 2587 deletions(-) diff --git a/flutter/example/integration_test/web_sdk_test.dart b/flutter/example/integration_test/web_sdk_test.dart index f33bd59721..d7f159b27e 100644 --- a/flutter/example/integration_test/web_sdk_test.dart +++ b/flutter/example/integration_test/web_sdk_test.dart @@ -111,9 +111,10 @@ void main() { 'sentry.dart.flutter'); final item = (envelope[1] as List).first as List; - final itemPayload = - json.decode(utf8.decoder.convert((item[1] as List))) - as Map; + final itemPayloadJs = (item[1] as JSArray).toDart; + final itemPayload = json.decode(utf8.decoder.convert(itemPayloadJs + .map((el) => int.parse(el.dartify().toString())) + .toList())) as Map; final jsEventJson = (itemPayload).map((key, value) { return MapEntry(key.toString(), value as dynamic); diff --git a/flutter/lib/src/web/html_sentry_js_binding.dart b/flutter/lib/src/web/html_sentry_js_binding.dart index fed4ae36ea..840e48a2a3 100644 --- a/flutter/lib/src/web/html_sentry_js_binding.dart +++ b/flutter/lib/src/web/html_sentry_js_binding.dart @@ -1,3 +1,5 @@ +// Will be removed in v9 +// ignore: deprecated_member_use import 'dart:js'; import 'package:flutter/cupertino.dart'; @@ -56,7 +58,8 @@ class HtmlSentryJsBinding implements SentryJsBinding { @visibleForTesting @override getJsOptions() { - final sentry = context['Sentry'] as JsObject; - return sentry.callMethod('getClient').callMethod('getOptions').dartify(); + // newest flutter version removed dartify from JsObject + // we will remove this file in v9 anyway + return null; } } diff --git a/flutter/lib/src/web/sentry_js_binding.dart b/flutter/lib/src/web/sentry_js_binding.dart index a174e6b043..79b92af849 100644 --- a/flutter/lib/src/web/sentry_js_binding.dart +++ b/flutter/lib/src/web/sentry_js_binding.dart @@ -1,7 +1,7 @@ import 'package:flutter/cupertino.dart'; export 'noop_sentry_js_binding.dart' - if (dart.html) 'html_sentry_js_binding.dart' + if (dart.library.html) 'html_sentry_js_binding.dart' if (dart.library.js_interop) 'web_sentry_js_binding.dart'; abstract class SentryJsBinding { diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index 9d0e625e79..dc72f038ad 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in sentry_flutter/test/mocks.dart. // Do not manually edit this file. @@ -38,6 +38,7 @@ import 'mocks.dart' as _i13; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -45,469 +46,244 @@ import 'mocks.dart' as _i13; class _FakeSentrySpanContext_0 extends _i1.SmartFake implements _i2.SentrySpanContext { - _FakeSentrySpanContext_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentrySpanContext_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDateTime_1 extends _i1.SmartFake implements DateTime { - _FakeDateTime_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDateTime_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeISentrySpan_2 extends _i1.SmartFake implements _i2.ISentrySpan { - _FakeISentrySpan_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeISentrySpan_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryTraceHeader_3 extends _i1.SmartFake implements _i2.SentryTraceHeader { - _FakeSentryTraceHeader_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryTraceHeader_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryTracer_4 extends _i1.SmartFake implements _i3.SentryTracer { - _FakeSentryTracer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryTracer_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryId_5 extends _i1.SmartFake implements _i2.SentryId { - _FakeSentryId_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryId_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeContexts_6 extends _i1.SmartFake implements _i2.Contexts { - _FakeContexts_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeContexts_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSentryTransaction_7 extends _i1.SmartFake implements _i2.SentryTransaction { - _FakeSentryTransaction_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSentryTransaction_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeMethodCodec_8 extends _i1.SmartFake implements _i4.MethodCodec { - _FakeMethodCodec_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeMethodCodec_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBinaryMessenger_9 extends _i1.SmartFake implements _i4.BinaryMessenger { - _FakeBinaryMessenger_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBinaryMessenger_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidgetsBinding_10 extends _i1.SmartFake implements _i5.WidgetsBinding { - _FakeWidgetsBinding_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidgetsBinding_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSingletonFlutterWindow_11 extends _i1.SmartFake implements _i6.SingletonFlutterWindow { - _FakeSingletonFlutterWindow_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSingletonFlutterWindow_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformDispatcher_12 extends _i1.SmartFake implements _i6.PlatformDispatcher { - _FakePlatformDispatcher_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformDispatcher_12(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerRouter_13 extends _i1.SmartFake implements _i7.PointerRouter { - _FakePointerRouter_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerRouter_13(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeGestureArenaManager_14 extends _i1.SmartFake implements _i7.GestureArenaManager { - _FakeGestureArenaManager_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeGestureArenaManager_14(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePointerSignalResolver_15 extends _i1.SmartFake implements _i7.PointerSignalResolver { - _FakePointerSignalResolver_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePointerSignalResolver_15(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDuration_16 extends _i1.SmartFake implements Duration { - _FakeDuration_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDuration_16(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSamplingClock_17 extends _i1.SmartFake implements _i7.SamplingClock { - _FakeSamplingClock_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSamplingClock_17(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeValueNotifier_18 extends _i1.SmartFake implements _i8.ValueNotifier { - _FakeValueNotifier_18( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeValueNotifier_18(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHardwareKeyboard_19 extends _i1.SmartFake implements _i4.HardwareKeyboard { - _FakeHardwareKeyboard_19( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHardwareKeyboard_19(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeKeyEventManager_20 extends _i1.SmartFake implements _i4.KeyEventManager { - _FakeKeyEventManager_20( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeKeyEventManager_20(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeChannelBuffers_21 extends _i1.SmartFake implements _i6.ChannelBuffers { - _FakeChannelBuffers_21( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeChannelBuffers_21(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeRestorationManager_22 extends _i1.SmartFake implements _i4.RestorationManager { - _FakeRestorationManager_22( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRestorationManager_22(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeImageCache_23 extends _i1.SmartFake implements _i9.ImageCache { - _FakeImageCache_23( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeImageCache_23(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeListenable_24 extends _i1.SmartFake implements _i8.Listenable { - _FakeListenable_24( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeListenable_24(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeAccessibilityFeatures_25 extends _i1.SmartFake implements _i6.AccessibilityFeatures { - _FakeAccessibilityFeatures_25( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeAccessibilityFeatures_25(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakePipelineOwner_26 extends _i1.SmartFake - implements _i10.PipelineOwner { - _FakePipelineOwner_26( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeRenderView_26 extends _i1.SmartFake implements _i10.RenderView { + _FakeRenderView_26(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString(); } -class _FakeRenderView_27 extends _i1.SmartFake implements _i10.RenderView { - _FakeRenderView_27( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); - - @override - String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => - super.toString(); +class _FakeMouseTracker_27 extends _i1.SmartFake implements _i10.MouseTracker { + _FakeMouseTracker_27(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeMouseTracker_28 extends _i1.SmartFake implements _i10.MouseTracker { - _FakeMouseTracker_28( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePlatformMenuDelegate_29 extends _i1.SmartFake +class _FakePlatformMenuDelegate_28 extends _i1.SmartFake implements _i9.PlatformMenuDelegate { - _FakePlatformMenuDelegate_29( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformMenuDelegate_28(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeFocusManager_30 extends _i1.SmartFake implements _i9.FocusManager { - _FakeFocusManager_30( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeFocusManager_29 extends _i1.SmartFake implements _i9.FocusManager { + _FakeFocusManager_29(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString(); } -class _FakeFuture_31 extends _i1.SmartFake implements _i11.Future { - _FakeFuture_31( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeFuture_30 extends _i1.SmartFake implements _i11.Future { + _FakeFuture_30(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeCodec_32 extends _i1.SmartFake implements _i6.Codec { - _FakeCodec_32( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeCodec_31 extends _i1.SmartFake implements _i6.Codec { + _FakeCodec_31(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSemanticsHandle_33 extends _i1.SmartFake +class _FakeSemanticsHandle_32 extends _i1.SmartFake implements _i12.SemanticsHandle { - _FakeSemanticsHandle_33( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsHandle_32(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSemanticsUpdateBuilder_34 extends _i1.SmartFake +class _FakeSemanticsUpdateBuilder_33 extends _i1.SmartFake implements _i6.SemanticsUpdateBuilder { - _FakeSemanticsUpdateBuilder_34( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSemanticsUpdateBuilder_33(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeViewConfiguration_35 extends _i1.SmartFake +class _FakeViewConfiguration_34 extends _i1.SmartFake implements _i10.ViewConfiguration { - _FakeViewConfiguration_35( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeViewConfiguration_34(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSceneBuilder_36 extends _i1.SmartFake implements _i6.SceneBuilder { - _FakeSceneBuilder_36( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeSceneBuilder_35 extends _i1.SmartFake implements _i6.SceneBuilder { + _FakeSceneBuilder_35(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakePictureRecorder_37 extends _i1.SmartFake +class _FakePictureRecorder_36 extends _i1.SmartFake implements _i6.PictureRecorder { - _FakePictureRecorder_37( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePictureRecorder_36(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeCanvas_38 extends _i1.SmartFake implements _i6.Canvas { - _FakeCanvas_38( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeCanvas_37 extends _i1.SmartFake implements _i6.Canvas { + _FakeCanvas_37(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeWidget_39 extends _i1.SmartFake implements _i9.Widget { - _FakeWidget_39( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeWidget_38 extends _i1.SmartFake implements _i9.Widget { + _FakeWidget_38(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString(); } -class _FakeSentryOptions_40 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_40( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeSentryOptions_39 extends _i1.SmartFake implements _i2.SentryOptions { + _FakeSentryOptions_39(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeScope_41 extends _i1.SmartFake implements _i2.Scope { - _FakeScope_41( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeScope_40 extends _i1.SmartFake implements _i2.Scope { + _FakeScope_40(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeHub_42 extends _i1.SmartFake implements _i2.Hub { - _FakeHub_42( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeHub_41 extends _i1.SmartFake implements _i2.Hub { + _FakeHub_41(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Callbacks]. @@ -523,13 +299,10 @@ class MockCallbacks extends _i1.Mock implements _i13.Callbacks { String? method, [ dynamic arguments, ]) => - (super.noSuchMethod(Invocation.method( - #methodCallHandler, - [ - method, - arguments, - ], - )) as _i11.Future?); + (super.noSuchMethod( + Invocation.method(#methodCallHandler, [method, arguments]), + ) + as _i11.Future?); } /// A class which mocks [Transport]. @@ -543,12 +316,10 @@ class MockTransport extends _i1.Mock implements _i2.Transport { @override _i11.Future<_i2.SentryId?> send(_i2.SentryEnvelope? envelope) => (super.noSuchMethod( - Invocation.method( - #send, - [envelope], - ), - returnValue: _i11.Future<_i2.SentryId?>.value(), - ) as _i11.Future<_i2.SentryId?>); + Invocation.method(#send, [envelope]), + returnValue: _i11.Future<_i2.SentryId?>.value(), + ) + as _i11.Future<_i2.SentryId?>); } /// A class which mocks [SentryTracer]. @@ -560,201 +331,162 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: _i14.dummyValue( - this, - Invocation.getter(#name), - ), - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i14.dummyValue( + this, + Invocation.getter(#name), + ), + ) + as String); @override set name(String? _name) => super.noSuchMethod( - Invocation.setter( - #name, - _name, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#name, _name), + returnValueForMissingStub: null, + ); @override _i2.SentryTransactionNameSource get transactionNameSource => (super.noSuchMethod( - Invocation.getter(#transactionNameSource), - returnValue: _i2.SentryTransactionNameSource.custom, - ) as _i2.SentryTransactionNameSource); + Invocation.getter(#transactionNameSource), + returnValue: _i2.SentryTransactionNameSource.custom, + ) + as _i2.SentryTransactionNameSource); @override set transactionNameSource( - _i2.SentryTransactionNameSource? _transactionNameSource) => - super.noSuchMethod( - Invocation.setter( - #transactionNameSource, - _transactionNameSource, - ), - returnValueForMissingStub: null, - ); + _i2.SentryTransactionNameSource? _transactionNameSource, + ) => super.noSuchMethod( + Invocation.setter(#transactionNameSource, _transactionNameSource), + returnValueForMissingStub: null, + ); @override set profiler(_i15.SentryProfiler? _profiler) => super.noSuchMethod( - Invocation.setter( - #profiler, - _profiler, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profiler, _profiler), + returnValueForMissingStub: null, + ); @override set profileInfo(_i15.SentryProfileInfo? _profileInfo) => super.noSuchMethod( - Invocation.setter( - #profileInfo, - _profileInfo, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profileInfo, _profileInfo), + returnValueForMissingStub: null, + ); @override - Map get measurements => (super.noSuchMethod( - Invocation.getter(#measurements), - returnValue: {}, - ) as Map); + Map get measurements => + (super.noSuchMethod( + Invocation.getter(#measurements), + returnValue: {}, + ) + as Map); @override - _i2.SentrySpanContext get context => (super.noSuchMethod( - Invocation.getter(#context), - returnValue: _FakeSentrySpanContext_0( - this, - Invocation.getter(#context), - ), - ) as _i2.SentrySpanContext); + _i2.SentrySpanContext get context => + (super.noSuchMethod( + Invocation.getter(#context), + returnValue: _FakeSentrySpanContext_0( + this, + Invocation.getter(#context), + ), + ) + as _i2.SentrySpanContext); @override set origin(String? origin) => super.noSuchMethod( - Invocation.setter( - #origin, - origin, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#origin, origin), + returnValueForMissingStub: null, + ); @override - DateTime get startTimestamp => (super.noSuchMethod( - Invocation.getter(#startTimestamp), - returnValue: _FakeDateTime_1( - this, - Invocation.getter(#startTimestamp), - ), - ) as DateTime); + DateTime get startTimestamp => + (super.noSuchMethod( + Invocation.getter(#startTimestamp), + returnValue: _FakeDateTime_1( + this, + Invocation.getter(#startTimestamp), + ), + ) + as DateTime); @override - Map get data => (super.noSuchMethod( - Invocation.getter(#data), - returnValue: {}, - ) as Map); + Map get data => + (super.noSuchMethod( + Invocation.getter(#data), + returnValue: {}, + ) + as Map); @override - bool get finished => (super.noSuchMethod( - Invocation.getter(#finished), - returnValue: false, - ) as bool); + bool get finished => + (super.noSuchMethod(Invocation.getter(#finished), returnValue: false) + as bool); @override - List<_i2.SentrySpan> get children => (super.noSuchMethod( - Invocation.getter(#children), - returnValue: <_i2.SentrySpan>[], - ) as List<_i2.SentrySpan>); + List<_i2.SentrySpan> get children => + (super.noSuchMethod( + Invocation.getter(#children), + returnValue: <_i2.SentrySpan>[], + ) + as List<_i2.SentrySpan>); @override set throwable(dynamic throwable) => super.noSuchMethod( - Invocation.setter( - #throwable, - throwable, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#throwable, throwable), + returnValueForMissingStub: null, + ); @override set status(_i2.SpanStatus? status) => super.noSuchMethod( - Invocation.setter( - #status, - status, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#status, status), + returnValueForMissingStub: null, + ); @override - Map get tags => (super.noSuchMethod( - Invocation.getter(#tags), - returnValue: {}, - ) as Map); + Map get tags => + (super.noSuchMethod( + Invocation.getter(#tags), + returnValue: {}, + ) + as Map); @override - _i11.Future finish({ - _i2.SpanStatus? status, - DateTime? endTimestamp, - }) => + _i11.Future finish({_i2.SpanStatus? status, DateTime? endTimestamp}) => (super.noSuchMethod( - Invocation.method( - #finish, - [], - { - #status: status, - #endTimestamp: endTimestamp, - }, - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + }), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void removeData(String? key) => super.noSuchMethod( - Invocation.method( - #removeData, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeData, [key]), + returnValueForMissingStub: null, + ); @override void removeTag(String? key) => super.noSuchMethod( - Invocation.method( - #removeTag, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeTag, [key]), + returnValueForMissingStub: null, + ); @override - void setData( - String? key, - dynamic value, - ) => - super.noSuchMethod( - Invocation.method( - #setData, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setData(String? key, dynamic value) => super.noSuchMethod( + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override - void setTag( - String? key, - String? value, - ) => - super.noSuchMethod( - Invocation.method( - #setTag, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setTag(String? key, String? value) => super.noSuchMethod( + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -763,26 +495,21 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { DateTime? startTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + ), + ) + as _i2.ISentrySpan); @override _i2.ISentrySpan startChildWithParentSpanId( @@ -792,92 +519,58 @@ class MockSentryTracer extends _i1.Mock implements _i3.SentryTracer { DateTime? startTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #startChildWithParentSpanId, - [ - parentSpanId, - operation, - ], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startChildWithParentSpanId, - [ - parentSpanId, - operation, - ], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startChildWithParentSpanId, + [parentSpanId, operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startChildWithParentSpanId, + [parentSpanId, operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + ), + ) + as _i2.ISentrySpan); @override - _i2.SentryTraceHeader toSentryTrace() => (super.noSuchMethod( - Invocation.method( - #toSentryTrace, - [], - ), - returnValue: _FakeSentryTraceHeader_3( - this, - Invocation.method( - #toSentryTrace, - [], - ), - ), - ) as _i2.SentryTraceHeader); + _i2.SentryTraceHeader toSentryTrace() => + (super.noSuchMethod( + Invocation.method(#toSentryTrace, []), + returnValue: _FakeSentryTraceHeader_3( + this, + Invocation.method(#toSentryTrace, []), + ), + ) + as _i2.SentryTraceHeader); @override void setMeasurement( String? name, num? value, { _i2.SentryMeasurementUnit? unit, - }) => - super.noSuchMethod( - Invocation.method( - #setMeasurement, - [ - name, - value, - ], - {#unit: unit}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#setMeasurement, [name, value], {#unit: unit}), + returnValueForMissingStub: null, + ); @override void setMeasurementFromChild( String? name, num? value, { _i2.SentryMeasurementUnit? unit, - }) => - super.noSuchMethod( - Invocation.method( - #setMeasurementFromChild, - [ - name, - value, - ], - {#unit: unit}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#setMeasurementFromChild, [name, value], {#unit: unit}), + returnValueForMissingStub: null, + ); @override void scheduleFinish() => super.noSuchMethod( - Invocation.method( - #scheduleFinish, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFinish, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryTransaction]. @@ -890,111 +583,99 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { } @override - DateTime get startTimestamp => (super.noSuchMethod( - Invocation.getter(#startTimestamp), - returnValue: _FakeDateTime_1( - this, - Invocation.getter(#startTimestamp), - ), - ) as DateTime); + DateTime get startTimestamp => + (super.noSuchMethod( + Invocation.getter(#startTimestamp), + returnValue: _FakeDateTime_1( + this, + Invocation.getter(#startTimestamp), + ), + ) + as DateTime); @override set startTimestamp(DateTime? _startTimestamp) => super.noSuchMethod( - Invocation.setter( - #startTimestamp, - _startTimestamp, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#startTimestamp, _startTimestamp), + returnValueForMissingStub: null, + ); @override - List<_i2.SentrySpan> get spans => (super.noSuchMethod( - Invocation.getter(#spans), - returnValue: <_i2.SentrySpan>[], - ) as List<_i2.SentrySpan>); + List<_i2.SentrySpan> get spans => + (super.noSuchMethod( + Invocation.getter(#spans), + returnValue: <_i2.SentrySpan>[], + ) + as List<_i2.SentrySpan>); @override set spans(List<_i2.SentrySpan>? _spans) => super.noSuchMethod( - Invocation.setter( - #spans, - _spans, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#spans, _spans), + returnValueForMissingStub: null, + ); @override - _i3.SentryTracer get tracer => (super.noSuchMethod( - Invocation.getter(#tracer), - returnValue: _FakeSentryTracer_4( - this, - Invocation.getter(#tracer), - ), - ) as _i3.SentryTracer); + _i3.SentryTracer get tracer => + (super.noSuchMethod( + Invocation.getter(#tracer), + returnValue: _FakeSentryTracer_4(this, Invocation.getter(#tracer)), + ) + as _i3.SentryTracer); @override - Map get measurements => (super.noSuchMethod( - Invocation.getter(#measurements), - returnValue: {}, - ) as Map); + Map get measurements => + (super.noSuchMethod( + Invocation.getter(#measurements), + returnValue: {}, + ) + as Map); @override set measurements(Map? _measurements) => super.noSuchMethod( - Invocation.setter( - #measurements, - _measurements, - ), + Invocation.setter(#measurements, _measurements), returnValueForMissingStub: null, ); @override set transactionInfo(_i2.SentryTransactionInfo? _transactionInfo) => super.noSuchMethod( - Invocation.setter( - #transactionInfo, - _transactionInfo, - ), + Invocation.setter(#transactionInfo, _transactionInfo), returnValueForMissingStub: null, ); @override - bool get finished => (super.noSuchMethod( - Invocation.getter(#finished), - returnValue: false, - ) as bool); + bool get finished => + (super.noSuchMethod(Invocation.getter(#finished), returnValue: false) + as bool); @override - bool get sampled => (super.noSuchMethod( - Invocation.getter(#sampled), - returnValue: false, - ) as bool); + bool get sampled => + (super.noSuchMethod(Invocation.getter(#sampled), returnValue: false) + as bool); @override - _i2.SentryId get eventId => (super.noSuchMethod( - Invocation.getter(#eventId), - returnValue: _FakeSentryId_5( - this, - Invocation.getter(#eventId), - ), - ) as _i2.SentryId); + _i2.SentryId get eventId => + (super.noSuchMethod( + Invocation.getter(#eventId), + returnValue: _FakeSentryId_5(this, Invocation.getter(#eventId)), + ) + as _i2.SentryId); @override - _i2.Contexts get contexts => (super.noSuchMethod( - Invocation.getter(#contexts), - returnValue: _FakeContexts_6( - this, - Invocation.getter(#contexts), - ), - ) as _i2.Contexts); + _i2.Contexts get contexts => + (super.noSuchMethod( + Invocation.getter(#contexts), + returnValue: _FakeContexts_6(this, Invocation.getter(#contexts)), + ) + as _i2.Contexts); @override - Map toJson() => (super.noSuchMethod( - Invocation.method( - #toJson, - [], - ), - returnValue: {}, - ) as Map); + Map toJson() => + (super.noSuchMethod( + Invocation.method(#toJson, []), + returnValue: {}, + ) + as Map); @override _i2.SentryTransaction copyWith({ @@ -1028,46 +709,7 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { _i2.SentryTransactionInfo? transactionInfo, }) => (super.noSuchMethod( - Invocation.method( - #copyWith, - [], - { - #eventId: eventId, - #timestamp: timestamp, - #platform: platform, - #logger: logger, - #serverName: serverName, - #release: release, - #dist: dist, - #environment: environment, - #modules: modules, - #message: message, - #transaction: transaction, - #throwable: throwable, - #level: level, - #culprit: culprit, - #tags: tags, - #extra: extra, - #fingerprint: fingerprint, - #user: user, - #contexts: contexts, - #breadcrumbs: breadcrumbs, - #sdk: sdk, - #request: request, - #debugMeta: debugMeta, - #exceptions: exceptions, - #threads: threads, - #type: type, - #measurements: measurements, - #transactionInfo: transactionInfo, - }, - ), - returnValue: _FakeSentryTransaction_7( - this, - Invocation.method( - #copyWith, - [], - { + Invocation.method(#copyWith, [], { #eventId: eventId, #timestamp: timestamp, #platform: platform, @@ -1096,10 +738,42 @@ class MockSentryTransaction extends _i1.Mock implements _i2.SentryTransaction { #type: type, #measurements: measurements, #transactionInfo: transactionInfo, - }, - ), - ), - ) as _i2.SentryTransaction); + }), + returnValue: _FakeSentryTransaction_7( + this, + Invocation.method(#copyWith, [], { + #eventId: eventId, + #timestamp: timestamp, + #platform: platform, + #logger: logger, + #serverName: serverName, + #release: release, + #dist: dist, + #environment: environment, + #modules: modules, + #message: message, + #transaction: transaction, + #throwable: throwable, + #level: level, + #culprit: culprit, + #tags: tags, + #extra: extra, + #fingerprint: fingerprint, + #user: user, + #contexts: contexts, + #breadcrumbs: breadcrumbs, + #sdk: sdk, + #request: request, + #debugMeta: debugMeta, + #exceptions: exceptions, + #threads: threads, + #type: type, + #measurements: measurements, + #transactionInfo: transactionInfo, + }), + ), + ) + as _i2.SentryTransaction); } /// A class which mocks [SentrySpan]. @@ -1111,150 +785,114 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { } @override - bool get isRootSpan => (super.noSuchMethod( - Invocation.getter(#isRootSpan), - returnValue: false, - ) as bool); + bool get isRootSpan => + (super.noSuchMethod(Invocation.getter(#isRootSpan), returnValue: false) + as bool); @override - _i3.SentryTracer get tracer => (super.noSuchMethod( - Invocation.getter(#tracer), - returnValue: _FakeSentryTracer_4( - this, - Invocation.getter(#tracer), - ), - ) as _i3.SentryTracer); + _i3.SentryTracer get tracer => + (super.noSuchMethod( + Invocation.getter(#tracer), + returnValue: _FakeSentryTracer_4(this, Invocation.getter(#tracer)), + ) + as _i3.SentryTracer); @override set status(_i2.SpanStatus? status) => super.noSuchMethod( - Invocation.setter( - #status, - status, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#status, status), + returnValueForMissingStub: null, + ); @override - DateTime get startTimestamp => (super.noSuchMethod( - Invocation.getter(#startTimestamp), - returnValue: _FakeDateTime_1( - this, - Invocation.getter(#startTimestamp), - ), - ) as DateTime); + DateTime get startTimestamp => + (super.noSuchMethod( + Invocation.getter(#startTimestamp), + returnValue: _FakeDateTime_1( + this, + Invocation.getter(#startTimestamp), + ), + ) + as DateTime); @override - _i2.SentrySpanContext get context => (super.noSuchMethod( - Invocation.getter(#context), - returnValue: _FakeSentrySpanContext_0( - this, - Invocation.getter(#context), - ), - ) as _i2.SentrySpanContext); + _i2.SentrySpanContext get context => + (super.noSuchMethod( + Invocation.getter(#context), + returnValue: _FakeSentrySpanContext_0( + this, + Invocation.getter(#context), + ), + ) + as _i2.SentrySpanContext); @override set origin(String? origin) => super.noSuchMethod( - Invocation.setter( - #origin, - origin, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#origin, origin), + returnValueForMissingStub: null, + ); @override - bool get finished => (super.noSuchMethod( - Invocation.getter(#finished), - returnValue: false, - ) as bool); + bool get finished => + (super.noSuchMethod(Invocation.getter(#finished), returnValue: false) + as bool); @override set throwable(dynamic throwable) => super.noSuchMethod( - Invocation.setter( - #throwable, - throwable, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#throwable, throwable), + returnValueForMissingStub: null, + ); @override - Map get tags => (super.noSuchMethod( - Invocation.getter(#tags), - returnValue: {}, - ) as Map); + Map get tags => + (super.noSuchMethod( + Invocation.getter(#tags), + returnValue: {}, + ) + as Map); @override - Map get data => (super.noSuchMethod( - Invocation.getter(#data), - returnValue: {}, - ) as Map); + Map get data => + (super.noSuchMethod( + Invocation.getter(#data), + returnValue: {}, + ) + as Map); @override - _i11.Future finish({ - _i2.SpanStatus? status, - DateTime? endTimestamp, - }) => + _i11.Future finish({_i2.SpanStatus? status, DateTime? endTimestamp}) => (super.noSuchMethod( - Invocation.method( - #finish, - [], - { - #status: status, - #endTimestamp: endTimestamp, - }, - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#finish, [], { + #status: status, + #endTimestamp: endTimestamp, + }), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void removeData(String? key) => super.noSuchMethod( - Invocation.method( - #removeData, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeData, [key]), + returnValueForMissingStub: null, + ); @override void removeTag(String? key) => super.noSuchMethod( - Invocation.method( - #removeTag, - [key], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeTag, [key]), + returnValueForMissingStub: null, + ); @override - void setData( - String? key, - dynamic value, - ) => - super.noSuchMethod( - Invocation.method( - #setData, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setData(String? key, dynamic value) => super.noSuchMethod( + Invocation.method(#setData, [key, value]), + returnValueForMissingStub: null, + ); @override - void setTag( - String? key, - String? value, - ) => - super.noSuchMethod( - Invocation.method( - #setTag, - [ - key, - value, - ], - ), - returnValueForMissingStub: null, - ); + void setTag(String? key, String? value) => super.noSuchMethod( + Invocation.method(#setTag, [key, value]), + returnValueForMissingStub: null, + ); @override _i2.ISentrySpan startChild( @@ -1263,77 +901,56 @@ class MockSentrySpan extends _i1.Mock implements _i2.SentrySpan { DateTime? startTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startChild, - [operation], - { - #description: description, - #startTimestamp: startTimestamp, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startChild, + [operation], + {#description: description, #startTimestamp: startTimestamp}, + ), + ), + ) + as _i2.ISentrySpan); @override - Map toJson() => (super.noSuchMethod( - Invocation.method( - #toJson, - [], - ), - returnValue: {}, - ) as Map); + Map toJson() => + (super.noSuchMethod( + Invocation.method(#toJson, []), + returnValue: {}, + ) + as Map); @override - _i2.SentryTraceHeader toSentryTrace() => (super.noSuchMethod( - Invocation.method( - #toSentryTrace, - [], - ), - returnValue: _FakeSentryTraceHeader_3( - this, - Invocation.method( - #toSentryTrace, - [], - ), - ), - ) as _i2.SentryTraceHeader); + _i2.SentryTraceHeader toSentryTrace() => + (super.noSuchMethod( + Invocation.method(#toSentryTrace, []), + returnValue: _FakeSentryTraceHeader_3( + this, + Invocation.method(#toSentryTrace, []), + ), + ) + as _i2.SentryTraceHeader); @override void setMeasurement( String? name, num? value, { _i2.SentryMeasurementUnit? unit, - }) => - super.noSuchMethod( - Invocation.method( - #setMeasurement, - [ - name, - value, - ], - {#unit: unit}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#setMeasurement, [name, value], {#unit: unit}), + returnValueForMissingStub: null, + ); @override void scheduleFinish() => super.noSuchMethod( - Invocation.method( - #scheduleFinish, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFinish, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryClient]. @@ -1352,28 +969,23 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureEvent, - [event], - { - #scope: scope, - #stackTrace: stackTrace, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureEvent, - [event], - { - #scope: scope, - #stackTrace: stackTrace, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureEvent, + [event], + {#scope: scope, #stackTrace: stackTrace, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureEvent, + [event], + {#scope: scope, #stackTrace: stackTrace, #hint: hint}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureException( @@ -1383,28 +995,23 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #scope: scope, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #scope: scope, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #scope: scope, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #scope: scope, #hint: hint}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureMessage( @@ -1416,32 +1023,35 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureMessage, - [formatted], - { - #level: level, - #template: template, - #params: params, - #scope: scope, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureMessage, - [formatted], - { - #level: level, - #template: template, - #params: params, - #scope: scope, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureMessage, + [formatted], + { + #level: level, + #template: template, + #params: params, + #scope: scope, + #hint: hint, + }, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureMessage, + [formatted], + { + #level: level, + #template: template, + #params: params, + #scope: scope, + #hint: hint, + }, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureTransaction( @@ -1450,47 +1060,40 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.SentryTraceContextHeader? traceContext, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - { - #scope: scope, - #traceContext: traceContext, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureTransaction, - [transaction], - { - #scope: scope, - #traceContext: traceContext, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureTransaction, + [transaction], + {#scope: scope, #traceContext: traceContext}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#scope: scope, #traceContext: traceContext}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId?> captureEnvelope(_i2.SentryEnvelope? envelope) => (super.noSuchMethod( - Invocation.method( - #captureEnvelope, - [envelope], - ), - returnValue: _i11.Future<_i2.SentryId?>.value(), - ) as _i11.Future<_i2.SentryId?>); + Invocation.method(#captureEnvelope, [envelope]), + returnValue: _i11.Future<_i2.SentryId?>.value(), + ) + as _i11.Future<_i2.SentryId?>); @override _i11.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#captureUserFeedback, [userFeedback]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override _i11.Future<_i2.SentryId> captureFeedback( @@ -1499,35 +1102,29 @@ class MockSentryClient extends _i1.Mock implements _i2.SentryClient { _i2.Hint? hint, }) => (super.noSuchMethod( - Invocation.method( - #captureFeedback, - [feedback], - { - #scope: scope, - #hint: hint, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureFeedback, - [feedback], - { - #scope: scope, - #hint: hint, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureFeedback, + [feedback], + {#scope: scope, #hint: hint}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#scope: scope, #hint: hint}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override void close() => super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#close, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [MethodChannel]. @@ -1539,47 +1136,42 @@ class MockMethodChannel extends _i1.Mock implements _i4.MethodChannel { } @override - String get name => (super.noSuchMethod( - Invocation.getter(#name), - returnValue: _i14.dummyValue( - this, - Invocation.getter(#name), - ), - ) as String); + String get name => + (super.noSuchMethod( + Invocation.getter(#name), + returnValue: _i14.dummyValue( + this, + Invocation.getter(#name), + ), + ) + as String); @override - _i4.MethodCodec get codec => (super.noSuchMethod( - Invocation.getter(#codec), - returnValue: _FakeMethodCodec_8( - this, - Invocation.getter(#codec), - ), - ) as _i4.MethodCodec); + _i4.MethodCodec get codec => + (super.noSuchMethod( + Invocation.getter(#codec), + returnValue: _FakeMethodCodec_8(this, Invocation.getter(#codec)), + ) + as _i4.MethodCodec); @override - _i4.BinaryMessenger get binaryMessenger => (super.noSuchMethod( - Invocation.getter(#binaryMessenger), - returnValue: _FakeBinaryMessenger_9( - this, - Invocation.getter(#binaryMessenger), - ), - ) as _i4.BinaryMessenger); + _i4.BinaryMessenger get binaryMessenger => + (super.noSuchMethod( + Invocation.getter(#binaryMessenger), + returnValue: _FakeBinaryMessenger_9( + this, + Invocation.getter(#binaryMessenger), + ), + ) + as _i4.BinaryMessenger); @override - _i11.Future invokeMethod( - String? method, [ - dynamic arguments, - ]) => + _i11.Future invokeMethod(String? method, [dynamic arguments]) => (super.noSuchMethod( - Invocation.method( - #invokeMethod, - [ - method, - arguments, - ], - ), - returnValue: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#invokeMethod, [method, arguments]), + returnValue: _i11.Future.value(), + ) + as _i11.Future); @override _i11.Future?> invokeListMethod( @@ -1587,15 +1179,10 @@ class MockMethodChannel extends _i1.Mock implements _i4.MethodChannel { dynamic arguments, ]) => (super.noSuchMethod( - Invocation.method( - #invokeListMethod, - [ - method, - arguments, - ], - ), - returnValue: _i11.Future?>.value(), - ) as _i11.Future?>); + Invocation.method(#invokeListMethod, [method, arguments]), + returnValue: _i11.Future?>.value(), + ) + as _i11.Future?>); @override _i11.Future?> invokeMapMethod( @@ -1603,26 +1190,18 @@ class MockMethodChannel extends _i1.Mock implements _i4.MethodChannel { dynamic arguments, ]) => (super.noSuchMethod( - Invocation.method( - #invokeMapMethod, - [ - method, - arguments, - ], - ), - returnValue: _i11.Future?>.value(), - ) as _i11.Future?>); + Invocation.method(#invokeMapMethod, [method, arguments]), + returnValue: _i11.Future?>.value(), + ) + as _i11.Future?>); @override void setMethodCallHandler( - _i11.Future Function(_i4.MethodCall)? handler) => - super.noSuchMethod( - Invocation.method( - #setMethodCallHandler, - [handler], - ), - returnValueForMissingStub: null, - ); + _i11.Future Function(_i4.MethodCall)? handler, + ) => super.noSuchMethod( + Invocation.method(#setMethodCallHandler, [handler]), + returnValueForMissingStub: null, + ); } /// A class which mocks [SentryNativeBinding]. @@ -1635,137 +1214,103 @@ class MockSentryNativeBinding extends _i1.Mock } @override - bool get supportsCaptureEnvelope => (super.noSuchMethod( - Invocation.getter(#supportsCaptureEnvelope), - returnValue: false, - ) as bool); + bool get supportsCaptureEnvelope => + (super.noSuchMethod( + Invocation.getter(#supportsCaptureEnvelope), + returnValue: false, + ) + as bool); @override - bool get supportsLoadContexts => (super.noSuchMethod( - Invocation.getter(#supportsLoadContexts), - returnValue: false, - ) as bool); + bool get supportsLoadContexts => + (super.noSuchMethod( + Invocation.getter(#supportsLoadContexts), + returnValue: false, + ) + as bool); @override - bool get supportsReplay => (super.noSuchMethod( - Invocation.getter(#supportsReplay), - returnValue: false, - ) as bool); + bool get supportsReplay => + (super.noSuchMethod( + Invocation.getter(#supportsReplay), + returnValue: false, + ) + as bool); @override _i11.FutureOr init(_i2.Hub? hub) => - (super.noSuchMethod(Invocation.method( - #init, - [hub], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#init, [hub])) + as _i11.FutureOr); @override _i11.FutureOr captureEnvelope( _i17.Uint8List? envelopeData, bool? containsUnhandledException, ) => - (super.noSuchMethod(Invocation.method( - #captureEnvelope, - [ - envelopeData, - containsUnhandledException, - ], - )) as _i11.FutureOr); + (super.noSuchMethod( + Invocation.method(#captureEnvelope, [ + envelopeData, + containsUnhandledException, + ]), + ) + as _i11.FutureOr); @override _i11.FutureOr captureStructuredEnvelope(_i2.SentryEnvelope? envelope) => - (super.noSuchMethod(Invocation.method( - #captureStructuredEnvelope, - [envelope], - )) as _i11.FutureOr); + (super.noSuchMethod( + Invocation.method(#captureStructuredEnvelope, [envelope]), + ) + as _i11.FutureOr); @override _i11.FutureOr<_i18.NativeFrames?> endNativeFrames(_i2.SentryId? id) => - (super.noSuchMethod(Invocation.method( - #endNativeFrames, - [id], - )) as _i11.FutureOr<_i18.NativeFrames?>); + (super.noSuchMethod(Invocation.method(#endNativeFrames, [id])) + as _i11.FutureOr<_i18.NativeFrames?>); @override _i11.FutureOr addBreadcrumb(_i2.Breadcrumb? breadcrumb) => - (super.noSuchMethod(Invocation.method( - #addBreadcrumb, - [breadcrumb], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#addBreadcrumb, [breadcrumb])) + as _i11.FutureOr); @override - _i11.FutureOr setContexts( - String? key, - dynamic value, - ) => - (super.noSuchMethod(Invocation.method( - #setContexts, - [ - key, - value, - ], - )) as _i11.FutureOr); + _i11.FutureOr setContexts(String? key, dynamic value) => + (super.noSuchMethod(Invocation.method(#setContexts, [key, value])) + as _i11.FutureOr); @override _i11.FutureOr removeContexts(String? key) => - (super.noSuchMethod(Invocation.method( - #removeContexts, - [key], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#removeContexts, [key])) + as _i11.FutureOr); @override - _i11.FutureOr setExtra( - String? key, - dynamic value, - ) => - (super.noSuchMethod(Invocation.method( - #setExtra, - [ - key, - value, - ], - )) as _i11.FutureOr); + _i11.FutureOr setExtra(String? key, dynamic value) => + (super.noSuchMethod(Invocation.method(#setExtra, [key, value])) + as _i11.FutureOr); @override _i11.FutureOr removeExtra(String? key) => - (super.noSuchMethod(Invocation.method( - #removeExtra, - [key], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#removeExtra, [key])) + as _i11.FutureOr); @override - _i11.FutureOr setTag( - String? key, - String? value, - ) => - (super.noSuchMethod(Invocation.method( - #setTag, - [ - key, - value, - ], - )) as _i11.FutureOr); + _i11.FutureOr setTag(String? key, String? value) => + (super.noSuchMethod(Invocation.method(#setTag, [key, value])) + as _i11.FutureOr); @override _i11.FutureOr removeTag(String? key) => - (super.noSuchMethod(Invocation.method( - #removeTag, - [key], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#removeTag, [key])) + as _i11.FutureOr); @override int? startProfiler(_i2.SentryId? traceId) => - (super.noSuchMethod(Invocation.method( - #startProfiler, - [traceId], - )) as int?); + (super.noSuchMethod(Invocation.method(#startProfiler, [traceId])) + as int?); @override _i11.FutureOr discardProfiler(_i2.SentryId? traceId) => - (super.noSuchMethod(Invocation.method( - #discardProfiler, - [traceId], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#discardProfiler, [traceId])) + as _i11.FutureOr); @override _i11.FutureOr?> collectProfile( @@ -1773,45 +1318,39 @@ class MockSentryNativeBinding extends _i1.Mock int? startTimeNs, int? endTimeNs, ) => - (super.noSuchMethod(Invocation.method( - #collectProfile, - [ - traceId, - startTimeNs, - endTimeNs, - ], - )) as _i11.FutureOr?>); + (super.noSuchMethod( + Invocation.method(#collectProfile, [ + traceId, + startTimeNs, + endTimeNs, + ]), + ) + as _i11.FutureOr?>); @override _i11.FutureOr?> loadDebugImages( - _i2.SentryStackTrace? stackTrace) => - (super.noSuchMethod(Invocation.method( - #loadDebugImages, - [stackTrace], - )) as _i11.FutureOr?>); + _i2.SentryStackTrace? stackTrace, + ) => + (super.noSuchMethod(Invocation.method(#loadDebugImages, [stackTrace])) + as _i11.FutureOr?>); @override _i11.FutureOr setReplayConfig(_i19.ReplayConfig? config) => - (super.noSuchMethod(Invocation.method( - #setReplayConfig, - [config], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#setReplayConfig, [config])) + as _i11.FutureOr); @override _i11.FutureOr<_i2.SentryId> captureReplay(bool? isCrash) => (super.noSuchMethod( - Invocation.method( - #captureReplay, - [isCrash], - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureReplay, - [isCrash], - ), - )), - ) as _i11.FutureOr<_i2.SentryId>); + Invocation.method(#captureReplay, [isCrash]), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method(#captureReplay, [isCrash]), + ), + ), + ) + as _i11.FutureOr<_i2.SentryId>); } /// A class which mocks [SentryDelayedFramesTracker]. @@ -1824,34 +1363,32 @@ class MockSentryDelayedFramesTracker extends _i1.Mock } @override - List<_i20.SentryFrameTiming> get delayedFrames => (super.noSuchMethod( - Invocation.getter(#delayedFrames), - returnValue: <_i20.SentryFrameTiming>[], - ) as List<_i20.SentryFrameTiming>); + List<_i20.SentryFrameTiming> get delayedFrames => + (super.noSuchMethod( + Invocation.getter(#delayedFrames), + returnValue: <_i20.SentryFrameTiming>[], + ) + as List<_i20.SentryFrameTiming>); @override - bool get isTrackingActive => (super.noSuchMethod( - Invocation.getter(#isTrackingActive), - returnValue: false, - ) as bool); + bool get isTrackingActive => + (super.noSuchMethod( + Invocation.getter(#isTrackingActive), + returnValue: false, + ) + as bool); @override void resume() => super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resume, []), + returnValueForMissingStub: null, + ); @override void pause() => super.noSuchMethod( - Invocation.method( - #pause, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#pause, []), + returnValueForMissingStub: null, + ); @override List<_i20.SentryFrameTiming> getFramesIntersecting({ @@ -1859,40 +1396,25 @@ class MockSentryDelayedFramesTracker extends _i1.Mock required DateTime? endTimestamp, }) => (super.noSuchMethod( - Invocation.method( - #getFramesIntersecting, - [], - { - #startTimestamp: startTimestamp, - #endTimestamp: endTimestamp, - }, - ), - returnValue: <_i20.SentryFrameTiming>[], - ) as List<_i20.SentryFrameTiming>); + Invocation.method(#getFramesIntersecting, [], { + #startTimestamp: startTimestamp, + #endTimestamp: endTimestamp, + }), + returnValue: <_i20.SentryFrameTiming>[], + ) + as List<_i20.SentryFrameTiming>); @override - void addFrame( - DateTime? startTimestamp, - DateTime? endTimestamp, - ) => + void addFrame(DateTime? startTimestamp, DateTime? endTimestamp) => super.noSuchMethod( - Invocation.method( - #addFrame, - [ - startTimestamp, - endTimestamp, - ], - ), + Invocation.method(#addFrame, [startTimestamp, endTimestamp]), returnValueForMissingStub: null, ); @override void removeIrrelevantFrames(DateTime? spanStartTimestamp) => super.noSuchMethod( - Invocation.method( - #removeIrrelevantFrames, - [spanStartTimestamp], - ), + Invocation.method(#removeIrrelevantFrames, [spanStartTimestamp]), returnValueForMissingStub: null, ); @@ -1901,23 +1423,19 @@ class MockSentryDelayedFramesTracker extends _i1.Mock required DateTime? spanStartTimestamp, required DateTime? spanEndTimestamp, }) => - (super.noSuchMethod(Invocation.method( - #getFrameMetrics, - [], - { - #spanStartTimestamp: spanStartTimestamp, - #spanEndTimestamp: spanEndTimestamp, - }, - )) as _i20.SpanFrameMetrics?); + (super.noSuchMethod( + Invocation.method(#getFrameMetrics, [], { + #spanStartTimestamp: spanStartTimestamp, + #spanEndTimestamp: spanEndTimestamp, + }), + ) + as _i20.SpanFrameMetrics?); @override void clear() => super.noSuchMethod( - Invocation.method( - #clear, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [BindingWrapper]. @@ -1929,19 +1447,15 @@ class MockBindingWrapper extends _i1.Mock implements _i2.BindingWrapper { } @override - _i5.WidgetsBinding ensureInitialized() => (super.noSuchMethod( - Invocation.method( - #ensureInitialized, - [], - ), - returnValue: _FakeWidgetsBinding_10( - this, - Invocation.method( - #ensureInitialized, - [], - ), - ), - ) as _i5.WidgetsBinding); + _i5.WidgetsBinding ensureInitialized() => + (super.noSuchMethod( + Invocation.method(#ensureInitialized, []), + returnValue: _FakeWidgetsBinding_10( + this, + Invocation.method(#ensureInitialized, []), + ), + ) + as _i5.WidgetsBinding); } /// A class which mocks [WidgetsFlutterBinding]. @@ -1954,337 +1468,393 @@ class MockWidgetsFlutterBinding extends _i1.Mock } @override - _i6.SingletonFlutterWindow get window => (super.noSuchMethod( - Invocation.getter(#window), - returnValue: _FakeSingletonFlutterWindow_11( - this, - Invocation.getter(#window), - ), - ) as _i6.SingletonFlutterWindow); + _i6.SingletonFlutterWindow get window => + (super.noSuchMethod( + Invocation.getter(#window), + returnValue: _FakeSingletonFlutterWindow_11( + this, + Invocation.getter(#window), + ), + ) + as _i6.SingletonFlutterWindow); @override - _i6.PlatformDispatcher get platformDispatcher => (super.noSuchMethod( - Invocation.getter(#platformDispatcher), - returnValue: _FakePlatformDispatcher_12( - this, - Invocation.getter(#platformDispatcher), - ), - ) as _i6.PlatformDispatcher); + _i6.PlatformDispatcher get platformDispatcher => + (super.noSuchMethod( + Invocation.getter(#platformDispatcher), + returnValue: _FakePlatformDispatcher_12( + this, + Invocation.getter(#platformDispatcher), + ), + ) + as _i6.PlatformDispatcher); @override - bool get locked => (super.noSuchMethod( - Invocation.getter(#locked), - returnValue: false, - ) as bool); + bool get locked => + (super.noSuchMethod(Invocation.getter(#locked), returnValue: false) + as bool); @override - _i7.PointerRouter get pointerRouter => (super.noSuchMethod( - Invocation.getter(#pointerRouter), - returnValue: _FakePointerRouter_13( - this, - Invocation.getter(#pointerRouter), - ), - ) as _i7.PointerRouter); + _i7.PointerRouter get pointerRouter => + (super.noSuchMethod( + Invocation.getter(#pointerRouter), + returnValue: _FakePointerRouter_13( + this, + Invocation.getter(#pointerRouter), + ), + ) + as _i7.PointerRouter); @override - _i7.GestureArenaManager get gestureArena => (super.noSuchMethod( - Invocation.getter(#gestureArena), - returnValue: _FakeGestureArenaManager_14( - this, - Invocation.getter(#gestureArena), - ), - ) as _i7.GestureArenaManager); + _i7.GestureArenaManager get gestureArena => + (super.noSuchMethod( + Invocation.getter(#gestureArena), + returnValue: _FakeGestureArenaManager_14( + this, + Invocation.getter(#gestureArena), + ), + ) + as _i7.GestureArenaManager); @override - _i7.PointerSignalResolver get pointerSignalResolver => (super.noSuchMethod( - Invocation.getter(#pointerSignalResolver), - returnValue: _FakePointerSignalResolver_15( - this, - Invocation.getter(#pointerSignalResolver), - ), - ) as _i7.PointerSignalResolver); + _i7.PointerSignalResolver get pointerSignalResolver => + (super.noSuchMethod( + Invocation.getter(#pointerSignalResolver), + returnValue: _FakePointerSignalResolver_15( + this, + Invocation.getter(#pointerSignalResolver), + ), + ) + as _i7.PointerSignalResolver); @override - bool get resamplingEnabled => (super.noSuchMethod( - Invocation.getter(#resamplingEnabled), - returnValue: false, - ) as bool); + bool get resamplingEnabled => + (super.noSuchMethod( + Invocation.getter(#resamplingEnabled), + returnValue: false, + ) + as bool); @override set resamplingEnabled(bool? _resamplingEnabled) => super.noSuchMethod( - Invocation.setter( - #resamplingEnabled, - _resamplingEnabled, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#resamplingEnabled, _resamplingEnabled), + returnValueForMissingStub: null, + ); @override - Duration get samplingOffset => (super.noSuchMethod( - Invocation.getter(#samplingOffset), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#samplingOffset), - ), - ) as Duration); + Duration get samplingOffset => + (super.noSuchMethod( + Invocation.getter(#samplingOffset), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#samplingOffset), + ), + ) + as Duration); @override set samplingOffset(Duration? _samplingOffset) => super.noSuchMethod( - Invocation.setter( - #samplingOffset, - _samplingOffset, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#samplingOffset, _samplingOffset), + returnValueForMissingStub: null, + ); @override - _i7.SamplingClock get samplingClock => (super.noSuchMethod( - Invocation.getter(#samplingClock), - returnValue: _FakeSamplingClock_17( - this, - Invocation.getter(#samplingClock), - ), - ) as _i7.SamplingClock); + _i7.SamplingClock get samplingClock => + (super.noSuchMethod( + Invocation.getter(#samplingClock), + returnValue: _FakeSamplingClock_17( + this, + Invocation.getter(#samplingClock), + ), + ) + as _i7.SamplingClock); @override - _i21.SchedulingStrategy get schedulingStrategy => (super.noSuchMethod( - Invocation.getter(#schedulingStrategy), - returnValue: ({ - required int priority, - required _i21.SchedulerBinding scheduler, - }) => - false, - ) as _i21.SchedulingStrategy); + _i21.SchedulingStrategy get schedulingStrategy => + (super.noSuchMethod( + Invocation.getter(#schedulingStrategy), + returnValue: + ({ + required int priority, + required _i21.SchedulerBinding scheduler, + }) => false, + ) + as _i21.SchedulingStrategy); @override set schedulingStrategy(_i21.SchedulingStrategy? _schedulingStrategy) => super.noSuchMethod( - Invocation.setter( - #schedulingStrategy, - _schedulingStrategy, - ), + Invocation.setter(#schedulingStrategy, _schedulingStrategy), returnValueForMissingStub: null, ); @override - int get transientCallbackCount => (super.noSuchMethod( - Invocation.getter(#transientCallbackCount), - returnValue: 0, - ) as int); + int get transientCallbackCount => + (super.noSuchMethod( + Invocation.getter(#transientCallbackCount), + returnValue: 0, + ) + as int); @override - _i11.Future get endOfFrame => (super.noSuchMethod( - Invocation.getter(#endOfFrame), - returnValue: _i11.Future.value(), - ) as _i11.Future); + _i11.Future get endOfFrame => + (super.noSuchMethod( + Invocation.getter(#endOfFrame), + returnValue: _i11.Future.value(), + ) + as _i11.Future); @override - bool get hasScheduledFrame => (super.noSuchMethod( - Invocation.getter(#hasScheduledFrame), - returnValue: false, - ) as bool); + bool get hasScheduledFrame => + (super.noSuchMethod( + Invocation.getter(#hasScheduledFrame), + returnValue: false, + ) + as bool); @override - _i21.SchedulerPhase get schedulerPhase => (super.noSuchMethod( - Invocation.getter(#schedulerPhase), - returnValue: _i21.SchedulerPhase.idle, - ) as _i21.SchedulerPhase); + _i21.SchedulerPhase get schedulerPhase => + (super.noSuchMethod( + Invocation.getter(#schedulerPhase), + returnValue: _i21.SchedulerPhase.idle, + ) + as _i21.SchedulerPhase); @override - bool get framesEnabled => (super.noSuchMethod( - Invocation.getter(#framesEnabled), - returnValue: false, - ) as bool); + bool get framesEnabled => + (super.noSuchMethod(Invocation.getter(#framesEnabled), returnValue: false) + as bool); @override - Duration get currentFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentFrameTimeStamp), - ), - ) as Duration); + Duration get currentFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentFrameTimeStamp), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#currentFrameTimeStamp), + ), + ) + as Duration); @override - Duration get currentSystemFrameTimeStamp => (super.noSuchMethod( - Invocation.getter(#currentSystemFrameTimeStamp), - returnValue: _FakeDuration_16( - this, - Invocation.getter(#currentSystemFrameTimeStamp), - ), - ) as Duration); + Duration get currentSystemFrameTimeStamp => + (super.noSuchMethod( + Invocation.getter(#currentSystemFrameTimeStamp), + returnValue: _FakeDuration_16( + this, + Invocation.getter(#currentSystemFrameTimeStamp), + ), + ) + as Duration); @override - _i8.ValueNotifier get accessibilityFocus => (super.noSuchMethod( - Invocation.getter(#accessibilityFocus), - returnValue: _FakeValueNotifier_18( - this, - Invocation.getter(#accessibilityFocus), - ), - ) as _i8.ValueNotifier); + _i8.ValueNotifier get accessibilityFocus => + (super.noSuchMethod( + Invocation.getter(#accessibilityFocus), + returnValue: _FakeValueNotifier_18( + this, + Invocation.getter(#accessibilityFocus), + ), + ) + as _i8.ValueNotifier); @override - _i4.HardwareKeyboard get keyboard => (super.noSuchMethod( - Invocation.getter(#keyboard), - returnValue: _FakeHardwareKeyboard_19( - this, - Invocation.getter(#keyboard), - ), - ) as _i4.HardwareKeyboard); + _i4.HardwareKeyboard get keyboard => + (super.noSuchMethod( + Invocation.getter(#keyboard), + returnValue: _FakeHardwareKeyboard_19( + this, + Invocation.getter(#keyboard), + ), + ) + as _i4.HardwareKeyboard); @override - _i4.KeyEventManager get keyEventManager => (super.noSuchMethod( - Invocation.getter(#keyEventManager), - returnValue: _FakeKeyEventManager_20( - this, - Invocation.getter(#keyEventManager), - ), - ) as _i4.KeyEventManager); + _i4.KeyEventManager get keyEventManager => + (super.noSuchMethod( + Invocation.getter(#keyEventManager), + returnValue: _FakeKeyEventManager_20( + this, + Invocation.getter(#keyEventManager), + ), + ) + as _i4.KeyEventManager); @override - _i4.BinaryMessenger get defaultBinaryMessenger => (super.noSuchMethod( - Invocation.getter(#defaultBinaryMessenger), - returnValue: _FakeBinaryMessenger_9( - this, - Invocation.getter(#defaultBinaryMessenger), - ), - ) as _i4.BinaryMessenger); + _i4.BinaryMessenger get defaultBinaryMessenger => + (super.noSuchMethod( + Invocation.getter(#defaultBinaryMessenger), + returnValue: _FakeBinaryMessenger_9( + this, + Invocation.getter(#defaultBinaryMessenger), + ), + ) + as _i4.BinaryMessenger); @override - _i6.ChannelBuffers get channelBuffers => (super.noSuchMethod( - Invocation.getter(#channelBuffers), - returnValue: _FakeChannelBuffers_21( - this, - Invocation.getter(#channelBuffers), - ), - ) as _i6.ChannelBuffers); + _i6.ChannelBuffers get channelBuffers => + (super.noSuchMethod( + Invocation.getter(#channelBuffers), + returnValue: _FakeChannelBuffers_21( + this, + Invocation.getter(#channelBuffers), + ), + ) + as _i6.ChannelBuffers); @override - _i4.RestorationManager get restorationManager => (super.noSuchMethod( - Invocation.getter(#restorationManager), - returnValue: _FakeRestorationManager_22( - this, - Invocation.getter(#restorationManager), - ), - ) as _i4.RestorationManager); + _i4.RestorationManager get restorationManager => + (super.noSuchMethod( + Invocation.getter(#restorationManager), + returnValue: _FakeRestorationManager_22( + this, + Invocation.getter(#restorationManager), + ), + ) + as _i4.RestorationManager); @override - _i9.ImageCache get imageCache => (super.noSuchMethod( - Invocation.getter(#imageCache), - returnValue: _FakeImageCache_23( - this, - Invocation.getter(#imageCache), - ), - ) as _i9.ImageCache); + _i9.ImageCache get imageCache => + (super.noSuchMethod( + Invocation.getter(#imageCache), + returnValue: _FakeImageCache_23( + this, + Invocation.getter(#imageCache), + ), + ) + as _i9.ImageCache); @override - _i8.Listenable get systemFonts => (super.noSuchMethod( - Invocation.getter(#systemFonts), - returnValue: _FakeListenable_24( - this, - Invocation.getter(#systemFonts), - ), - ) as _i8.Listenable); + _i8.Listenable get systemFonts => + (super.noSuchMethod( + Invocation.getter(#systemFonts), + returnValue: _FakeListenable_24( + this, + Invocation.getter(#systemFonts), + ), + ) + as _i8.Listenable); @override - bool get semanticsEnabled => (super.noSuchMethod( - Invocation.getter(#semanticsEnabled), - returnValue: false, - ) as bool); + bool get semanticsEnabled => + (super.noSuchMethod( + Invocation.getter(#semanticsEnabled), + returnValue: false, + ) + as bool); @override - int get debugOutstandingSemanticsHandles => (super.noSuchMethod( - Invocation.getter(#debugOutstandingSemanticsHandles), - returnValue: 0, - ) as int); + int get debugOutstandingSemanticsHandles => + (super.noSuchMethod( + Invocation.getter(#debugOutstandingSemanticsHandles), + returnValue: 0, + ) + as int); @override - _i6.AccessibilityFeatures get accessibilityFeatures => (super.noSuchMethod( - Invocation.getter(#accessibilityFeatures), - returnValue: _FakeAccessibilityFeatures_25( - this, - Invocation.getter(#accessibilityFeatures), - ), - ) as _i6.AccessibilityFeatures); + _i6.AccessibilityFeatures get accessibilityFeatures => + (super.noSuchMethod( + Invocation.getter(#accessibilityFeatures), + returnValue: _FakeAccessibilityFeatures_25( + this, + Invocation.getter(#accessibilityFeatures), + ), + ) + as _i6.AccessibilityFeatures); @override - bool get disableAnimations => (super.noSuchMethod( - Invocation.getter(#disableAnimations), - returnValue: false, - ) as bool); + bool get disableAnimations => + (super.noSuchMethod( + Invocation.getter(#disableAnimations), + returnValue: false, + ) + as bool); @override - _i10.PipelineOwner get pipelineOwner => (super.noSuchMethod( - Invocation.getter(#pipelineOwner), - returnValue: _FakePipelineOwner_26( - this, - Invocation.getter(#pipelineOwner), - ), - ) as _i10.PipelineOwner); + _i10.PipelineOwner get pipelineOwner => + (super.noSuchMethod( + Invocation.getter(#pipelineOwner), + returnValue: _i14.dummyValue<_i10.PipelineOwner>( + this, + Invocation.getter(#pipelineOwner), + ), + ) + as _i10.PipelineOwner); @override - _i10.RenderView get renderView => (super.noSuchMethod( - Invocation.getter(#renderView), - returnValue: _FakeRenderView_27( - this, - Invocation.getter(#renderView), - ), - ) as _i10.RenderView); + _i10.RenderView get renderView => + (super.noSuchMethod( + Invocation.getter(#renderView), + returnValue: _FakeRenderView_26( + this, + Invocation.getter(#renderView), + ), + ) + as _i10.RenderView); @override - _i10.MouseTracker get mouseTracker => (super.noSuchMethod( - Invocation.getter(#mouseTracker), - returnValue: _FakeMouseTracker_28( - this, - Invocation.getter(#mouseTracker), - ), - ) as _i10.MouseTracker); + _i10.MouseTracker get mouseTracker => + (super.noSuchMethod( + Invocation.getter(#mouseTracker), + returnValue: _FakeMouseTracker_27( + this, + Invocation.getter(#mouseTracker), + ), + ) + as _i10.MouseTracker); @override - _i10.PipelineOwner get rootPipelineOwner => (super.noSuchMethod( - Invocation.getter(#rootPipelineOwner), - returnValue: _FakePipelineOwner_26( - this, - Invocation.getter(#rootPipelineOwner), - ), - ) as _i10.PipelineOwner); + _i10.PipelineOwner get rootPipelineOwner => + (super.noSuchMethod( + Invocation.getter(#rootPipelineOwner), + returnValue: _i14.dummyValue<_i10.PipelineOwner>( + this, + Invocation.getter(#rootPipelineOwner), + ), + ) + as _i10.PipelineOwner); @override - Iterable<_i10.RenderView> get renderViews => (super.noSuchMethod( - Invocation.getter(#renderViews), - returnValue: <_i10.RenderView>[], - ) as Iterable<_i10.RenderView>); + Iterable<_i10.RenderView> get renderViews => + (super.noSuchMethod( + Invocation.getter(#renderViews), + returnValue: <_i10.RenderView>[], + ) + as Iterable<_i10.RenderView>); @override - bool get sendFramesToEngine => (super.noSuchMethod( - Invocation.getter(#sendFramesToEngine), - returnValue: false, - ) as bool); + bool get sendFramesToEngine => + (super.noSuchMethod( + Invocation.getter(#sendFramesToEngine), + returnValue: false, + ) + as bool); @override - _i9.PlatformMenuDelegate get platformMenuDelegate => (super.noSuchMethod( - Invocation.getter(#platformMenuDelegate), - returnValue: _FakePlatformMenuDelegate_29( - this, - Invocation.getter(#platformMenuDelegate), - ), - ) as _i9.PlatformMenuDelegate); + _i9.PlatformMenuDelegate get platformMenuDelegate => + (super.noSuchMethod( + Invocation.getter(#platformMenuDelegate), + returnValue: _FakePlatformMenuDelegate_28( + this, + Invocation.getter(#platformMenuDelegate), + ), + ) + as _i9.PlatformMenuDelegate); @override set platformMenuDelegate(_i9.PlatformMenuDelegate? _platformMenuDelegate) => super.noSuchMethod( - Invocation.setter( - #platformMenuDelegate, - _platformMenuDelegate, - ), + Invocation.setter(#platformMenuDelegate, _platformMenuDelegate), returnValueForMissingStub: null, ); @override - bool get debugBuildingDirtyElements => (super.noSuchMethod( - Invocation.getter(#debugBuildingDirtyElements), - returnValue: false, - ) as bool); + bool get debugBuildingDirtyElements => + (super.noSuchMethod( + Invocation.getter(#debugBuildingDirtyElements), + returnValue: false, + ) + as bool); @override set debugBuildingDirtyElements(bool? _debugBuildingDirtyElements) => @@ -2297,198 +1867,170 @@ class MockWidgetsFlutterBinding extends _i1.Mock ); @override - bool get debugShowWidgetInspectorOverride => (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverride), - returnValue: false, - ) as bool); + bool get debugShowWidgetInspectorOverride => + (super.noSuchMethod( + Invocation.getter(#debugShowWidgetInspectorOverride), + returnValue: false, + ) + as bool); @override set debugShowWidgetInspectorOverride(bool? value) => super.noSuchMethod( - Invocation.setter( - #debugShowWidgetInspectorOverride, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#debugShowWidgetInspectorOverride, value), + returnValueForMissingStub: null, + ); @override _i8.ValueNotifier get debugShowWidgetInspectorOverrideNotifier => (super.noSuchMethod( - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - returnValue: _FakeValueNotifier_18( - this, - Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), - ), - ) as _i8.ValueNotifier); + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + returnValue: _FakeValueNotifier_18( + this, + Invocation.getter(#debugShowWidgetInspectorOverrideNotifier), + ), + ) + as _i8.ValueNotifier); @override - _i9.FocusManager get focusManager => (super.noSuchMethod( - Invocation.getter(#focusManager), - returnValue: _FakeFocusManager_30( - this, - Invocation.getter(#focusManager), - ), - ) as _i9.FocusManager); + _i9.FocusManager get focusManager => + (super.noSuchMethod( + Invocation.getter(#focusManager), + returnValue: _FakeFocusManager_29( + this, + Invocation.getter(#focusManager), + ), + ) + as _i9.FocusManager); @override - bool get firstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#firstFrameRasterized), - returnValue: false, - ) as bool); + bool get firstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#firstFrameRasterized), + returnValue: false, + ) + as bool); @override - _i11.Future get waitUntilFirstFrameRasterized => (super.noSuchMethod( - Invocation.getter(#waitUntilFirstFrameRasterized), - returnValue: _i11.Future.value(), - ) as _i11.Future); + _i11.Future get waitUntilFirstFrameRasterized => + (super.noSuchMethod( + Invocation.getter(#waitUntilFirstFrameRasterized), + returnValue: _i11.Future.value(), + ) + as _i11.Future); @override - bool get debugDidSendFirstFrameEvent => (super.noSuchMethod( - Invocation.getter(#debugDidSendFirstFrameEvent), - returnValue: false, - ) as bool); + bool get debugDidSendFirstFrameEvent => + (super.noSuchMethod( + Invocation.getter(#debugDidSendFirstFrameEvent), + returnValue: false, + ) + as bool); @override - bool get isRootWidgetAttached => (super.noSuchMethod( - Invocation.getter(#isRootWidgetAttached), - returnValue: false, - ) as bool); + bool get isRootWidgetAttached => + (super.noSuchMethod( + Invocation.getter(#isRootWidgetAttached), + returnValue: false, + ) + as bool); @override void initInstances() => super.noSuchMethod( - Invocation.method( - #initInstances, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initInstances, []), + returnValueForMissingStub: null, + ); @override - bool debugCheckZone(String? entryPoint) => (super.noSuchMethod( - Invocation.method( - #debugCheckZone, - [entryPoint], - ), - returnValue: false, - ) as bool); + bool debugCheckZone(String? entryPoint) => + (super.noSuchMethod( + Invocation.method(#debugCheckZone, [entryPoint]), + returnValue: false, + ) + as bool); @override void initServiceExtensions() => super.noSuchMethod( - Invocation.method( - #initServiceExtensions, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initServiceExtensions, []), + returnValueForMissingStub: null, + ); @override _i11.Future lockEvents(_i11.Future Function()? callback) => (super.noSuchMethod( - Invocation.method( - #lockEvents, - [callback], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#lockEvents, [callback]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void unlocked() => super.noSuchMethod( - Invocation.method( - #unlocked, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#unlocked, []), + returnValueForMissingStub: null, + ); @override - _i11.Future reassembleApplication() => (super.noSuchMethod( - Invocation.method( - #reassembleApplication, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future reassembleApplication() => + (super.noSuchMethod( + Invocation.method(#reassembleApplication, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override - _i11.Future performReassemble() => (super.noSuchMethod( - Invocation.method( - #performReassemble, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future performReassemble() => + (super.noSuchMethod( + Invocation.method(#performReassemble, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void registerSignalServiceExtension({ required String? name, required _i8.AsyncCallback? callback, - }) => - super.noSuchMethod( - Invocation.method( - #registerSignalServiceExtension, - [], - { - #name: name, - #callback: callback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerSignalServiceExtension, [], { + #name: name, + #callback: callback, + }), + returnValueForMissingStub: null, + ); @override void registerBoolServiceExtension({ required String? name, required _i8.AsyncValueGetter? getter, required _i8.AsyncValueSetter? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerBoolServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerBoolServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); @override void registerNumericServiceExtension({ required String? name, required _i8.AsyncValueGetter? getter, required _i8.AsyncValueSetter? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerNumericServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerNumericServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); @override - void postEvent( - String? eventKind, - Map? eventData, - ) => + void postEvent(String? eventKind, Map? eventData) => super.noSuchMethod( - Invocation.method( - #postEvent, - [ - eventKind, - eventData, - ], - ), + Invocation.method(#postEvent, [eventKind, eventData]), returnValueForMissingStub: null, ); @@ -2497,86 +2039,53 @@ class MockWidgetsFlutterBinding extends _i1.Mock required String? name, required _i8.AsyncValueGetter? getter, required _i8.AsyncValueSetter? setter, - }) => - super.noSuchMethod( - Invocation.method( - #registerStringServiceExtension, - [], - { - #name: name, - #getter: getter, - #setter: setter, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerStringServiceExtension, [], { + #name: name, + #getter: getter, + #setter: setter, + }), + returnValueForMissingStub: null, + ); @override void registerServiceExtension({ required String? name, required _i8.ServiceExtensionCallback? callback, - }) => - super.noSuchMethod( - Invocation.method( - #registerServiceExtension, - [], - { - #name: name, - #callback: callback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#registerServiceExtension, [], { + #name: name, + #callback: callback, + }), + returnValueForMissingStub: null, + ); @override void cancelPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #cancelPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#cancelPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void handlePointerEvent(_i4.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handlePointerEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePointerEvent, [event]), + returnValueForMissingStub: null, + ); @override void hitTestInView( _i7.HitTestResult? result, _i6.Offset? position, int? viewId, - ) => - super.noSuchMethod( - Invocation.method( - #hitTestInView, - [ - result, - position, - viewId, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#hitTestInView, [result, position, viewId]), + returnValueForMissingStub: null, + ); @override - void hitTest( - _i7.HitTestResult? result, - _i6.Offset? position, - ) => + void hitTest(_i7.HitTestResult? result, _i6.Offset? position) => super.noSuchMethod( - Invocation.method( - #hitTest, - [ - result, - position, - ], - ), + Invocation.method(#hitTest, [result, position]), returnValueForMissingStub: null, ); @@ -2584,78 +2093,49 @@ class MockWidgetsFlutterBinding extends _i1.Mock void dispatchEvent( _i4.PointerEvent? event, _i7.HitTestResult? hitTestResult, - ) => - super.noSuchMethod( - Invocation.method( - #dispatchEvent, - [ - event, - hitTestResult, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#dispatchEvent, [event, hitTestResult]), + returnValueForMissingStub: null, + ); @override void handleEvent( _i4.PointerEvent? event, _i7.HitTestEntry<_i7.HitTestTarget>? entry, - ) => - super.noSuchMethod( - Invocation.method( - #handleEvent, - [ - event, - entry, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#handleEvent, [event, entry]), + returnValueForMissingStub: null, + ); @override void resetGestureBinding() => super.noSuchMethod( - Invocation.method( - #resetGestureBinding, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetGestureBinding, []), + returnValueForMissingStub: null, + ); @override void addTimingsCallback(_i6.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #addTimingsCallback, - [callback], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addTimingsCallback, [callback]), + returnValueForMissingStub: null, + ); @override void removeTimingsCallback(_i6.TimingsCallback? callback) => super.noSuchMethod( - Invocation.method( - #removeTimingsCallback, - [callback], - ), + Invocation.method(#removeTimingsCallback, [callback]), returnValueForMissingStub: null, ); @override void resetInternalState() => super.noSuchMethod( - Invocation.method( - #resetInternalState, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetInternalState, []), + returnValueForMissingStub: null, + ); @override void handleAppLifecycleStateChanged(_i6.AppLifecycleState? state) => super.noSuchMethod( - Invocation.method( - #handleAppLifecycleStateChanged, - [state], - ), + Invocation.method(#handleAppLifecycleStateChanged, [state]), returnValueForMissingStub: null, ); @@ -2667,58 +2147,41 @@ class MockWidgetsFlutterBinding extends _i1.Mock _i22.Flow? flow, }) => (super.noSuchMethod( - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - returnValue: _i14.ifNotNull( - _i14.dummyValueOrNull( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), - ), - (T v) => _i11.Future.value(v), - ) ?? - _FakeFuture_31( - this, - Invocation.method( - #scheduleTask, - [ - task, - priority, - ], - { - #debugLabel: debugLabel, - #flow: flow, - }, - ), + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, ), - ) as _i11.Future); + returnValue: + _i14.ifNotNull( + _i14.dummyValueOrNull( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + (T v) => _i11.Future.value(v), + ) ?? + _FakeFuture_30( + this, + Invocation.method( + #scheduleTask, + [task, priority], + {#debugLabel: debugLabel, #flow: flow}, + ), + ), + ) + as _i11.Future); @override - bool handleEventLoopCallback() => (super.noSuchMethod( - Invocation.method( - #handleEventLoopCallback, - [], - ), - returnValue: false, - ) as bool); + bool handleEventLoopCallback() => + (super.noSuchMethod( + Invocation.method(#handleEventLoopCallback, []), + returnValue: false, + ) + as bool); @override int scheduleFrameCallback( @@ -2726,236 +2189,181 @@ class MockWidgetsFlutterBinding extends _i1.Mock bool? rescheduling = false, }) => (super.noSuchMethod( - Invocation.method( - #scheduleFrameCallback, - [callback], - {#rescheduling: rescheduling}, - ), - returnValue: 0, - ) as int); + Invocation.method( + #scheduleFrameCallback, + [callback], + {#rescheduling: rescheduling}, + ), + returnValue: 0, + ) + as int); @override void cancelFrameCallbackWithId(int? id) => super.noSuchMethod( - Invocation.method( - #cancelFrameCallbackWithId, - [id], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#cancelFrameCallbackWithId, [id]), + returnValueForMissingStub: null, + ); @override - bool debugAssertNoTransientCallbacks(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoTransientCallbacks, - [reason], - ), - returnValue: false, - ) as bool); + bool debugAssertNoTransientCallbacks(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTransientCallbacks, [reason]), + returnValue: false, + ) + as bool); @override bool debugAssertNoPendingPerformanceModeRequests(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoPendingPerformanceModeRequests, - [reason], - ), - returnValue: false, - ) as bool); + Invocation.method(#debugAssertNoPendingPerformanceModeRequests, [ + reason, + ]), + returnValue: false, + ) + as bool); @override - bool debugAssertNoTimeDilation(String? reason) => (super.noSuchMethod( - Invocation.method( - #debugAssertNoTimeDilation, - [reason], - ), - returnValue: false, - ) as bool); + bool debugAssertNoTimeDilation(String? reason) => + (super.noSuchMethod( + Invocation.method(#debugAssertNoTimeDilation, [reason]), + returnValue: false, + ) + as bool); @override void addPersistentFrameCallback(_i21.FrameCallback? callback) => super.noSuchMethod( - Invocation.method( - #addPersistentFrameCallback, - [callback], - ), + Invocation.method(#addPersistentFrameCallback, [callback]), returnValueForMissingStub: null, ); @override void addPostFrameCallback( _i21.FrameCallback? callback, { - String? debugLabel = r'callback', - }) => - super.noSuchMethod( - Invocation.method( - #addPostFrameCallback, - [callback], - {#debugLabel: debugLabel}, - ), - returnValueForMissingStub: null, - ); + String? debugLabel = 'callback', + }) => super.noSuchMethod( + Invocation.method( + #addPostFrameCallback, + [callback], + {#debugLabel: debugLabel}, + ), + returnValueForMissingStub: null, + ); @override void ensureFrameCallbacksRegistered() => super.noSuchMethod( - Invocation.method( - #ensureFrameCallbacksRegistered, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureFrameCallbacksRegistered, []), + returnValueForMissingStub: null, + ); @override void ensureVisualUpdate() => super.noSuchMethod( - Invocation.method( - #ensureVisualUpdate, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#ensureVisualUpdate, []), + returnValueForMissingStub: null, + ); @override void scheduleFrame() => super.noSuchMethod( - Invocation.method( - #scheduleFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleForcedFrame() => super.noSuchMethod( - Invocation.method( - #scheduleForcedFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleForcedFrame, []), + returnValueForMissingStub: null, + ); @override void scheduleWarmUpFrame() => super.noSuchMethod( - Invocation.method( - #scheduleWarmUpFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleWarmUpFrame, []), + returnValueForMissingStub: null, + ); @override void resetEpoch() => super.noSuchMethod( - Invocation.method( - #resetEpoch, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetEpoch, []), + returnValueForMissingStub: null, + ); @override void handleBeginFrame(Duration? rawTimeStamp) => super.noSuchMethod( - Invocation.method( - #handleBeginFrame, - [rawTimeStamp], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleBeginFrame, [rawTimeStamp]), + returnValueForMissingStub: null, + ); @override _i21.PerformanceModeRequestHandle? requestPerformanceMode( - _i6.DartPerformanceMode? mode) => - (super.noSuchMethod(Invocation.method( - #requestPerformanceMode, - [mode], - )) as _i21.PerformanceModeRequestHandle?); + _i6.DartPerformanceMode? mode, + ) => + (super.noSuchMethod(Invocation.method(#requestPerformanceMode, [mode])) + as _i21.PerformanceModeRequestHandle?); @override void handleDrawFrame() => super.noSuchMethod( - Invocation.method( - #handleDrawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleDrawFrame, []), + returnValueForMissingStub: null, + ); @override - _i4.BinaryMessenger createBinaryMessenger() => (super.noSuchMethod( - Invocation.method( - #createBinaryMessenger, - [], - ), - returnValue: _FakeBinaryMessenger_9( - this, - Invocation.method( - #createBinaryMessenger, - [], - ), - ), - ) as _i4.BinaryMessenger); + _i4.BinaryMessenger createBinaryMessenger() => + (super.noSuchMethod( + Invocation.method(#createBinaryMessenger, []), + returnValue: _FakeBinaryMessenger_9( + this, + Invocation.method(#createBinaryMessenger, []), + ), + ) + as _i4.BinaryMessenger); @override void handleMemoryPressure() => super.noSuchMethod( - Invocation.method( - #handleMemoryPressure, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleMemoryPressure, []), + returnValueForMissingStub: null, + ); @override _i11.Future handleSystemMessage(Object? systemMessage) => (super.noSuchMethod( - Invocation.method( - #handleSystemMessage, - [systemMessage], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#handleSystemMessage, [systemMessage]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void initLicenses() => super.noSuchMethod( - Invocation.method( - #initLicenses, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initLicenses, []), + returnValueForMissingStub: null, + ); @override void evict(String? asset) => super.noSuchMethod( - Invocation.method( - #evict, - [asset], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#evict, [asset]), + returnValueForMissingStub: null, + ); @override void readInitialLifecycleStateFromNativeWindow() => super.noSuchMethod( - Invocation.method( - #readInitialLifecycleStateFromNativeWindow, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#readInitialLifecycleStateFromNativeWindow, []), + returnValueForMissingStub: null, + ); @override void handleViewFocusChanged(_i6.ViewFocusEvent? event) => super.noSuchMethod( - Invocation.method( - #handleViewFocusChanged, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleViewFocusChanged, [event]), + returnValueForMissingStub: null, + ); @override _i11.Future<_i6.AppExitResponse> handleRequestAppExit() => (super.noSuchMethod( - Invocation.method( - #handleRequestAppExit, - [], - ), - returnValue: - _i11.Future<_i6.AppExitResponse>.value(_i6.AppExitResponse.exit), - ) as _i11.Future<_i6.AppExitResponse>); + Invocation.method(#handleRequestAppExit, []), + returnValue: _i11.Future<_i6.AppExitResponse>.value( + _i6.AppExitResponse.exit, + ), + ) + as _i11.Future<_i6.AppExitResponse>); @override _i11.Future<_i6.AppExitResponse> exitApplication( @@ -2963,66 +2371,50 @@ class MockWidgetsFlutterBinding extends _i1.Mock int? exitCode = 0, ]) => (super.noSuchMethod( - Invocation.method( - #exitApplication, - [ - exitType, - exitCode, - ], - ), - returnValue: - _i11.Future<_i6.AppExitResponse>.value(_i6.AppExitResponse.exit), - ) as _i11.Future<_i6.AppExitResponse>); + Invocation.method(#exitApplication, [exitType, exitCode]), + returnValue: _i11.Future<_i6.AppExitResponse>.value( + _i6.AppExitResponse.exit, + ), + ) + as _i11.Future<_i6.AppExitResponse>); @override - _i4.RestorationManager createRestorationManager() => (super.noSuchMethod( - Invocation.method( - #createRestorationManager, - [], - ), - returnValue: _FakeRestorationManager_22( - this, - Invocation.method( - #createRestorationManager, - [], - ), - ), - ) as _i4.RestorationManager); + _i4.RestorationManager createRestorationManager() => + (super.noSuchMethod( + Invocation.method(#createRestorationManager, []), + returnValue: _FakeRestorationManager_22( + this, + Invocation.method(#createRestorationManager, []), + ), + ) + as _i4.RestorationManager); @override void setSystemUiChangeCallback(_i4.SystemUiChangeCallback? callback) => super.noSuchMethod( - Invocation.method( - #setSystemUiChangeCallback, - [callback], - ), + Invocation.method(#setSystemUiChangeCallback, [callback]), returnValueForMissingStub: null, ); @override - _i11.Future initializationComplete() => (super.noSuchMethod( - Invocation.method( - #initializationComplete, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future initializationComplete() => + (super.noSuchMethod( + Invocation.method(#initializationComplete, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override - _i9.ImageCache createImageCache() => (super.noSuchMethod( - Invocation.method( - #createImageCache, - [], - ), - returnValue: _FakeImageCache_23( - this, - Invocation.method( - #createImageCache, - [], - ), - ), - ) as _i9.ImageCache); + _i9.ImageCache createImageCache() => + (super.noSuchMethod( + Invocation.method(#createImageCache, []), + returnValue: _FakeImageCache_23( + this, + Invocation.method(#createImageCache, []), + ), + ) + as _i9.ImageCache); @override _i11.Future<_i6.Codec> instantiateImageCodecFromBuffer( @@ -3032,28 +2424,31 @@ class MockWidgetsFlutterBinding extends _i1.Mock bool? allowUpscaling = false, }) => (super.noSuchMethod( - Invocation.method( - #instantiateImageCodecFromBuffer, - [buffer], - { - #cacheWidth: cacheWidth, - #cacheHeight: cacheHeight, - #allowUpscaling: allowUpscaling, - }, - ), - returnValue: _i11.Future<_i6.Codec>.value(_FakeCodec_32( - this, - Invocation.method( - #instantiateImageCodecFromBuffer, - [buffer], - { - #cacheWidth: cacheWidth, - #cacheHeight: cacheHeight, - #allowUpscaling: allowUpscaling, - }, - ), - )), - ) as _i11.Future<_i6.Codec>); + Invocation.method( + #instantiateImageCodecFromBuffer, + [buffer], + { + #cacheWidth: cacheWidth, + #cacheHeight: cacheHeight, + #allowUpscaling: allowUpscaling, + }, + ), + returnValue: _i11.Future<_i6.Codec>.value( + _FakeCodec_31( + this, + Invocation.method( + #instantiateImageCodecFromBuffer, + [buffer], + { + #cacheWidth: cacheWidth, + #cacheHeight: cacheHeight, + #allowUpscaling: allowUpscaling, + }, + ), + ), + ), + ) + as _i11.Future<_i6.Codec>); @override _i11.Future<_i6.Codec> instantiateImageCodecWithSize( @@ -3061,371 +2456,277 @@ class MockWidgetsFlutterBinding extends _i1.Mock _i6.TargetImageSizeCallback? getTargetSize, }) => (super.noSuchMethod( - Invocation.method( - #instantiateImageCodecWithSize, - [buffer], - {#getTargetSize: getTargetSize}, - ), - returnValue: _i11.Future<_i6.Codec>.value(_FakeCodec_32( - this, - Invocation.method( - #instantiateImageCodecWithSize, - [buffer], - {#getTargetSize: getTargetSize}, - ), - )), - ) as _i11.Future<_i6.Codec>); + Invocation.method( + #instantiateImageCodecWithSize, + [buffer], + {#getTargetSize: getTargetSize}, + ), + returnValue: _i11.Future<_i6.Codec>.value( + _FakeCodec_31( + this, + Invocation.method( + #instantiateImageCodecWithSize, + [buffer], + {#getTargetSize: getTargetSize}, + ), + ), + ), + ) + as _i11.Future<_i6.Codec>); @override void addSemanticsEnabledListener(_i6.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addSemanticsEnabledListener, - [listener], - ), + Invocation.method(#addSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override void removeSemanticsEnabledListener(_i6.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeSemanticsEnabledListener, - [listener], - ), + Invocation.method(#removeSemanticsEnabledListener, [listener]), returnValueForMissingStub: null, ); @override - _i12.SemanticsHandle ensureSemantics() => (super.noSuchMethod( - Invocation.method( - #ensureSemantics, - [], - ), - returnValue: _FakeSemanticsHandle_33( - this, - Invocation.method( - #ensureSemantics, - [], - ), - ), - ) as _i12.SemanticsHandle); + _i12.SemanticsHandle ensureSemantics() => + (super.noSuchMethod( + Invocation.method(#ensureSemantics, []), + returnValue: _FakeSemanticsHandle_32( + this, + Invocation.method(#ensureSemantics, []), + ), + ) + as _i12.SemanticsHandle); @override void performSemanticsAction(_i6.SemanticsActionEvent? action) => super.noSuchMethod( - Invocation.method( - #performSemanticsAction, - [action], - ), + Invocation.method(#performSemanticsAction, [action]), returnValueForMissingStub: null, ); @override void handleAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method( - #handleAccessibilityFeaturesChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleAccessibilityFeaturesChanged, []), + returnValueForMissingStub: null, + ); @override _i6.SemanticsUpdateBuilder createSemanticsUpdateBuilder() => (super.noSuchMethod( - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - returnValue: _FakeSemanticsUpdateBuilder_34( - this, - Invocation.method( - #createSemanticsUpdateBuilder, - [], - ), - ), - ) as _i6.SemanticsUpdateBuilder); + Invocation.method(#createSemanticsUpdateBuilder, []), + returnValue: _FakeSemanticsUpdateBuilder_33( + this, + Invocation.method(#createSemanticsUpdateBuilder, []), + ), + ) + as _i6.SemanticsUpdateBuilder); @override - _i10.PipelineOwner createRootPipelineOwner() => (super.noSuchMethod( - Invocation.method( - #createRootPipelineOwner, - [], - ), - returnValue: _FakePipelineOwner_26( - this, - Invocation.method( - #createRootPipelineOwner, - [], - ), - ), - ) as _i10.PipelineOwner); + _i10.PipelineOwner createRootPipelineOwner() => + (super.noSuchMethod( + Invocation.method(#createRootPipelineOwner, []), + returnValue: _i14.dummyValue<_i10.PipelineOwner>( + this, + Invocation.method(#createRootPipelineOwner, []), + ), + ) + as _i10.PipelineOwner); @override void addRenderView(_i10.RenderView? view) => super.noSuchMethod( - Invocation.method( - #addRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addRenderView, [view]), + returnValueForMissingStub: null, + ); @override void removeRenderView(_i10.RenderView? view) => super.noSuchMethod( - Invocation.method( - #removeRenderView, - [view], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeRenderView, [view]), + returnValueForMissingStub: null, + ); @override _i10.ViewConfiguration createViewConfigurationFor( - _i10.RenderView? renderView) => + _i10.RenderView? renderView, + ) => (super.noSuchMethod( - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - returnValue: _FakeViewConfiguration_35( - this, - Invocation.method( - #createViewConfigurationFor, - [renderView], - ), - ), - ) as _i10.ViewConfiguration); + Invocation.method(#createViewConfigurationFor, [renderView]), + returnValue: _FakeViewConfiguration_34( + this, + Invocation.method(#createViewConfigurationFor, [renderView]), + ), + ) + as _i10.ViewConfiguration); @override - _i6.SceneBuilder createSceneBuilder() => (super.noSuchMethod( - Invocation.method( - #createSceneBuilder, - [], - ), - returnValue: _FakeSceneBuilder_36( - this, - Invocation.method( - #createSceneBuilder, - [], - ), - ), - ) as _i6.SceneBuilder); + _i6.SceneBuilder createSceneBuilder() => + (super.noSuchMethod( + Invocation.method(#createSceneBuilder, []), + returnValue: _FakeSceneBuilder_35( + this, + Invocation.method(#createSceneBuilder, []), + ), + ) + as _i6.SceneBuilder); @override - _i6.PictureRecorder createPictureRecorder() => (super.noSuchMethod( - Invocation.method( - #createPictureRecorder, - [], - ), - returnValue: _FakePictureRecorder_37( - this, - Invocation.method( - #createPictureRecorder, - [], - ), - ), - ) as _i6.PictureRecorder); + _i6.PictureRecorder createPictureRecorder() => + (super.noSuchMethod( + Invocation.method(#createPictureRecorder, []), + returnValue: _FakePictureRecorder_36( + this, + Invocation.method(#createPictureRecorder, []), + ), + ) + as _i6.PictureRecorder); @override - _i6.Canvas createCanvas(_i6.PictureRecorder? recorder) => (super.noSuchMethod( - Invocation.method( - #createCanvas, - [recorder], - ), - returnValue: _FakeCanvas_38( - this, - Invocation.method( - #createCanvas, - [recorder], - ), - ), - ) as _i6.Canvas); + _i6.Canvas createCanvas(_i6.PictureRecorder? recorder) => + (super.noSuchMethod( + Invocation.method(#createCanvas, [recorder]), + returnValue: _FakeCanvas_37( + this, + Invocation.method(#createCanvas, [recorder]), + ), + ) + as _i6.Canvas); @override void handleMetricsChanged() => super.noSuchMethod( - Invocation.method( - #handleMetricsChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleMetricsChanged, []), + returnValueForMissingStub: null, + ); @override void handleTextScaleFactorChanged() => super.noSuchMethod( - Invocation.method( - #handleTextScaleFactorChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleTextScaleFactorChanged, []), + returnValueForMissingStub: null, + ); @override void handlePlatformBrightnessChanged() => super.noSuchMethod( - Invocation.method( - #handlePlatformBrightnessChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePlatformBrightnessChanged, []), + returnValueForMissingStub: null, + ); @override void initMouseTracker([_i10.MouseTracker? tracker]) => super.noSuchMethod( - Invocation.method( - #initMouseTracker, - [tracker], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initMouseTracker, [tracker]), + returnValueForMissingStub: null, + ); @override void deferFirstFrame() => super.noSuchMethod( - Invocation.method( - #deferFirstFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#deferFirstFrame, []), + returnValueForMissingStub: null, + ); @override void allowFirstFrame() => super.noSuchMethod( - Invocation.method( - #allowFirstFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#allowFirstFrame, []), + returnValueForMissingStub: null, + ); @override void resetFirstFrameSent() => super.noSuchMethod( - Invocation.method( - #resetFirstFrameSent, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resetFirstFrameSent, []), + returnValueForMissingStub: null, + ); @override void drawFrame() => super.noSuchMethod( - Invocation.method( - #drawFrame, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawFrame, []), + returnValueForMissingStub: null, + ); @override void addObserver(_i5.WidgetsBindingObserver? observer) => super.noSuchMethod( - Invocation.method( - #addObserver, - [observer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addObserver, [observer]), + returnValueForMissingStub: null, + ); @override bool removeObserver(_i5.WidgetsBindingObserver? observer) => (super.noSuchMethod( - Invocation.method( - #removeObserver, - [observer], - ), - returnValue: false, - ) as bool); + Invocation.method(#removeObserver, [observer]), + returnValue: false, + ) + as bool); @override void handleLocaleChanged() => super.noSuchMethod( - Invocation.method( - #handleLocaleChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleLocaleChanged, []), + returnValueForMissingStub: null, + ); @override void dispatchLocalesChanged(List<_i6.Locale>? locales) => super.noSuchMethod( - Invocation.method( - #dispatchLocalesChanged, - [locales], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispatchLocalesChanged, [locales]), + returnValueForMissingStub: null, + ); @override void dispatchAccessibilityFeaturesChanged() => super.noSuchMethod( - Invocation.method( - #dispatchAccessibilityFeaturesChanged, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispatchAccessibilityFeaturesChanged, []), + returnValueForMissingStub: null, + ); @override - _i11.Future handlePopRoute() => (super.noSuchMethod( - Invocation.method( - #handlePopRoute, - [], - ), - returnValue: _i11.Future.value(false), - ) as _i11.Future); + _i11.Future handlePopRoute() => + (super.noSuchMethod( + Invocation.method(#handlePopRoute, []), + returnValue: _i11.Future.value(false), + ) + as _i11.Future); @override - _i11.Future handlePushRoute(String? route) => (super.noSuchMethod( - Invocation.method( - #handlePushRoute, - [route], - ), - returnValue: _i11.Future.value(false), - ) as _i11.Future); + _i11.Future handlePushRoute(String? route) => + (super.noSuchMethod( + Invocation.method(#handlePushRoute, [route]), + returnValue: _i11.Future.value(false), + ) + as _i11.Future); @override - _i9.Widget wrapWithDefaultView(_i9.Widget? rootWidget) => (super.noSuchMethod( - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - returnValue: _FakeWidget_39( - this, - Invocation.method( - #wrapWithDefaultView, - [rootWidget], - ), - ), - ) as _i9.Widget); + _i9.Widget wrapWithDefaultView(_i9.Widget? rootWidget) => + (super.noSuchMethod( + Invocation.method(#wrapWithDefaultView, [rootWidget]), + returnValue: _FakeWidget_38( + this, + Invocation.method(#wrapWithDefaultView, [rootWidget]), + ), + ) + as _i9.Widget); @override void scheduleAttachRootWidget(_i9.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #scheduleAttachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#scheduleAttachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachRootWidget(_i9.Widget? rootWidget) => super.noSuchMethod( - Invocation.method( - #attachRootWidget, - [rootWidget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachRootWidget, [rootWidget]), + returnValueForMissingStub: null, + ); @override void attachToBuildOwner(_i5.RootWidget? widget) => super.noSuchMethod( - Invocation.method( - #attachToBuildOwner, - [widget], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#attachToBuildOwner, [widget]), + returnValueForMissingStub: null, + ); @override _i6.Locale? computePlatformResolvedLocale( - List<_i6.Locale>? supportedLocales) => - (super.noSuchMethod(Invocation.method( - #computePlatformResolvedLocale, - [supportedLocales], - )) as _i6.Locale?); + List<_i6.Locale>? supportedLocales, + ) => + (super.noSuchMethod( + Invocation.method(#computePlatformResolvedLocale, [ + supportedLocales, + ]), + ) + as _i6.Locale?); } /// A class which mocks [SentryJsBinding]. @@ -3438,30 +2739,21 @@ class MockSentryJsBinding extends _i1.Mock implements _i23.SentryJsBinding { @override void init(Map? options) => super.noSuchMethod( - Invocation.method( - #init, - [options], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#init, [options]), + returnValueForMissingStub: null, + ); @override void close() => super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#close, []), + returnValueForMissingStub: null, + ); @override void captureEnvelope(List? envelope) => super.noSuchMethod( - Invocation.method( - #captureEnvelope, - [envelope], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#captureEnvelope, [envelope]), + returnValueForMissingStub: null, + ); } /// A class which mocks [Hub]. @@ -3473,46 +2765,42 @@ class MockHub extends _i1.Mock implements _i2.Hub { } @override - _i2.SentryOptions get options => (super.noSuchMethod( - Invocation.getter(#options), - returnValue: _FakeSentryOptions_40( - this, - Invocation.getter(#options), - ), - ) as _i2.SentryOptions); + _i2.SentryOptions get options => + (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeSentryOptions_39( + this, + Invocation.getter(#options), + ), + ) + as _i2.SentryOptions); @override - bool get isEnabled => (super.noSuchMethod( - Invocation.getter(#isEnabled), - returnValue: false, - ) as bool); + bool get isEnabled => + (super.noSuchMethod(Invocation.getter(#isEnabled), returnValue: false) + as bool); @override - _i2.SentryId get lastEventId => (super.noSuchMethod( - Invocation.getter(#lastEventId), - returnValue: _FakeSentryId_5( - this, - Invocation.getter(#lastEventId), - ), - ) as _i2.SentryId); + _i2.SentryId get lastEventId => + (super.noSuchMethod( + Invocation.getter(#lastEventId), + returnValue: _FakeSentryId_5(this, Invocation.getter(#lastEventId)), + ) + as _i2.SentryId); @override - _i2.Scope get scope => (super.noSuchMethod( - Invocation.getter(#scope), - returnValue: _FakeScope_41( - this, - Invocation.getter(#scope), - ), - ) as _i2.Scope); + _i2.Scope get scope => + (super.noSuchMethod( + Invocation.getter(#scope), + returnValue: _FakeScope_40(this, Invocation.getter(#scope)), + ) + as _i2.Scope); @override set profilerFactory(_i15.SentryProfilerFactory? value) => super.noSuchMethod( - Invocation.setter( - #profilerFactory, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profilerFactory, value), + returnValueForMissingStub: null, + ); @override _i11.Future<_i2.SentryId> captureEvent( @@ -3522,28 +2810,23 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureEvent, - [event], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureEvent, + [event], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureException( @@ -3553,28 +2836,23 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureException, - [throwable], - { - #stackTrace: stackTrace, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureException, + [throwable], + {#stackTrace: stackTrace, #hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future<_i2.SentryId> captureMessage( @@ -3586,43 +2864,44 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureMessage, - [message], - { - #level: level, - #template: template, - #params: params, - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureMessage, + [message], + { + #level: level, + #template: template, + #params: params, + #hint: hint, + #withScope: withScope, + }, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override _i11.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => (super.noSuchMethod( - Invocation.method( - #captureUserFeedback, - [userFeedback], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#captureUserFeedback, [userFeedback]), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override _i11.Future<_i2.SentryId> captureFeedback( @@ -3631,82 +2910,60 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.ScopeCallback? withScope, }) => (super.noSuchMethod( - Invocation.method( - #captureFeedback, - [feedback], - { - #hint: hint, - #withScope: withScope, - }, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureFeedback, - [feedback], - { - #hint: hint, - #withScope: withScope, - }, - ), - )), - ) as _i11.Future<_i2.SentryId>); - - @override - _i11.Future addBreadcrumb( - _i2.Breadcrumb? crumb, { - _i2.Hint? hint, - }) => + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureFeedback, + [feedback], + {#hint: hint, #withScope: withScope}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); + + @override + _i11.Future addBreadcrumb(_i2.Breadcrumb? crumb, {_i2.Hint? hint}) => (super.noSuchMethod( - Invocation.method( - #addBreadcrumb, - [crumb], - {#hint: hint}, - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override void bindClient(_i2.SentryClient? client) => super.noSuchMethod( - Invocation.method( - #bindClient, - [client], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#bindClient, [client]), + returnValueForMissingStub: null, + ); @override - _i2.Hub clone() => (super.noSuchMethod( - Invocation.method( - #clone, - [], - ), - returnValue: _FakeHub_42( - this, - Invocation.method( - #clone, - [], - ), - ), - ) as _i2.Hub); + _i2.Hub clone() => + (super.noSuchMethod( + Invocation.method(#clone, []), + returnValue: _FakeHub_41(this, Invocation.method(#clone, [])), + ) + as _i2.Hub); @override - _i11.Future close() => (super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), - ) as _i11.Future); + _i11.Future close() => + (super.noSuchMethod( + Invocation.method(#close, []), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) + as _i11.Future); @override _i11.FutureOr configureScope(_i2.ScopeCallback? callback) => - (super.noSuchMethod(Invocation.method( - #configureScope, - [callback], - )) as _i11.FutureOr); + (super.noSuchMethod(Invocation.method(#configureScope, [callback])) + as _i11.FutureOr); @override _i2.ISentrySpan startTransaction( @@ -3722,36 +2979,34 @@ class MockHub extends _i1.Mock implements _i2.Hub { Map? customSamplingContext, }) => (super.noSuchMethod( - Invocation.method( - #startTransaction, - [ - name, - operation, - ], - { - #description: description, - #startTimestamp: startTimestamp, - #bindToScope: bindToScope, - #waitForChildren: waitForChildren, - #autoFinishAfter: autoFinishAfter, - #trimEnd: trimEnd, - #onFinish: onFinish, - #customSamplingContext: customSamplingContext, - }, - ), - returnValue: _i13.startTransactionShim( - name, - operation, - description: description, - startTimestamp: startTimestamp, - bindToScope: bindToScope, - waitForChildren: waitForChildren, - autoFinishAfter: autoFinishAfter, - trimEnd: trimEnd, - onFinish: onFinish, - customSamplingContext: customSamplingContext, - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startTransaction, + [name, operation], + { + #description: description, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + #customSamplingContext: customSamplingContext, + }, + ), + returnValue: _i13.startTransactionShim( + name, + operation, + description: description, + startTimestamp: startTimestamp, + bindToScope: bindToScope, + waitForChildren: waitForChildren, + autoFinishAfter: autoFinishAfter, + trimEnd: trimEnd, + onFinish: onFinish, + customSamplingContext: customSamplingContext, + ), + ) + as _i2.ISentrySpan); @override _i2.ISentrySpan startTransactionWithContext( @@ -3765,36 +3020,37 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.OnTransactionFinish? onFinish, }) => (super.noSuchMethod( - Invocation.method( - #startTransactionWithContext, - [transactionContext], - { - #customSamplingContext: customSamplingContext, - #startTimestamp: startTimestamp, - #bindToScope: bindToScope, - #waitForChildren: waitForChildren, - #autoFinishAfter: autoFinishAfter, - #trimEnd: trimEnd, - #onFinish: onFinish, - }, - ), - returnValue: _FakeISentrySpan_2( - this, - Invocation.method( - #startTransactionWithContext, - [transactionContext], - { - #customSamplingContext: customSamplingContext, - #startTimestamp: startTimestamp, - #bindToScope: bindToScope, - #waitForChildren: waitForChildren, - #autoFinishAfter: autoFinishAfter, - #trimEnd: trimEnd, - #onFinish: onFinish, - }, - ), - ), - ) as _i2.ISentrySpan); + Invocation.method( + #startTransactionWithContext, + [transactionContext], + { + #customSamplingContext: customSamplingContext, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + }, + ), + returnValue: _FakeISentrySpan_2( + this, + Invocation.method( + #startTransactionWithContext, + [transactionContext], + { + #customSamplingContext: customSamplingContext, + #startTimestamp: startTimestamp, + #bindToScope: bindToScope, + #waitForChildren: waitForChildren, + #autoFinishAfter: autoFinishAfter, + #trimEnd: trimEnd, + #onFinish: onFinish, + }, + ), + ), + ) + as _i2.ISentrySpan); @override _i11.Future<_i2.SentryId> captureTransaction( @@ -3802,36 +3058,31 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i2.SentryTraceContextHeader? traceContext, }) => (super.noSuchMethod( - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - returnValue: _i11.Future<_i2.SentryId>.value(_FakeSentryId_5( - this, - Invocation.method( - #captureTransaction, - [transaction], - {#traceContext: traceContext}, - ), - )), - ) as _i11.Future<_i2.SentryId>); + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + returnValue: _i11.Future<_i2.SentryId>.value( + _FakeSentryId_5( + this, + Invocation.method( + #captureTransaction, + [transaction], + {#traceContext: traceContext}, + ), + ), + ), + ) + as _i11.Future<_i2.SentryId>); @override void setSpanContext( dynamic throwable, _i2.ISentrySpan? span, String? transaction, - ) => - super.noSuchMethod( - Invocation.method( - #setSpanContext, - [ - throwable, - span, - transaction, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#setSpanContext, [throwable, span, transaction]), + returnValueForMissingStub: null, + ); } diff --git a/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart b/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart index 10ab1df8e8..beb822fd59 100644 --- a/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart +++ b/flutter/test/screenshot/sentry_screenshot_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in sentry_flutter/test/screenshot/sentry_screenshot_widget_test.dart. // Do not manually edit this file. @@ -16,6 +16,7 @@ import 'sentry_screenshot_widget_test.dart' as _i2; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -35,13 +36,8 @@ class MockCallbacks extends _i1.Mock implements _i2.Callbacks { _i3.SentryScreenshotWidgetStatus? b, ) => (super.noSuchMethod( - Invocation.method( - #onBuild, - [ - a, - b, - ], - ), - returnValue: false, - ) as bool); + Invocation.method(#onBuild, [a, b]), + returnValue: false, + ) + as bool); } diff --git a/flutter/test/web/sentry_web_test.dart b/flutter/test/web/sentry_web_test.dart index 337183eff9..c3d1496a17 100644 --- a/flutter/test/web/sentry_web_test.dart +++ b/flutter/test/web/sentry_web_test.dart @@ -42,45 +42,47 @@ void main() { await sut.close(); }); - test('init: options mapped to JS SDK', () async { - const expectedDsn = 'https://random@def.ingest.sentry.io/1234567'; - const expectedRelease = 'my-random-release'; - const expectedSampleRate = 0.2; - const expectedEnv = 'my-random-env'; - const expectedDist = '999'; - const expectedAttachStacktrace = false; - const expectedMaxBreadcrumbs = 1000; - const expectedDebug = true; - - options.dsn = expectedDsn; - options.release = expectedRelease; - options.sampleRate = expectedSampleRate; - options.environment = expectedEnv; - options.dist = expectedDist; - options.attachStacktrace = expectedAttachStacktrace; - options.maxBreadcrumbs = expectedMaxBreadcrumbs; - options.debug = expectedDebug; - - // quick check that Sentry is not initialized first - expect(() => binding.getJsOptions()['dsn'], throwsA(anything)); - - await sut.init(hub); - - final jsOptions = binding.getJsOptions(); - expect(jsOptions['dsn'], expectedDsn); - expect(jsOptions['release'], expectedRelease); - expect(jsOptions['sampleRate'], expectedSampleRate); - expect(jsOptions['environment'], expectedEnv); - expect(jsOptions['dist'], expectedDist); - expect(jsOptions['attachStacktrace'], expectedAttachStacktrace); - expect(jsOptions['maxBreadcrumbs'], expectedMaxBreadcrumbs); - expect(jsOptions['debug'], expectedDebug); - expect(jsOptions['defaultIntegrations'].length, 2); - expect(jsOptions['defaultIntegrations'][0].toString(), - contains('name: GlobalHandlers')); - expect(jsOptions['defaultIntegrations'][1].toString(), - contains('name: Dedupe')); - }); + // TODO: re-enable this test in V9 + // test('init: options mapped to JS SDK', () async { + // const expectedDsn = 'https://random@def.ingest.sentry.io/1234567'; + // const expectedRelease = 'my-random-release'; + // const expectedSampleRate = 0.2; + // const expectedEnv = 'my-random-env'; + // const expectedDist = '999'; + // const expectedAttachStacktrace = false; + // const expectedMaxBreadcrumbs = 1000; + // const expectedDebug = true; + // + // options.dsn = expectedDsn; + // options.release = expectedRelease; + // options.sampleRate = expectedSampleRate; + // options.environment = expectedEnv; + // options.dist = expectedDist; + // options.attachStacktrace = expectedAttachStacktrace; + // options.maxBreadcrumbs = expectedMaxBreadcrumbs; + // options.debug = expectedDebug; + // + // // quick check that Sentry is not initialized first + // expect(() => binding.getJsOptions()['dsn'], throwsA(anything)); + // + // await sut.init(hub); + // + // final jsOptions = binding.getJsOptions(); + // + // expect(jsOptions['dsn'], expectedDsn); + // expect(jsOptions['release'], expectedRelease); + // expect(jsOptions['sampleRate'], expectedSampleRate); + // expect(jsOptions['environment'], expectedEnv); + // expect(jsOptions['dist'], expectedDist); + // expect(jsOptions['attachStacktrace'], expectedAttachStacktrace); + // expect(jsOptions['maxBreadcrumbs'], expectedMaxBreadcrumbs); + // expect(jsOptions['debug'], expectedDebug); + // expect(jsOptions['defaultIntegrations'].length, 2); + // expect(jsOptions['defaultIntegrations'][0].toString(), + // contains('name: GlobalHandlers')); + // expect(jsOptions['defaultIntegrations'][1].toString(), + // contains('name: Dedupe')); + // }); test('options getter returns the original options', () { expect(sut.options, same(options)); From 56f9d42d16e028c06bfd418fa4cfa27a787ea7a0 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Thu, 20 Feb 2025 15:10:11 +0000 Subject: [PATCH 06/14] release: 8.13.2 --- CHANGELOG.md | 2 +- dart/lib/src/version.dart | 2 +- dart/pubspec.yaml | 2 +- dio/lib/src/version.dart | 2 +- dio/pubspec.yaml | 4 ++-- drift/lib/src/version.dart | 2 +- drift/pubspec.yaml | 4 ++-- file/lib/src/version.dart | 2 +- file/pubspec.yaml | 4 ++-- flutter/example/pubspec.yaml | 2 +- flutter/lib/src/version.dart | 2 +- flutter/pubspec.yaml | 4 ++-- hive/lib/src/version.dart | 2 +- hive/pubspec.yaml | 4 ++-- isar/lib/src/version.dart | 2 +- isar/pubspec.yaml | 4 ++-- link/pubspec.yaml | 4 ++-- logging/lib/src/version.dart | 2 +- logging/pubspec.yaml | 4 ++-- sqflite/lib/src/version.dart | 2 +- sqflite/pubspec.yaml | 4 ++-- 21 files changed, 30 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71d12556ff..3959743d0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 8.13.2 ### Fixes diff --git a/dart/lib/src/version.dart b/dart/lib/src/version.dart index 1de225e871..e08ff1d2aa 100644 --- a/dart/lib/src/version.dart +++ b/dart/lib/src/version.dart @@ -9,7 +9,7 @@ library version; /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName; diff --git a/dart/pubspec.yaml b/dart/pubspec.yaml index 00c8b31248..9861dec87f 100644 --- a/dart/pubspec.yaml +++ b/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 8.13.1 +version: 8.13.2 description: > A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart VM and Web. For Flutter consider sentry_flutter instead. diff --git a/dio/lib/src/version.dart b/dio/lib/src/version.dart index 8f21d18a05..21684bd12b 100644 --- a/dio/lib/src/version.dart +++ b/dio/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_dio'; diff --git a/dio/pubspec.yaml b/dio/pubspec.yaml index d1b911a82b..b8dcc5363c 100644 --- a/dio/pubspec.yaml +++ b/dio/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_dio description: An integration which adds support for performance tracing for the Dio package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: dio: ^5.0.0 - sentry: 8.13.1 + sentry: 8.13.2 dev_dependencies: meta: ^1.3.0 diff --git a/drift/lib/src/version.dart b/drift/lib/src/version.dart index da8f53116d..7cd360bd12 100644 --- a/drift/lib/src/version.dart +++ b/drift/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_drift'; diff --git a/drift/pubspec.yaml b/drift/pubspec.yaml index 910aa6cc56..baaeb609bf 100644 --- a/drift/pubspec.yaml +++ b/drift/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_drift description: An integration which adds support for performance tracing for the drift package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 meta: ^1.3.0 drift: ^2.13.0 diff --git a/file/lib/src/version.dart b/file/lib/src/version.dart index ec5356f531..e8c047f70f 100644 --- a/file/lib/src/version.dart +++ b/file/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_file'; diff --git a/file/pubspec.yaml b/file/pubspec.yaml index a7768b8e8c..8813a8f633 100644 --- a/file/pubspec.yaml +++ b/file/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_file description: An integration which adds support for performance tracing for dart.io.File. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: windows: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 meta: ^1.3.0 dev_dependencies: diff --git a/flutter/example/pubspec.yaml b/flutter/example/pubspec.yaml index 30c70296bf..a42b7a1e71 100644 --- a/flutter/example/pubspec.yaml +++ b/flutter/example/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_flutter_example description: Demonstrates how to use the sentry_flutter plugin. -version: 8.13.1 +version: 8.13.2 publish_to: 'none' # Remove this line if you wish to publish to pub.dev diff --git a/flutter/lib/src/version.dart b/flutter/lib/src/version.dart index c57ad790f2..985fc4e63c 100644 --- a/flutter/lib/src/version.dart +++ b/flutter/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The default SDK name reported to Sentry.io in the submitted events. const String sdkName = 'sentry.dart.flutter'; diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 37a2cb2910..234d25998e 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry_flutter -version: 8.13.1 +version: 8.13.2 description: Sentry SDK for Flutter. This package aims to support different Flutter targets by relying on the many platforms supported by Sentry with native SDKs. homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart @@ -23,7 +23,7 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - sentry: 8.13.1 + sentry: 8.13.2 package_info_plus: '>=1.0.0' meta: ^1.3.0 ffi: ^2.0.0 diff --git a/hive/lib/src/version.dart b/hive/lib/src/version.dart index 9a0dad15d5..1f305b107b 100644 --- a/hive/lib/src/version.dart +++ b/hive/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_hive'; diff --git a/hive/pubspec.yaml b/hive/pubspec.yaml index 95b9f6b34d..cbdf474d0d 100644 --- a/hive/pubspec.yaml +++ b/hive/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_hive description: An integration which adds support for performance tracing for the hive package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 hive: ^2.2.3 meta: ^1.3.0 diff --git a/isar/lib/src/version.dart b/isar/lib/src/version.dart index 2ec1bf8d62..47a31c6460 100644 --- a/isar/lib/src/version.dart +++ b/isar/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_isar'; diff --git a/isar/pubspec.yaml b/isar/pubspec.yaml index 1c709ebee9..4e7cbe3dd6 100644 --- a/isar/pubspec.yaml +++ b/isar/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_isar description: An integration which adds support for performance tracing for the isar package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -20,7 +20,7 @@ platforms: dependencies: isar: ^3.1.0 isar_flutter_libs: ^3.1.0 # contains Isar Core - sentry: 8.13.1 + sentry: 8.13.2 meta: ^1.3.0 path: ^1.8.3 diff --git a/link/pubspec.yaml b/link/pubspec.yaml index 740820bdec..b22296b6e4 100644 --- a/link/pubspec.yaml +++ b/link/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_link description: Automatic capture of exceptions and GraphQL errors for the gql eco-system, like graphql and ferry -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -13,7 +13,7 @@ dependencies: gql_exec: ">=0.4.4 <2.0.0" gql_link: ">=0.5.0 <2.0.0" gql: ">=0.14.0 <2.0.0" - sentry: 8.13.1 + sentry: 8.13.2 dev_dependencies: lints: ^4.0.0 diff --git a/logging/lib/src/version.dart b/logging/lib/src/version.dart index 34e261a816..91cc601198 100644 --- a/logging/lib/src/version.dart +++ b/logging/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_logging'; diff --git a/logging/pubspec.yaml b/logging/pubspec.yaml index f29eee5081..1ad97adef9 100644 --- a/logging/pubspec.yaml +++ b/logging/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_logging description: An integration which adds support for recording log from the logging package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: logging: ^1.0.0 - sentry: 8.13.1 + sentry: 8.13.2 dev_dependencies: lints: '>=2.0.0' diff --git a/sqflite/lib/src/version.dart b/sqflite/lib/src/version.dart index 5cce226e6a..e2e0a0447b 100644 --- a/sqflite/lib/src/version.dart +++ b/sqflite/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.1'; +const String sdkVersion = '8.13.2'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_sqflite'; diff --git a/sqflite/pubspec.yaml b/sqflite/pubspec.yaml index d6e4354e1b..1ccee8cca1 100644 --- a/sqflite/pubspec.yaml +++ b/sqflite/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_sqflite description: An integration which adds support for performance tracing for the sqflite package. -version: 8.13.1 +version: 8.13.2 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -15,7 +15,7 @@ platforms: macos: dependencies: - sentry: 8.13.1 + sentry: 8.13.2 sqflite: ^2.2.8 sqflite_common: ^2.0.0 meta: ^1.3.0 From 579bf28f2e29845724bfdaa7b99b6cd37613dfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Andra=C5=A1ec?= Date: Tue, 11 Mar 2025 15:28:12 +0100 Subject: [PATCH 07/14] Use global ruby for `pod install` in min version test (#2783) --- .github/workflows/min_version_test.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/min_version_test.yml b/.github/workflows/min_version_test.yml index 634c5cdf78..f3af7cec32 100644 --- a/.github/workflows/min_version_test.yml +++ b/.github/workflows/min_version_test.yml @@ -59,12 +59,20 @@ jobs: with: ruby-version: '3.1.2' # https://github.com/flutter/flutter/issues/109385#issuecomment-1212614125 - - name: Update Pods - run: sudo gem update + - name: Uninstall existing CocoaPods and install globally + run: | + gem uninstall cocoapods -a + sudo gem install cocoapods + echo "$(which pod)" + - name: Build iOS run: | cd min_version_test flutter pub get + cd ios + pod repo update + pod install + cd .. flutter build ios --no-codesign build-web: From 4d90f9223e9cdc379e394cca19f54b9bb2a0a961 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Mar 2025 16:47:15 +0100 Subject: [PATCH 08/14] chore(deps): update Cocoa SDK to v8.46.0 (#2772) * chore: update flutter/scripts/update-cocoa.sh to 8.46.0 * Update CHANGELOG.md --------- Co-authored-by: GitHub Co-authored-by: Giancarlo Buenaflor --- CHANGELOG.md | 6 +- flutter/ios/sentry_flutter.podspec | 2 +- flutter/ios/sentry_flutter/Package.swift | 2 +- flutter/lib/src/native/cocoa/binding.dart | 226 +++++++++++++++++----- 4 files changed, 183 insertions(+), 53 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b20bf72444..2dabab59c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ ## Unreleased - ### Enhancements - Add Flutter runtime information ([#2742](https://github.com/getsentry/sentry-dart/pull/2742)) @@ -12,6 +11,11 @@ - Pass missing `captureFailedRequests` param to `FailedRequestInterceptor` ([#2744](https://github.com/getsentry/sentry-dart/pull/2744)) +### Dependencies + +- Bump Cocoa SDK from v8.45.0 to v8.46.0 ([#2772](https://github.com/getsentry/sentry-dart/pull/2772)) + - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8460) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.45.0...8.46.0) ## 8.14.0-beta.1 diff --git a/flutter/ios/sentry_flutter.podspec b/flutter/ios/sentry_flutter.podspec index cea98e005c..c7a74edfcb 100644 --- a/flutter/ios/sentry_flutter.podspec +++ b/flutter/ios/sentry_flutter.podspec @@ -16,7 +16,7 @@ Sentry SDK for Flutter with support to native through sentry-cocoa. :tag => s.version.to_s } s.source_files = 'sentry_flutter/Sources/**/*' s.public_header_files = 'sentry_flutter/Sources/**/*.h' - s.dependency 'Sentry/HybridSDK', '8.45.0' + s.dependency 'Sentry/HybridSDK', '8.46.0' s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' s.ios.deployment_target = '12.0' diff --git a/flutter/ios/sentry_flutter/Package.swift b/flutter/ios/sentry_flutter/Package.swift index 664a4b3fe8..f1b219c720 100644 --- a/flutter/ios/sentry_flutter/Package.swift +++ b/flutter/ios/sentry_flutter/Package.swift @@ -13,7 +13,7 @@ let package = Package( .library(name: "sentry-flutter", targets: ["sentry_flutter", "sentry_flutter_objc"]) ], dependencies: [ - .package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.45.0") + .package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.46.0") ], targets: [ .target( diff --git a/flutter/lib/src/native/cocoa/binding.dart b/flutter/lib/src/native/cocoa/binding.dart index d54400e524..97112eacac 100644 --- a/flutter/lib/src/native/cocoa/binding.dart +++ b/flutter/lib/src/native/cocoa/binding.dart @@ -30123,9 +30123,8 @@ class SentryCocoa { late final _sel_setEmail_1 = _registerName1("setEmail:"); late final _sel_message1 = _registerName1("message"); late final _sel_setMessage_1 = _registerName1("setMessage:"); - late final _class_SentryId11 = _getClass1("Sentry.SentryId"); - late final _sel_empty1 = _registerName1("empty"); - ffi.Pointer _objc_msgSend_1062( + late final _sel_source1 = _registerName1("source"); + int _objc_msgSend_1062( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -30137,9 +30136,48 @@ class SentryCocoa { late final __objc_msgSend_1062Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1062 = __objc_msgSend_1062Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setSource_1 = _registerName1("setSource:"); + void _objc_msgSend_1063( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1063( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1063Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _class_SentryId11 = _getClass1("Sentry.SentryId"); + late final _sel_empty1 = _registerName1("empty"); + ffi.Pointer _objc_msgSend_1064( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1064( + obj, + sel, + ); + } + + late final __objc_msgSend_1064Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -30148,99 +30186,165 @@ class SentryCocoa { late final _sel_UUID1 = _registerName1("UUID"); late final _sel_initWithUUIDString_1 = _registerName1("initWithUUIDString:"); late final _sel_initWithUUIDBytes_1 = _registerName1("initWithUUIDBytes:"); - instancetype _objc_msgSend_1063( + instancetype _objc_msgSend_1065( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, ) { - return __objc_msgSend_1063( + return __objc_msgSend_1065( obj, sel, bytes, ); } - late final __objc_msgSend_1063Ptr = _lookup< + late final __objc_msgSend_1065Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< + late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); - void _objc_msgSend_1064( + void _objc_msgSend_1066( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer uuid, ) { - return __objc_msgSend_1064( + return __objc_msgSend_1066( obj, sel, uuid, ); } - late final __objc_msgSend_1064Ptr = _lookup< + late final __objc_msgSend_1066Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< + late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - int _objc_msgSend_1065( + int _objc_msgSend_1067( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherUUID, ) { - return __objc_msgSend_1065( + return __objc_msgSend_1067( obj, sel, otherUUID, ); } - late final __objc_msgSend_1065Ptr = _lookup< + late final __objc_msgSend_1067Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< + late final __objc_msgSend_1067 = __objc_msgSend_1067Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_UUIDString1 = _registerName1("UUIDString"); late final _sel_initWithUuid_1 = _registerName1("initWithUuid:"); - instancetype _objc_msgSend_1066( + instancetype _objc_msgSend_1068( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer uuid, ) { - return __objc_msgSend_1066( + return __objc_msgSend_1068( obj, sel, uuid, ); } - late final __objc_msgSend_1066Ptr = _lookup< + late final __objc_msgSend_1068Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< + late final __objc_msgSend_1068 = __objc_msgSend_1068Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqual_1 = _registerName1("isEqual:"); late final _sel_eventId1 = _registerName1("eventId"); - late final _sel_screenshot1 = _registerName1("screenshot"); - late final _sel_setScreenshot_1 = _registerName1("setScreenshot:"); late final _sel_associatedEventId1 = _registerName1("associatedEventId"); late final _sel_setAssociatedEventId_1 = _registerName1("setAssociatedEventId:"); + void _objc_msgSend_1069( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1069( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1069Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1069 = __objc_msgSend_1069Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithMessage_name_email_source_associatedEventId_attachments_1 = + _registerName1( + "initWithMessage:name:email:source:associatedEventId:attachments:"); + instancetype _objc_msgSend_1070( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer message, + ffi.Pointer name, + ffi.Pointer email, + int source, + ffi.Pointer associatedEventId, + ffi.Pointer attachments, + ) { + return __objc_msgSend_1070( + obj, + sel, + message, + name, + email, + source, + associatedEventId, + attachments, + ); + } + + late final __objc_msgSend_1070Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1070 = __objc_msgSend_1070Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_serialize1 = _registerName1("serialize"); late final _sel_dataDictionary1 = _registerName1("dataDictionary"); - late final _sel_attachments1 = _registerName1("attachments"); + late final _sel_attachmentsForEnvelope1 = + _registerName1("attachmentsForEnvelope"); } class _ObjCWrapper implements ffi.Finalizable { @@ -71263,41 +71367,58 @@ class SentryFeedback extends NSObject { _id, _lib._sel_setMessage_1, value?._id ?? ffi.nullptr); } - SentryId1? get eventId { - final _ret = _lib._objc_msgSend_1062(_id, _lib._sel_eventId1); - return _ret.address == 0 - ? null - : SentryId1._(_ret, _lib, retain: true, release: true); + int get source { + return _lib._objc_msgSend_1062(_id, _lib._sel_source1); } - /// PNG data for the screenshot image - NSData? get screenshot { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_screenshot1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + set source(int value) { + return _lib._objc_msgSend_1063(_id, _lib._sel_setSource_1, value); } - /// PNG data for the screenshot image - set screenshot(NSData? value) { - return _lib._objc_msgSend_939( - _id, _lib._sel_setScreenshot_1, value?._id ?? ffi.nullptr); + SentryId1? get eventId { + final _ret = _lib._objc_msgSend_1064(_id, _lib._sel_eventId1); + return _ret.address == 0 + ? null + : SentryId1._(_ret, _lib, retain: true, release: true); } /// The event id that this feedback is associated with, like a crash report. - NSString? get associatedEventId { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_associatedEventId1); + SentryId1? get associatedEventId { + final _ret = _lib._objc_msgSend_1064(_id, _lib._sel_associatedEventId1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : SentryId1._(_ret, _lib, retain: true, release: true); } /// The event id that this feedback is associated with, like a crash report. - set associatedEventId(NSString? value) { - return _lib._objc_msgSend_509( + set associatedEventId(SentryId1? value) { + return _lib._objc_msgSend_1069( _id, _lib._sel_setAssociatedEventId_1, value?._id ?? ffi.nullptr); } + /// \param associatedEventId The ID for an event you’d like associated with the feedback. + /// + /// \param attachments Data objects for any attachments. Currently the web UI only supports showing one attached image, like for a screenshot. + SentryFeedback + initWithMessage_name_email_source_associatedEventId_attachments_( + NSString? message, + NSString? name, + NSString? email, + int source, + SentryId1? associatedEventId, + NSArray? attachments) { + final _ret = _lib._objc_msgSend_1070( + _id, + _lib._sel_initWithMessage_name_email_source_associatedEventId_attachments_1, + message?._id ?? ffi.nullptr, + name?._id ?? ffi.nullptr, + email?._id ?? ffi.nullptr, + source, + associatedEventId?._id ?? ffi.nullptr, + attachments?._id ?? ffi.nullptr); + return SentryFeedback._(_ret, _lib, retain: true, release: true); + } + @override SentryFeedback init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); @@ -71324,8 +71445,8 @@ class SentryFeedback extends NSObject { /// note: /// Currently there is only a single attachment possible, for the screenshot, of which there can be only one. - NSArray attachments() { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attachments1); + NSArray attachmentsForEnvelope() { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attachmentsForEnvelope1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -71410,6 +71531,11 @@ class SentryFeedback extends NSObject { } } +abstract class SentryFeedbackSource { + static const int SentryFeedbackSourceWidget = 0; + static const int SentryFeedbackSourceCustom = 1; +} + class SentryId1 extends NSObject { SentryId1._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) @@ -71435,7 +71561,7 @@ class SentryId1 extends NSObject { static SentryId1? getEmpty(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_1062(_lib._class_SentryId11, _lib._sel_empty1); + _lib._objc_msgSend_1064(_lib._class_SentryId11, _lib._sel_empty1); return _ret.address == 0 ? null : SentryId1._(_ret, _lib, retain: true, release: true); @@ -71459,7 +71585,7 @@ class SentryId1 extends NSObject { /// Creates a SentryId with the given UUID. SentryId1 initWithUuid_(NSUUID? uuid) { - final _ret = _lib._objc_msgSend_1066( + final _ret = _lib._objc_msgSend_1068( _id, _lib._sel_initWithUuid_1, uuid?._id ?? ffi.nullptr); return SentryId1._(_ret, _lib, retain: true, release: true); } @@ -71614,16 +71740,16 @@ class NSUUID extends NSObject { NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { final _ret = - _lib._objc_msgSend_1063(_id, _lib._sel_initWithUUIDBytes_1, bytes); + _lib._objc_msgSend_1065(_id, _lib._sel_initWithUUIDBytes_1, bytes); return NSUUID._(_ret, _lib, retain: true, release: true); } void getUUIDBytes_(ffi.Pointer uuid) { - _lib._objc_msgSend_1064(_id, _lib._sel_getUUIDBytes_1, uuid); + _lib._objc_msgSend_1066(_id, _lib._sel_getUUIDBytes_1, uuid); } int compare_(NSUUID? otherUUID) { - return _lib._objc_msgSend_1065( + return _lib._objc_msgSend_1067( _id, _lib._sel_compare_1, otherUUID?._id ?? ffi.nullptr); } From 231f523705e3c8d1fe11436dacd235e8c931f54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Andra=C5=A1ec?= Date: Tue, 11 Mar 2025 16:50:49 +0100 Subject: [PATCH 09/14] Bind root screen transaction to scope (#2756) --- CHANGELOG.md | 1 + .../native_app_start_handler.dart | 22 ++++++++--- .../navigation/sentry_navigator_observer.dart | 2 +- .../native_app_start_handler_test.dart | 38 ++++++++++++++++++- 4 files changed, 56 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dabab59c7..c218d98ca0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ ### Fixes - Pass missing `captureFailedRequests` param to `FailedRequestInterceptor` ([#2744](https://github.com/getsentry/sentry-dart/pull/2744)) +- Bind root screen transaction to scope ([#2756](https://github.com/getsentry/sentry-dart/pull/2756)) ### Dependencies diff --git a/flutter/lib/src/integrations/native_app_start_handler.dart b/flutter/lib/src/integrations/native_app_start_handler.dart index 4ce177a9ce..25de0c933f 100644 --- a/flutter/lib/src/integrations/native_app_start_handler.dart +++ b/flutter/lib/src/integrations/native_app_start_handler.dart @@ -37,22 +37,27 @@ class NativeAppStartHandler { // Create Transaction & Span const screenName = 'root /'; - final transaction = _hub.startTransaction( + final rootScreenTransaction = _hub.startTransaction( screenName, SentrySpanOperations.uiLoad, startTimestamp: appStartInfo.start, ); + // Bind to scope if null + await _hub.configureScope((scope) { + scope.span ??= rootScreenTransaction; + }); + await options.timeToDisplayTracker.track( - transaction, + rootScreenTransaction, startTimestamp: appStartInfo.start, endTimestamp: appStartInfo.end, origin: SentryTraceOrigins.autoUiTimeToDisplay, ); SentryTracer sentryTracer; - if (transaction is SentryTracer) { - sentryTracer = transaction; + if (rootScreenTransaction is SentryTracer) { + sentryTracer = rootScreenTransaction; } else { return; } @@ -62,8 +67,15 @@ class NativeAppStartHandler { sentryTracer.measurements[measurement.name] = appStartInfo.toMeasurement(); await _attachAppStartSpans(appStartInfo, sentryTracer); + // Remove from scope + await _hub.configureScope((scope) { + if (scope.span == rootScreenTransaction) { + scope.span = null; + } + }); + // Finish Transaction - await transaction.finish(endTimestamp: appStartInfo.end); + await rootScreenTransaction.finish(endTimestamp: appStartInfo.end); } _AppStartInfo? _infoNativeAppStart( diff --git a/flutter/lib/src/navigation/sentry_navigator_observer.dart b/flutter/lib/src/navigation/sentry_navigator_observer.dart index 03cc81db39..eb14fc5071 100644 --- a/flutter/lib/src/navigation/sentry_navigator_observer.dart +++ b/flutter/lib/src/navigation/sentry_navigator_observer.dart @@ -297,7 +297,7 @@ class SentryNavigatorObserver extends RouteObserver> { _transaction = null; try { _hub.configureScope((scope) { - if (scope.span == transaction) { + if (transaction != null && scope.span == transaction) { scope.span = null; } }); diff --git a/flutter/test/integrations/native_app_start_handler_test.dart b/flutter/test/integrations/native_app_start_handler_test.dart index 375231a45f..b07c0d0726 100644 --- a/flutter/test/integrations/native_app_start_handler_test.dart +++ b/flutter/test/integrations/native_app_start_handler_test.dart @@ -23,7 +23,12 @@ void main() { startTimestamp: anyNamed('startTimestamp'), )).thenReturn(fixture.tracer); - when(fixture.hub.configureScope(captureAny)).thenAnswer((_) {}); + when(fixture.hub.configureScope(captureAny)).thenAnswer((invocation) { + final callback = invocation.positionalArguments[0] as ScopeCallback; + callback(fixture.scope); + return null; + }); + when(fixture.hub.captureTransaction( any, traceContext: anyNamed('traceContext'), @@ -125,6 +130,25 @@ void main() { traceContext: captureAnyNamed('traceContext'), )); }); + + test('added transaction is bound to scope', () async { + await fixture.call( + appStartEnd: DateTime.fromMillisecondsSinceEpoch(10), + ); + expect(fixture.scope.setSpans.length, 2); + expect(fixture.scope.setSpans[0], fixture.tracer); + expect(fixture.scope.setSpans[1], isNull); + }); + + test('added transaction is not bound to scope if already set', () async { + final alreadySet = MockSentryTracer(); + fixture.scope.span = alreadySet; + await fixture.call( + appStartEnd: DateTime.fromMillisecondsSinceEpoch(10), + ); + expect(fixture.scope.setSpans.length, 1); + expect(fixture.scope.setSpans[0], alreadySet); + }); }); group('App start spans', () { @@ -306,6 +330,7 @@ class Fixture { final options = SentryFlutterOptions(dsn: fakeDsn); final nativeBinding = MockSentryNativeBinding(); final hub = MockHub(); + final scope = MockScope(); late final tracer = SentryTracer( SentryTransactionContext( @@ -343,3 +368,14 @@ class Fixture { return args[0] as SentryTransaction; } } + +class MockScope extends Mock implements Scope { + final setSpans = []; + + @override + ISentrySpan? get span => setSpans.lastOrNull; + @override + set span(ISentrySpan? value) { + setSpans.add(value); + } +} From 31d7e15a8888b2e42354d02c224e94da94a03ded Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Tue, 11 Mar 2025 17:50:59 +0100 Subject: [PATCH 10/14] chore(deps): update Android SDK to v7.22.1 (#2785) * update android dep * update changelog * update CHANGELOG --- CHANGELOG.md | 10 ++++++++++ flutter/android/build.gradle | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3959743d0d..114b0f8aa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## Unreleased + +This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android. + +### Dependencies + +- Bump Android SDK from v7.22.0 to v7.22.1 ([#2785](https://github.com/getsentry/sentry-dart/pull/2785)) + - [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#7221) + - [diff](https://github.com/getsentry/sentry-java/compare/7.22.0...7.22.1) + ## 8.13.2 ### Fixes diff --git a/flutter/android/build.gradle b/flutter/android/build.gradle index a0807d2bfc..2b87873b56 100644 --- a/flutter/android/build.gradle +++ b/flutter/android/build.gradle @@ -60,7 +60,7 @@ android { } dependencies { - api 'io.sentry:sentry-android:7.22.0' + api 'io.sentry:sentry-android:7.22.1' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" // Required -- JUnit 4 framework From 49a4858336df926129132b7742e5bcbf451a726b Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Tue, 11 Mar 2025 16:51:49 +0000 Subject: [PATCH 11/14] release: 8.13.3 --- CHANGELOG.md | 2 +- dart/lib/src/version.dart | 2 +- dart/pubspec.yaml | 2 +- dio/lib/src/version.dart | 2 +- dio/pubspec.yaml | 4 ++-- drift/lib/src/version.dart | 2 +- drift/pubspec.yaml | 4 ++-- file/lib/src/version.dart | 2 +- file/pubspec.yaml | 4 ++-- flutter/example/pubspec.yaml | 2 +- flutter/lib/src/version.dart | 2 +- flutter/pubspec.yaml | 4 ++-- hive/lib/src/version.dart | 2 +- hive/pubspec.yaml | 4 ++-- isar/lib/src/version.dart | 2 +- isar/pubspec.yaml | 4 ++-- link/pubspec.yaml | 4 ++-- logging/lib/src/version.dart | 2 +- logging/pubspec.yaml | 4 ++-- sqflite/lib/src/version.dart | 2 +- sqflite/pubspec.yaml | 4 ++-- 21 files changed, 30 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 114b0f8aa1..8f66a8c732 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 8.13.3 This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android. diff --git a/dart/lib/src/version.dart b/dart/lib/src/version.dart index e08ff1d2aa..2e5af95954 100644 --- a/dart/lib/src/version.dart +++ b/dart/lib/src/version.dart @@ -9,7 +9,7 @@ library version; /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName; diff --git a/dart/pubspec.yaml b/dart/pubspec.yaml index 9861dec87f..cee36a65ef 100644 --- a/dart/pubspec.yaml +++ b/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 8.13.2 +version: 8.13.3 description: > A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart VM and Web. For Flutter consider sentry_flutter instead. diff --git a/dio/lib/src/version.dart b/dio/lib/src/version.dart index 21684bd12b..2d197fb652 100644 --- a/dio/lib/src/version.dart +++ b/dio/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_dio'; diff --git a/dio/pubspec.yaml b/dio/pubspec.yaml index b8dcc5363c..a69efbec9f 100644 --- a/dio/pubspec.yaml +++ b/dio/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_dio description: An integration which adds support for performance tracing for the Dio package. -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: dio: ^5.0.0 - sentry: 8.13.2 + sentry: 8.13.3 dev_dependencies: meta: ^1.3.0 diff --git a/drift/lib/src/version.dart b/drift/lib/src/version.dart index 7cd360bd12..43b33f3e9b 100644 --- a/drift/lib/src/version.dart +++ b/drift/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_drift'; diff --git a/drift/pubspec.yaml b/drift/pubspec.yaml index baaeb609bf..2e30fff670 100644 --- a/drift/pubspec.yaml +++ b/drift/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_drift description: An integration which adds support for performance tracing for the drift package. -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.2 + sentry: 8.13.3 meta: ^1.3.0 drift: ^2.13.0 diff --git a/file/lib/src/version.dart b/file/lib/src/version.dart index e8c047f70f..ed70ff37a5 100644 --- a/file/lib/src/version.dart +++ b/file/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_file'; diff --git a/file/pubspec.yaml b/file/pubspec.yaml index 8813a8f633..c5e0af1a7a 100644 --- a/file/pubspec.yaml +++ b/file/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_file description: An integration which adds support for performance tracing for dart.io.File. -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: windows: dependencies: - sentry: 8.13.2 + sentry: 8.13.3 meta: ^1.3.0 dev_dependencies: diff --git a/flutter/example/pubspec.yaml b/flutter/example/pubspec.yaml index a42b7a1e71..12201bb4a5 100644 --- a/flutter/example/pubspec.yaml +++ b/flutter/example/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_flutter_example description: Demonstrates how to use the sentry_flutter plugin. -version: 8.13.2 +version: 8.13.3 publish_to: 'none' # Remove this line if you wish to publish to pub.dev diff --git a/flutter/lib/src/version.dart b/flutter/lib/src/version.dart index 985fc4e63c..cb3ba87791 100644 --- a/flutter/lib/src/version.dart +++ b/flutter/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The default SDK name reported to Sentry.io in the submitted events. const String sdkName = 'sentry.dart.flutter'; diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 234d25998e..8f2694731a 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry_flutter -version: 8.13.2 +version: 8.13.3 description: Sentry SDK for Flutter. This package aims to support different Flutter targets by relying on the many platforms supported by Sentry with native SDKs. homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart @@ -23,7 +23,7 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - sentry: 8.13.2 + sentry: 8.13.3 package_info_plus: '>=1.0.0' meta: ^1.3.0 ffi: ^2.0.0 diff --git a/hive/lib/src/version.dart b/hive/lib/src/version.dart index 1f305b107b..dcda986f94 100644 --- a/hive/lib/src/version.dart +++ b/hive/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_hive'; diff --git a/hive/pubspec.yaml b/hive/pubspec.yaml index cbdf474d0d..5bc7a6945f 100644 --- a/hive/pubspec.yaml +++ b/hive/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_hive description: An integration which adds support for performance tracing for the hive package. -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.13.2 + sentry: 8.13.3 hive: ^2.2.3 meta: ^1.3.0 diff --git a/isar/lib/src/version.dart b/isar/lib/src/version.dart index 47a31c6460..bfe7d94c90 100644 --- a/isar/lib/src/version.dart +++ b/isar/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_isar'; diff --git a/isar/pubspec.yaml b/isar/pubspec.yaml index 4e7cbe3dd6..f026ddc49e 100644 --- a/isar/pubspec.yaml +++ b/isar/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_isar description: An integration which adds support for performance tracing for the isar package. -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -20,7 +20,7 @@ platforms: dependencies: isar: ^3.1.0 isar_flutter_libs: ^3.1.0 # contains Isar Core - sentry: 8.13.2 + sentry: 8.13.3 meta: ^1.3.0 path: ^1.8.3 diff --git a/link/pubspec.yaml b/link/pubspec.yaml index b22296b6e4..3caf3c399e 100644 --- a/link/pubspec.yaml +++ b/link/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_link description: Automatic capture of exceptions and GraphQL errors for the gql eco-system, like graphql and ferry -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -13,7 +13,7 @@ dependencies: gql_exec: ">=0.4.4 <2.0.0" gql_link: ">=0.5.0 <2.0.0" gql: ">=0.14.0 <2.0.0" - sentry: 8.13.2 + sentry: 8.13.3 dev_dependencies: lints: ^4.0.0 diff --git a/logging/lib/src/version.dart b/logging/lib/src/version.dart index 91cc601198..d2b7d93f24 100644 --- a/logging/lib/src/version.dart +++ b/logging/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_logging'; diff --git a/logging/pubspec.yaml b/logging/pubspec.yaml index 1ad97adef9..357e38a6dc 100644 --- a/logging/pubspec.yaml +++ b/logging/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_logging description: An integration which adds support for recording log from the logging package. -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: logging: ^1.0.0 - sentry: 8.13.2 + sentry: 8.13.3 dev_dependencies: lints: '>=2.0.0' diff --git a/sqflite/lib/src/version.dart b/sqflite/lib/src/version.dart index e2e0a0447b..f9d3ec2e84 100644 --- a/sqflite/lib/src/version.dart +++ b/sqflite/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.13.2'; +const String sdkVersion = '8.13.3'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_sqflite'; diff --git a/sqflite/pubspec.yaml b/sqflite/pubspec.yaml index 1ccee8cca1..be5ecbf460 100644 --- a/sqflite/pubspec.yaml +++ b/sqflite/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_sqflite description: An integration which adds support for performance tracing for the sqflite package. -version: 8.13.2 +version: 8.13.3 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -15,7 +15,7 @@ platforms: macos: dependencies: - sentry: 8.13.2 + sentry: 8.13.3 sqflite: ^2.2.8 sqflite_common: ^2.0.0 meta: ^1.3.0 From f79a21791539aa5917dcaee2a53f68762324cd07 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Wed, 12 Mar 2025 10:51:18 +0100 Subject: [PATCH 12/14] update CHANGELOG --- CHANGELOG.md | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e534a4f0eb..171425cd7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,5 @@ # Changelog -## 8.13.3 - -This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android. - -### Dependencies - -- Bump Android SDK from v7.22.0 to v7.22.1 ([#2785](https://github.com/getsentry/sentry-dart/pull/2785)) - - [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#7221) - - [diff](https://github.com/getsentry/sentry-java/compare/7.22.0...7.22.1) - -## 8.13.2 - ## Unreleased ### Enhancements @@ -82,6 +70,16 @@ final db = AppDatabase(executor); - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8450) - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.44.0...8.45.0) +## 8.13.3 + +This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android. + +### Dependencies + +- Bump Android SDK from v7.22.0 to v7.22.1 ([#2785](https://github.com/getsentry/sentry-dart/pull/2785)) + - [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#7221) + - [diff](https://github.com/getsentry/sentry-java/compare/7.22.0...7.22.1) + ## 8.13.2 > [!WARNING] From 0352830c1bda12ae5ab2b57058458441578080b7 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Wed, 12 Mar 2025 13:02:22 +0100 Subject: [PATCH 13/14] Prepare `8.14.0` changelog (#2787) * update CHANGELOG * update * Update CHANGELOG.md * Update CHANGELOG.md --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 171425cd7c..4766e834e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,21 +2,55 @@ ## Unreleased +This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android. + +### Behavioral changes + +- ⚠️ Auto IP assignment for `SentryUser` is now guarded by `sendDefaultPii` ([#2726](https://github.com/getsentry/sentry-dart/pull/2726)) + - If you rely on Sentry automatically processing the IP address of the user, set `options.sendDefaultPii = true` or manually set the IP address of the `SentryUser` to `{{auto}}` +- Adding the device name to Contexts is now guarded by `sendDefaultPii` ([#2741](https://github.com/getsentry/sentry-dart/pull/2741)) + - Set `options.sendDefaultPii = true` if you want to have the device name reported +- Remove macOS display refresh rate support ([#2628](https://github.com/getsentry/sentry-dart/pull/2628)) + - Can't reliably detect on multi-monitor systems and on older macOS versions. + - Not very meaningful, as other applications may be running in parallel and affecting it. + ### Enhancements - Add Flutter runtime information ([#2742](https://github.com/getsentry/sentry-dart/pull/2742)) - This works if the version of Flutter you're using includes [this code](https://github.com/flutter/flutter/pull/163761). +- Use `loadDebugImagesForAddresses` API for Android ([#2706](https://github.com/getsentry/sentry-dart/pull/2706)) + - This reduces the envelope size and data transferred across method channels + - If debug images received by `loadDebugImagesForAddresses` are empty, the SDK loads all debug images as fallback +- Disable `ScreenshotIntegration`, `WidgetsBindingIntegration` and `SentryWidget` in multi-view apps #2366 ([#2366](https://github.com/getsentry/sentry-dart/pull/2366)) ### Fixes - Pass missing `captureFailedRequests` param to `FailedRequestInterceptor` ([#2744](https://github.com/getsentry/sentry-dart/pull/2744)) - Bind root screen transaction to scope ([#2756](https://github.com/getsentry/sentry-dart/pull/2756)) +- Reference to `SentryWidgetsFlutterBinding` in warning message in `FramesTrackingIntegration` ([#2704](https://github.com/getsentry/sentry-dart/pull/2704)) + +### Deprecations + +- Deprecate Drift `SentryQueryExecutor` ([#2715](https://github.com/getsentry/sentry-dart/pull/2715)) + - This will be replace by `SentryQueryInterceptor` in the next major v9 +```dart +// Example usage in Sentry Flutter v9 +final executor = NativeDatabase.memory().interceptWith( + SentryQueryInterceptor(databaseName: 'your_db_name'), +); + +final db = AppDatabase(executor); +``` +- Deprecate `autoAppStart` and `setAppStartEnd` ([#2681](https://github.com/getsentry/sentry-dart/pull/2681)) ### Dependencies -- Bump Cocoa SDK from v8.45.0 to v8.46.0 ([#2772](https://github.com/getsentry/sentry-dart/pull/2772)) +- Bump Native SDK from v0.7.19 to v0.7.20 ([#2652](https://github.com/getsentry/sentry-dart/pull/2652)) + - [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0720) + - [diff](https://github.com/getsentry/sentry-native/compare/0.7.19...0.7.20) +- Bump Cocoa SDK from v8.44.0 to v8.46.0 ([#2772](https://github.com/getsentry/sentry-dart/pull/2772)) - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8460) - - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.45.0...8.46.0) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.44.0...8.46.0) ## 8.14.0-beta.1 From eeded5387f657f65ba8c13ced699e14f16d86458 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Wed, 12 Mar 2025 12:18:20 +0000 Subject: [PATCH 14/14] release: 8.14.0 --- CHANGELOG.md | 2 +- dart/lib/src/version.dart | 2 +- dart/pubspec.yaml | 2 +- dio/lib/src/version.dart | 2 +- dio/pubspec.yaml | 4 ++-- drift/lib/src/version.dart | 2 +- drift/pubspec.yaml | 4 ++-- file/lib/src/version.dart | 2 +- file/pubspec.yaml | 4 ++-- flutter/example/pubspec.yaml | 2 +- flutter/lib/src/version.dart | 2 +- flutter/pubspec.yaml | 4 ++-- hive/lib/src/version.dart | 2 +- hive/pubspec.yaml | 4 ++-- isar/lib/src/version.dart | 2 +- isar/pubspec.yaml | 4 ++-- link/pubspec.yaml | 4 ++-- logging/lib/src/version.dart | 2 +- logging/pubspec.yaml | 4 ++-- sqflite/lib/src/version.dart | 2 +- sqflite/pubspec.yaml | 4 ++-- 21 files changed, 30 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4766e834e9..050f7159d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 8.14.0 This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android. diff --git a/dart/lib/src/version.dart b/dart/lib/src/version.dart index 87581821de..bbabb908ac 100644 --- a/dart/lib/src/version.dart +++ b/dart/lib/src/version.dart @@ -9,7 +9,7 @@ library version; /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName; diff --git a/dart/pubspec.yaml b/dart/pubspec.yaml index 903ee55908..2ade1f9eb3 100644 --- a/dart/pubspec.yaml +++ b/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 8.14.0-beta.1 +version: 8.14.0 description: > A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart VM and Web. For Flutter consider sentry_flutter instead. diff --git a/dio/lib/src/version.dart b/dio/lib/src/version.dart index dbf81b2cde..26c94b6264 100644 --- a/dio/lib/src/version.dart +++ b/dio/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_dio'; diff --git a/dio/pubspec.yaml b/dio/pubspec.yaml index caabb28794..d4b5276696 100644 --- a/dio/pubspec.yaml +++ b/dio/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_dio description: An integration which adds support for performance tracing for the Dio package. -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: dio: ^5.0.0 - sentry: 8.14.0-beta.1 + sentry: 8.14.0 dev_dependencies: meta: ^1.3.0 diff --git a/drift/lib/src/version.dart b/drift/lib/src/version.dart index ff4441cd5d..b6f43f54c0 100644 --- a/drift/lib/src/version.dart +++ b/drift/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_drift'; diff --git a/drift/pubspec.yaml b/drift/pubspec.yaml index 71cfcf7c70..9ec3dd1c4c 100644 --- a/drift/pubspec.yaml +++ b/drift/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_drift description: An integration which adds support for performance tracing for the drift package. -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.14.0-beta.1 + sentry: 8.14.0 meta: ^1.3.0 drift: ^2.13.0 diff --git a/file/lib/src/version.dart b/file/lib/src/version.dart index 19258a2239..b283fceb28 100644 --- a/file/lib/src/version.dart +++ b/file/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_file'; diff --git a/file/pubspec.yaml b/file/pubspec.yaml index 386aae7d4b..ba2eb12d0a 100644 --- a/file/pubspec.yaml +++ b/file/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_file description: An integration which adds support for performance tracing for dart.io.File. -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: windows: dependencies: - sentry: 8.14.0-beta.1 + sentry: 8.14.0 meta: ^1.3.0 dev_dependencies: diff --git a/flutter/example/pubspec.yaml b/flutter/example/pubspec.yaml index f044d66c1a..d1790ec616 100644 --- a/flutter/example/pubspec.yaml +++ b/flutter/example/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_flutter_example description: Demonstrates how to use the sentry_flutter plugin. -version: 8.14.0-beta.1 +version: 8.14.0 publish_to: 'none' # Remove this line if you wish to publish to pub.dev diff --git a/flutter/lib/src/version.dart b/flutter/lib/src/version.dart index 3b9a334c79..c63e7b8ae9 100644 --- a/flutter/lib/src/version.dart +++ b/flutter/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The default SDK name reported to Sentry.io in the submitted events. const String sdkName = 'sentry.dart.flutter'; diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 79576b4d88..53dc8119a7 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry_flutter -version: 8.14.0-beta.1 +version: 8.14.0 description: Sentry SDK for Flutter. This package aims to support different Flutter targets by relying on the many platforms supported by Sentry with native SDKs. homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart @@ -23,7 +23,7 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - sentry: 8.14.0-beta.1 + sentry: 8.14.0 package_info_plus: '>=1.0.0' meta: ^1.3.0 ffi: ^2.0.0 diff --git a/hive/lib/src/version.dart b/hive/lib/src/version.dart index 684afbac9d..8c537ec1c2 100644 --- a/hive/lib/src/version.dart +++ b/hive/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_hive'; diff --git a/hive/pubspec.yaml b/hive/pubspec.yaml index 25535fcc00..30e5800e50 100644 --- a/hive/pubspec.yaml +++ b/hive/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_hive description: An integration which adds support for performance tracing for the hive package. -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 8.14.0-beta.1 + sentry: 8.14.0 hive: ^2.2.3 meta: ^1.3.0 diff --git a/isar/lib/src/version.dart b/isar/lib/src/version.dart index b444098050..a5132e9c22 100644 --- a/isar/lib/src/version.dart +++ b/isar/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_isar'; diff --git a/isar/pubspec.yaml b/isar/pubspec.yaml index 138ffcc359..2b37a697c9 100644 --- a/isar/pubspec.yaml +++ b/isar/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_isar description: An integration which adds support for performance tracing for the isar package. -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -20,7 +20,7 @@ platforms: dependencies: isar: ^3.1.0 isar_flutter_libs: ^3.1.0 # contains Isar Core - sentry: 8.14.0-beta.1 + sentry: 8.14.0 meta: ^1.3.0 path: ^1.8.3 diff --git a/link/pubspec.yaml b/link/pubspec.yaml index ec0c6fd230..960a164855 100644 --- a/link/pubspec.yaml +++ b/link/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_link description: Automatic capture of exceptions and GraphQL errors for the gql eco-system, like graphql and ferry -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -13,7 +13,7 @@ dependencies: gql_exec: ">=0.4.4 <2.0.0" gql_link: ">=0.5.0 <2.0.0" gql: ">=0.14.0 <2.0.0" - sentry: 8.14.0-beta.1 + sentry: 8.14.0 dev_dependencies: lints: ^4.0.0 diff --git a/logging/lib/src/version.dart b/logging/lib/src/version.dart index b67e4c73a1..de3dd61c88 100644 --- a/logging/lib/src/version.dart +++ b/logging/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_logging'; diff --git a/logging/pubspec.yaml b/logging/pubspec.yaml index c41fe66d97..9d5c80d7bd 100644 --- a/logging/pubspec.yaml +++ b/logging/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_logging description: An integration which adds support for recording log from the logging package. -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: logging: ^1.0.0 - sentry: 8.14.0-beta.1 + sentry: 8.14.0 dev_dependencies: lints: '>=2.0.0' diff --git a/sqflite/lib/src/version.dart b/sqflite/lib/src/version.dart index 3c621f4cee..6a17a33abd 100644 --- a/sqflite/lib/src/version.dart +++ b/sqflite/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '8.14.0-beta.1'; +const String sdkVersion = '8.14.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_sqflite'; diff --git a/sqflite/pubspec.yaml b/sqflite/pubspec.yaml index 4f6e65f40b..645ddbb8de 100644 --- a/sqflite/pubspec.yaml +++ b/sqflite/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_sqflite description: An integration which adds support for performance tracing for the sqflite package. -version: 8.14.0-beta.1 +version: 8.14.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -15,7 +15,7 @@ platforms: macos: dependencies: - sentry: 8.14.0-beta.1 + sentry: 8.14.0 sqflite: ^2.2.8 sqflite_common: ^2.0.0 meta: ^1.3.0