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). 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: 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, ); diff --git a/pubspec.yaml b/pubspec.yaml index 44878d68..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 @@ -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