native_dio_adapter 1.8.0 copy "native_dio_adapter: ^1.8.0" to clipboard
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_http 1.9.0 by upgrading jni to ^1.0.0 and migrating the Cronet-provider-disabled classifier from JniException to JThrowable. The minimum Dart SDK is now 3.4.0 and the minimum Flutter version is now 3.35.6, following the requirements of jni 1.0.0 and cronet_http 1.9.0. Fixes #2581.

1.7.0 #

  • Add opt-in createFallbackAdapter to NativeAdapter. 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 any HttpClientAdapter and requests continue via that adapter. Detection is strictly limited to Cronet's provider-disabled RuntimeException; every other Cronet error is propagated unchanged. Adapter selection is sticky for the lifetime of the NativeAdapter. Fixes #2444.

1.6.0 #

  • Fix memory leak on Android: complete the abortTrigger future after the response stream is consumed, allowing CronetUrlRequest JNI references and upload body bytes to be garbage collected.
  • Support cupertino_http 3.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, and receiveTimeout in ConversionLayerAdapter

1.5.0 #

  • Close the CronetEngine when closing the CronetClient by default.
  • Expose underlying adapters from all adapters.

1.4.0 #

  • Support cupertino_http 2.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 createCronetEngine and createCupertinoConfiguration to deprecate cronetEngine and cupertinoConfiguration for the NativeAdapter, to avoid platform exceptions.
  • Improve the request stream byte conversion.

1.1.1 #

  • Adds the missing flutter dependency.

1.1.0 #

  • Bump cronet_http version.
  • Minimal required Dart version is now 3.1.
  • Minimal required Flutter version is now 3.13.0.
  • Allow case-sensitive header keys with the preserveHeaderCase flag through options.

1.0.0+2 #

  • Add topics to packages.

1.0.0+1 #

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

0.1.0 #

  • Bump cupertino_http and cronet_http versions.
  • Improve code formats according to linter rules.

0.0.1 #

  • Initial version.
66
likes
160
points
176k
downloads

Documentation

API reference

Publisher

verified publisherflutter.cn

Weekly Downloads

A client for dio which makes use of cupertino_http and cronet_http to delegate HTTP requests to the native platform.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#dio #http #native #network #cronet

License

Apache-2.0 (license)

Dependencies

cronet_http, cupertino_http, dio, flutter, http, jni

More

Packages that depend on native_dio_adapter