Skip to content

Commit

Permalink
Bump Dio dependency back to ^5.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alfianlosari committed Oct 30, 2023
1 parent ead5d59 commit 94b33ba
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This will add a line like this to your package's pubspec.yaml (and run an implic

```yaml
dependencies:
courier_flutter: 0.0.15
courier_flutter: 0.0.16
```
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Expand Down
3 changes: 3 additions & 0 deletions courier_dart_sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.0.16
* Bump Dio dependency back to ^5.3.3

## 0.0.15
* A special version that uses Dio 4.0.1 with onAuthFailure method in AuthProvider interface

Expand Down
4 changes: 2 additions & 2 deletions courier_dart_sdk/lib/auth/dio_auth_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class DioAuthProvider implements AuthProvider {
} else {
log('${response.statusCode} : ${response.data.toString()}');
final requestOptions = RequestOptions(path: tokenApi);
throw DioError(
throw DioException(
requestOptions: requestOptions,
response: Response(
requestOptions: requestOptions, statusCode: response.statusCode),
type: DioErrorType.response);
type: DioExceptionType.connectionError);
}
}

Expand Down
2 changes: 1 addition & 1 deletion courier_dart_sdk/lib/courier_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class _CourierClientImpl implements CourierClient {
_state = ConnectionState.connected;
} on Exception catch (error) {
int reason = -1;
if (error is DioError) {
if (error is DioException) {
reason = error.type.index;
}

Expand Down
4 changes: 2 additions & 2 deletions courier_dart_sdk/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: courier_dart_sdk
description: Flutter SDK for Courier
version: 0.0.15
version: 0.0.16
homepage: https://github.com/gojek/courier-flutter

environment:
Expand All @@ -10,7 +10,7 @@ environment:
dependencies:
flutter:
sdk: flutter
dio: ^4.0.1
dio: ^5.3.3

dev_dependencies:
flutter_test:
Expand Down
6 changes: 3 additions & 3 deletions courier_dart_sdk_demo/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ packages:
path: "../courier_dart_sdk"
relative: true
source: path
version: "0.0.14"
version: "0.0.16"
courier_protobuf:
dependency: "direct main"
description:
Expand Down Expand Up @@ -83,10 +83,10 @@ packages:
dependency: "direct main"
description:
name: dio
sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8"
sha256: "417e2a6f9d83ab396ec38ff4ea5da6c254da71e4db765ad737a42af6930140b7"
url: "https://pub.dev"
source: hosted
version: "4.0.6"
version: "5.3.3"
fake_async:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion courier_dart_sdk_demo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
flutter:
sdk: flutter

dio: ^4.0.1
dio: ^5.3.3
permission_handler: ^10.2.0
uuid: ^3.0.7

Expand Down

0 comments on commit 94b33ba

Please sign in to comment.