native_dio_adapter 1.5.0 copy "native_dio_adapter: ^1.5.0" to clipboard
native_dio_adapter: ^1.5.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.

140/ 160
pub points
60.2k
downloads

We analyzed this package 5 days ago, and awarded it 140 pub points (of a possible 160):

Partially passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/cfug/dio/issues was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

174 out of 222 API elements (78.4 %) have documentation comments.

Some symbols that are missing documentation: native_dio_adapter, native_dio_adapter.ConnectionException.ConnectionException.new, native_dio_adapter.ConnectionException.error, native_dio_adapter.ConnectionException.message, native_dio_adapter.ConversionLayerAdapter.ConversionLayerAdapter.new.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Web`.

Because:

  • package:native_dio_adapter/native_dio_adapter.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:native_dio_adapter/native_dio_adapter.dart that imports:
  • package:native_dio_adapter/src/native_adapter.dart that imports:
  • package:native_dio_adapter/src/cupertino_adapter.dart that imports:
  • package:cupertino_http/cupertino_http.dart that declares support for platforms: iOS, macOS.
Package does not support platform `iOS`.

Because:

  • package:native_dio_adapter/native_dio_adapter.dart that imports:
  • package:native_dio_adapter/src/native_adapter.dart that imports:
  • package:native_dio_adapter/src/cronet_adapter.dart that imports:
  • package:cronet_http/cronet_http.dart that declares support for platforms: Android.
Package does not support platform `Windows`.

Because:

  • package:native_dio_adapter/native_dio_adapter.dart that imports:
  • package:native_dio_adapter/src/native_adapter.dart that imports:
  • package:native_dio_adapter/src/cupertino_adapter.dart that imports:
  • package:cupertino_http/cupertino_http.dart that declares support for platforms: iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:native_dio_adapter/native_dio_adapter.dart that imports:
  • package:native_dio_adapter/src/native_adapter.dart that imports:
  • package:native_dio_adapter/src/cupertino_adapter.dart that imports:
  • package:cupertino_http/cupertino_http.dart that declares support for platforms: iOS, macOS.
Package does not support platform `macOS`.

Because:

  • package:native_dio_adapter/native_dio_adapter.dart that imports:
  • package:native_dio_adapter/src/native_adapter.dart that imports:
  • package:native_dio_adapter/src/cronet_adapter.dart that imports:
  • package:cronet_http/cronet_http.dart that declares support for platforms: Android.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:native_dio_adapter/native_dio_adapter.dart that imports:
  • package:native_dio_adapter/src/native_adapter.dart that imports:
  • package:native_dio_adapter/src/cupertino_adapter.dart that imports:
  • package:cupertino_http/cupertino_http.dart that imports:
  • package:cupertino_http/src/cupertino_web_socket.dart that imports:
  • package:cupertino_http/src/cupertino_api.dart that imports:
  • package:cupertino_http/src/utils.dart that imports:
  • package:objective_c/objective_c.dart that imports:
  • package:objective_c/src/selector.dart that imports:
  • package:objective_c/src/internal.dart that imports:
  • package:objective_c/src/c_bindings_generated.dart that imports:
  • dart:ffi

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Passed report section
Pass static analysis
50 / 50trigger folding of the section

Passed check 50/50 points: code has no errors, warnings, lints, or formatting issues

Failed report section
Support up-to-date dependencies
20 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
cronet_http >=0.4.0 <2.0.0 1.5.0 1.5.0
cupertino_http >=1.0.0 <3.0.0 2.3.0 2.3.0
dio ^5.4.0 5.9.0 5.9.0
http ^1.0.0 1.5.0 1.5.0
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
dio_web_adapter - 2.1.1 2.1.1
ffi - 2.1.4 2.1.4
http_parser - 4.1.2 4.1.2
http_profile - 0.1.0 0.1.0
jni - 0.14.2 0.14.2
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
mime - 2.0.0 2.0.0
objective_c - 7.1.0 8.1.0
package_config - 2.2.0 2.2.0
path - 1.9.1 1.9.1
plugin_platform_interface - 2.1.8 2.1.8
pub_semver - 2.2.0 2.2.0
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
web_socket - 1.0.1 1.0.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_NAMED_PARAMETER - lib/src/cronet_adapter.dart:17:55 - The named parameter 'closeEngine' isn't defined.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.22, Flutter 3.35.2, Dart 3.9.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
50
likes
140
points
60.2k
downloads

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

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

cronet_http, cupertino_http, dio, flutter, http

More

Packages that depend on native_dio_adapter