cache_annotations 1.0.3 copy "cache_annotations: ^1.0.3" to clipboard
cache_annotations: ^1.0.3 copied to clipboard

This package is a type conversion generator using source_gen and inspired by Retrofit to help you manage persistent cache.

2
likes
130/ 160
pub points
169
downloads

We analyzed this package 34 hours ago, and awarded it 130 pub points (of a possible 160):

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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: BSD-3-Clause.

Failed report section
Provide documentation
0 / 20trigger folding of the section

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

OUT: Documenting cache_annotations... Discovering libraries... Linking elements... Precaching local docs for 630099 elements... Initialized dartdoc with 793 libraries Generating docs for library annotations.dart from package:cache_annotations/annotations.dart... Generating docs for library generators.dart from package:cache_annotations/generators.dart... Documented 2 public libraries in 75.0 seconds ERR: warning: ambiguous reexport of cache_generator_annotations.PathConvertor, canonicalization candidates: (cache_annotations, cache_annotations) -> cache_annotations (confidence 0.000) from cache_generator_annotations.PathConvertor: (file:///tmp/pana_ZRKEMP/lib/src/cache_generator_annotations.dart:52:9) cache_annotations: 1.210 - (_Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) cache_annotations: 1.210 - (_Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) Use {@canonicalFor cache_generator_annotations.PathConvertor} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be displayed in navigation for the relevant pages. The flag [70 more lines]

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add 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:cache_annotations/annotations.dart that imports:
  • package:cache_annotations/src/local_store_cache_mixin.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:cache_annotations/annotations.dart that imports:
  • package:cache_annotations/src/local_store_cache_mixin.dart that imports:
  • package:path_provider/path_provider.dart that imports:
  • package:path_provider_platform_interface/path_provider_platform_interface.dart that imports:
  • package:path_provider_platform_interface/src/method_channel_path_provider.dart that imports:
  • package:platform/platform.dart that imports:
  • package:platform/src/interface/local_platform.dart that imports:
  • dart:io

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.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 5 issues. Showing the first 2:

INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead.

lib/src/localstore/src/utils/html.dart:4:1

  ╷
4 │ import 'dart:html' as html;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/localstore/src/utils/html.dart

/tmp/pana_ZRKEMP/lib/annotations.dart doesn't match the Dart formatter.

To format your files run: dart format .

Passed report section
Support up-to-date dependencies
40 / 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
flutter flutter 0.0.0 0.0.0
path ^1.9.0 1.9.1 1.9.1
path_provider ^2.1.5 2.1.5 2.1.5
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
ffi - 2.1.4 2.1.4
material_color_utilities - 0.11.1 0.12.0
meta - 1.16.0 1.16.0
path_provider_android - 2.2.15 2.2.15
path_provider_foundation - 2.4.1 2.4.1
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.0 0.0.0
vector_math - 2.1.4 2.1.4
xdg_directories - 1.1.0 1.1.0

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.18, Flutter 3.29.0, Dart 3.7.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
130
points
169
downloads

Publisher

verified publisherskyhook.fr

Weekly Downloads

This package is a type conversion generator using source_gen and inspired by Retrofit to help you manage persistent cache.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, path, path_provider

More

Packages that depend on cache_annotations