diff --git a/CHANGELOG.md b/CHANGELOG.md index 80dd3c80..45e4bb11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ -## 0.7.1 -* Update `device_info_plus` to newest version -* Update example dependencies +## 0.8.0 +* [BREAKING_CHANGE] Update to `dio` 5.x. This has an effect on the `HttpHandler`. +* Update package dependencies. +* Update example dependencies. ## 0.7.0 * [BREAKING_CHANGE] Update to Flutter 3 by Nico Mexis (https://github.com/ThexXTURBOXx). diff --git a/lib/handlers/http_handler.dart b/lib/handlers/http_handler.dart index d040b2aa..af95b0e7 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(seconds: 5), + this.responseTimeout = const Duration(seconds: 5), this.printLogs = false, this.enableDeviceParameters = true, this.enableApplicationParameters = true, diff --git a/pubspec.yaml b/pubspec.yaml index e16e3dea..7ce6f542 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.1 +version: 0.8.0 #author: Jakub Homlala homepage: https://github.com/jhomlala/catcher