cache_annotations 1.0.2 copy "cache_annotations: ^1.0.2" to clipboard
cache_annotations: ^1.0.2 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
120/ 160
pub points
85
downloads

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

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: cache_annotations,
    • contains a version property, and,
    • does not contain a publish_to property.

cache_annotations/pubspec.yaml from the repository defines publish_to, thus, we are unable to verify the package is published from here.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

failed
Provide documentation
0 / 20trigger folding of the section

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 624036 elements... Initialized dartdoc with 788 libraries Generating docs for library generators.dart from package:cache_annotations/generators.dart... Generating docs for library annotations.dart from package:cache_annotations/annotations.dart... Documented 2 public libraries in 60.9 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_OICAWD/lib/src/cache_generator_annotations.dart:41: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 [66 more lines]

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

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.

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.

partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 3 issues. Showing the first 2:

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

To format your files run: dart format .

/tmp/pana_OICAWD/lib/generators.dart doesn't match the Dart formatter.

To format your files run: dart format .

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

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
localstore ^1.4.0 1.4.0 1.4.0
path_provider ^2.1.3 2.1.5 2.1.5
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.4.0
collection - 1.19.0 1.19.1
ffi - 2.1.3 2.1.3
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
path - 1.9.1 1.9.1
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.

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

2
likes
120
points
85
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.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, localstore, path_provider

More

Packages that depend on cache_annotations