Skip to content

Commit

Permalink
Update dio properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Mar 1, 2023
1 parent c52263f commit fb886f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
8 changes: 4 additions & 4 deletions lib/handlers/http_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class HttpHandler extends ReportHandler {
final HttpRequestType requestType;
final Uri endpointUri;
final Map<String, dynamic> headers;
final int requestTimeout;
final int responseTimeout;
final Duration requestTimeout;
final Duration responseTimeout;
final bool printLogs;
final bool enableDeviceParameters;
final bool enableApplicationParameters;
Expand All @@ -26,8 +26,8 @@ class HttpHandler extends ReportHandler {
this.requestType,
this.endpointUri, {
Map<String, dynamic>? 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,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
homepage: https://github.com/jhomlala/catcher

Expand Down

0 comments on commit fb886f1

Please sign in to comment.