diff --git a/CHANGELOG.md b/CHANGELOG.md index 27e6201..bcba710 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.6 + +* upgrade dio to 5.3.0 + ## 0.0.5 * export cos_service_error diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 2ba3d7b..eb6a52b 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -35,8 +35,8 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.2 - group_button: ^5.2.2 + cupertino_icons: ^1.0.5 + group_button: ^5.3.2 qcloud_cos_client: path: ../ @@ -49,7 +49,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^2.0.0 + flutter_lints: ^2.0.2 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/lib/src/cos_client.dart b/lib/src/cos_client.dart index a2b59d2..5dd2cdb 100644 --- a/lib/src/cos_client.dart +++ b/lib/src/cos_client.dart @@ -755,7 +755,7 @@ class CosClient { contentType: headers[HttpHeaders.contentTypeHeader]), onReceiveProgress: onReceiveProgress); } - } on DioError catch (e) { + } on DioException catch (e) { var res = e.response; Map message = {}; if (null == res) throw StateError(e.toString()); diff --git a/pubspec.yaml b/pubspec.yaml index cac79a5..825d87f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: qcloud_cos_client description: A flutter library for tencent cloud object storage(COS), do not depend on native plugins. -version: 0.0.5 +version: 0.0.6 homepage: https://github.com/meetleev repository: https://github.com/meetleev/flutter_qcloud_cos_client @@ -14,12 +14,12 @@ dependencies: crypto: ^3.0.3 convert: ^3.1.1 xml: ^6.3.0 - dio: ^5.1.2 + dio: ^5.3.0 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 + flutter_lints: ^2.0.2 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec