From 81c1550539769b131f38c4731cb92ccbe67838b3 Mon Sep 17 00:00:00 2001 From: sokari Date: Wed, 1 Mar 2023 15:26:57 +0100 Subject: [PATCH 1/2] chore: migrate to dio 5.0.1 --- example/pubspec.yaml | 2 +- lib/handlers/http_handler.dart | 8 ++++---- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index acc185af..9a2b4f49 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: sdk: flutter path_provider: ^2.0.1 path_provider_macos: ^2.0.0 - dio: ^4.0.0 + dio: ^5.0.1 permission_handler: ^8.1.4+2 flutter_local_notifications: ^9.0.0 diff --git a/lib/handlers/http_handler.dart b/lib/handlers/http_handler.dart index d040b2aa..6f4692da 100644 --- a/lib/handlers/http_handler.dart +++ b/lib/handlers/http_handler.dart @@ -14,8 +14,8 @@ class HttpHandler extends ReportHandler { final HttpRequestType requestType; final Uri endpointUri; final Map headers; - final int requestTimeout; - final int responseTimeout; + final Duration requestTimeout; + final Duration responseTimeout; final bool printLogs; final bool enableDeviceParameters; final bool enableApplicationParameters; @@ -26,8 +26,8 @@ class HttpHandler extends ReportHandler { this.requestType, this.endpointUri, { Map? headers, - this.requestTimeout = 5000, - this.responseTimeout = 5000, + this.requestTimeout = const Duration(milliseconds: 5000), + this.responseTimeout = const Duration(milliseconds: 5000), this.printLogs = false, this.enableDeviceParameters = true, this.enableApplicationParameters = true, diff --git a/pubspec.yaml b/pubspec.yaml index 44878d68..c2bdde08 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: device_info_plus_platform_interface: ^6.0.0 package_info_plus: ^3.0.0 mailer: ^5.0.2 - dio: ^4.0.1 + dio: ^5.0.1 flutter_mailer: ^2.0.0 logging: ^1.0.2 sentry: ^6.1.0 From 2012abadf44145e4bf3ae284b646c816b87a12d0 Mon Sep 17 00:00:00 2001 From: sokari Date: Wed, 19 Apr 2023 16:59:07 +0100 Subject: [PATCH 2/2] chore: update sentry to 7.4.2 --- lib/core/catcher.dart | 1 + pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/catcher.dart b/lib/core/catcher.dart index ffe260ea..42a185f2 100644 --- a/lib/core/catcher.dart +++ b/lib/core/catcher.dart @@ -648,6 +648,7 @@ class Catcher with ReportModeAction { _logger.warning( "Error occurred in ${reportHandler.toString()}: ${handlerError.toString()}", ); + return true; }).then((result) { _logger.info("${report.runtimeType} result: $result"); if (!result) { diff --git a/pubspec.yaml b/pubspec.yaml index c2bdde08..4fdd63e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: dio: ^5.0.1 flutter_mailer: ^2.0.0 logging: ^1.0.2 - sentry: ^6.1.0 + sentry: ^7.4.2 universal_io: ^2.0.4 dev_dependencies: