native_dio_adapter 1.8.0
native_dio_adapter: ^1.8.0 copied to clipboard
A client for dio which makes use of cupertino_http and cronet_http to delegate HTTP requests to the native platform.
CHANGELOG #
Unreleased #
None.
1.8.0 #
- Support
cronet_http1.9.0 by upgradingjnito^1.0.0and migrating the Cronet-provider-disabled classifier fromJniExceptiontoJThrowable. The minimum Dart SDK is now3.4.0and the minimum Flutter version is now3.35.6, following the requirements ofjni1.0.0 andcronet_http1.9.0. Fixes #2581.
1.7.0 #
- Add opt-in
createFallbackAdaptertoNativeAdapter. On Android, when the device has installed Cronet providers but every provider is disabled (for example AOSP emulators or devices without Google Play services), the supplied factory returns anyHttpClientAdapterand requests continue via that adapter. Detection is strictly limited to Cronet's provider-disabledRuntimeException; every other Cronet error is propagated unchanged. Adapter selection is sticky for the lifetime of theNativeAdapter. Fixes #2444.
1.6.0 #
- Fix memory leak on Android: complete the
abortTriggerfuture after the response stream is consumed, allowingCronetUrlRequestJNI references and upload body bytes to be garbage collected. - Support
cupertino_http3.0.0
1.5.1 #
- Support request cancellation for native HTTP clients via use of
AbortableRequest(introduced in http package from version 1.5.0) - Add timeout handling for
sendTimeout,connectTimeout, andreceiveTimeoutinConversionLayerAdapter
1.5.0 #
- Close the
CronetEnginewhen closing theCronetClientby default. - Expose underlying adapters from all adapters.
1.4.0 #
- Support
cupertino_http2.0.0
1.3.0 #
- Provide fix suggestions for
dart fix. - Bump cronet_http version to
>=0.4.0 <=2.0.0.
1.2.0 #
- Adds
createCronetEngineandcreateCupertinoConfigurationto deprecatecronetEngineandcupertinoConfigurationfor theNativeAdapter, to avoid platform exceptions. - Improve the request stream byte conversion.
1.1.1 #
- Adds the missing
flutterdependency.
1.1.0 #
- Bump
cronet_httpversion. - Minimal required Dart version is now 3.1.
- Minimal required Flutter version is now 3.13.0.
- Allow case-sensitive header keys with the
preserveHeaderCaseflag through options.
1.0.0+2 #
- Add topics to packages.
1.0.0+1 #
- Update dependencies to make use of stable versions.
- Replace
DioErrorwithDioException. - Fix
onReceiveProgresscallback.
0.1.0 #
- Bump cupertino_http and cronet_http versions.
- Improve code formats according to linter rules.
0.0.1 #
- Initial version.