From 6b668e8217f31f0de58abd13b68e682470d6b56c Mon Sep 17 00:00:00 2001 From: MFW <504842375@qq.com> Date: Tue, 7 Mar 2023 16:44:05 +0800 Subject: [PATCH 1/5] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6b9c677b103d7501f348eb7c4024659ba631f097 Mon Sep 17 00:00:00 2001 From: MFW <504842375@qq.com> Date: Tue, 7 Mar 2023 16:44:49 +0800 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f8252006..19045872 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Catcher supports Android, iOS, Web, Linux, Windows and MacOS platforms. Add this line to your **pubspec.yaml**: ```yaml dependencies: - catcher: ^0.7.0 + catcher: ^0.7.1 ``` Then run this command: From a86c279b1dedf882ed16939ad316f4e0b5b19a16 Mon Sep 17 00:00:00 2001 From: MFW <504842375@qq.com> Date: Tue, 7 Mar 2023 16:45:40 +0800 Subject: [PATCH 3/5] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e121735a..d7818bdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.7.1 +* [BREAKING_CHANGE] Update dio to 5.0.1. ## 0.7.0 * [BREAKING_CHANGE] Update to Flutter 3 by Nico Mexis (https://github.com/ThexXTURBOXx). * [BREAKING_CHANGE] Update device_info_plus and added android_id plugin by Nico Mexis (https://github.com/ThexXTURBOXx). From 8abbf40a547d9defb94a61c61613a3db272010a4 Mon Sep 17 00:00:00 2001 From: MFW <504842375@qq.com> Date: Tue, 7 Mar 2023 16:46:24 +0800 Subject: [PATCH 4/5] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index c2bdde08..361df4a7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: catcher description: Plugin for error catching which provides multiple handlers for dealing with errors when they are not caught by the developer. -version: 0.7.0 +version: 0.7.1 #author: Jakub Homlala homepage: https://github.com/jhomlala/catcher From 80a2094339bbd557ca4b771745bc168af24dce9c Mon Sep 17 00:00:00 2001 From: MFW <504842375@qq.com> Date: Tue, 7 Mar 2023 17:17:43 +0800 Subject: [PATCH 5/5] Fix build error --- example/pubspec.yaml | 2 +- lib/handlers/http_handler.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 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..89cf804b 100644 --- a/lib/handlers/http_handler.dart +++ b/lib/handlers/http_handler.dart @@ -65,8 +65,8 @@ class HttpHandler extends ReportHandler { } final Options options = Options( - sendTimeout: requestTimeout, - receiveTimeout: responseTimeout, + sendTimeout: Duration(milliseconds: requestTimeout), + receiveTimeout: Duration(milliseconds: responseTimeout), headers: mutableHeaders, );