dio_cookie_manager 1.0.0

Dart native
Flutter Android iOS

A cookie manager for Dio, which supports persistent cookies in RAM and file.

13
likes
90 / 110
pub points
95 %
popularity

We analyzed this package on Aug 7, 2020, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/example.dart

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

  • 5 out of 8 API elements (62.5 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:dio_cookie_manager/dio_cookie_manager.dart that imports:
  • package:dio_cookie_manager/src/cookie_mgr.dart that imports:
  • package:cookie_jar/cookie_jar.dart that imports:
  • package:cookie_jar/src/serializable_cookie.dart that imports:
  • dart:io
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 4 issues. Showing the first 2:

INFO: Omit type annotations for local variables.

lib/src/cookie_mgr.dart:23:5

   ╷
23 │     String cookie = getCookies(cookies);
   │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/cookie_mgr.dart

INFO: The method _saveCookies should have a return type but doesn't.

lib/src/cookie_mgr.dart:33:3

   ╷
33 │   _saveCookies(Response response) {
   │   ^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/cookie_mgr.dart

Support up-to-date dependencies
20 / 20

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

PackageConstraintCompatibleLatest
cookie_jar^1.0.11.0.11.0.1
dio^3.0.03.0.103.0.10
Transitive dependencies
PackageConstraintCompatibleLatest
charcode-1.1.31.1.3
collection-1.14.131.14.13
http_parser-3.1.43.1.4
meta-1.2.21.2.2
path-1.7.01.7.0
source_span-1.7.01.7.0
string_scanner-1.0.51.0.5
term_glyph-1.1.01.1.0
typed_data-1.2.01.2.0

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

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

13
likes
90
pub points
95%
popularity

Publisher

flutterchina.club

A cookie manager for Dio, which supports persistent cookies in RAM and file.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

cookie_jar, dio

More

Packages that depend on dio_cookie_manager