Skip to content

Commit

Permalink
Update native dio adapter (cfug#1849)
Browse files Browse the repository at this point in the history
Fixes cfug#1845

### New Pull Request Checklist

- [x] I have read the
[Documentation](https://pub.dev/documentation/dio/latest/)
- [x] I have searched for a similar pull request in the
[project](https://github.com/cfug/dio/pulls) and found none
- [x] I have updated this branch with the latest `main` branch to avoid
conflicts (via merge from master or rebase)
- [x] I have added the required tests to prove the fix/feature I'm
adding
- [x] I have updated the documentation (if necessary)
- [x] I have run the tests without failures
- [x] I have updated the `CHANGELOG.md` in the corresponding package

### Additional context and info (if any)

<!-- Provide more context and info about the PR. -->
  • Loading branch information
ueman authored Jun 4, 2023
1 parent c60ad4e commit d7858e3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ jobs:
uses: subosito/[email protected]
with:
cache: true
flutter-version: ${{ matrix.channel == 'min' && '3.7.0' || '' }}
flutter-version: ${{ matrix.channel == 'min' && '3.10.0' || '' }}
channel: ${{ matrix.channel == 'min' && 'stable' || matrix.channel }}
- run: flutter test
1 change: 1 addition & 0 deletions plugins/native_dio_adapter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Update dependencies to make use of stable versions.
- Replace `DioError` with `DioException`.
- Fix `onReceiveProgress` callback.

Expand Down
6 changes: 2 additions & 4 deletions plugins/native_dio_adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
[![popularity](https://img.shields.io/pub/popularity/native_dio_adapter)](https://pub.dev/packages/native_dio_adapter/score)
[![pub points](https://img.shields.io/pub/points/native_dio_adapter)](https://pub.dev/packages/native_dio_adapter/score)

> Note: Experimental
The underlying technology is still considered experimental, therefore this
is also considered experimental.
> Note: This uses the native http implementation on macOS, iOS and Android. Other platforms still use the Dart http stack.
> Please keep in mind that Android is still considered experimental.
If you encounter bugs, consider fixing it by opening a PR or at least contribute a failing test case.

Expand Down
10 changes: 5 additions & 5 deletions plugins/native_dio_adapter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ repository: https://github.com/cfug/dio/blob/main/plugins/native_dio_adapter
issue_tracker: https://github.com/cfug/dio/issues

environment:
sdk: ">=2.19.0 <3.0.0"
flutter: ">=3.7.0"
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"

dependencies:
dio: ^5.2.0
cupertino_http: ^0.1.2
cronet_http: ^0.2.0
http: ^0.13.4
cupertino_http: ^1.0.0
cronet_http: ^0.2.1
http: ^1.0.0

dev_dependencies:
lints: ^2.0.0
Expand Down

0 comments on commit d7858e3

Please sign in to comment.