jt_preferences 4.0.7 copy "jt_preferences: ^4.0.7" to clipboard
jt_preferences: ^4.0.7 copied to clipboard

Json based key-value storage with AES encryption support. Supported data types are `int`, `double`, `bool`, `String` and `Writable object`.

11
likes
110/ 160
pub points
86
downloads

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

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: Apache-2.0.

failed
Provide documentation
0 / 20trigger folding of the section

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

1 out of 31 API elements (3.2 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: provider, provider.JtPreferences, provider.JtPreferences.clear, provider.JtPreferences.contains, provider.JtPreferences.getAll.

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 not compatible with platform Web

Because:

  • package:jt_preferences/provider.dart that imports:
  • package:jt_preferences/src/jt_preferences.dart that imports:
  • package:jt_preferences/src/di/lib_di.dart that imports:
  • package:jt_preferences/src/file/file_manager_impl.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:jt_preferences/provider.dart that imports:
  • package:jt_preferences/src/jt_preferences.dart that imports:
  • package:jt_preferences/src/di/lib_di.dart that imports:
  • package:jt_preferences/src/file/file_manager_impl.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.

failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 4 issues. Showing the first 2:

WARNING: The value of the local variable 'bool' isn't used.

bin/main.dart:43:9

   ╷
43 │   final bool = preferences.isTemporaryModeEnabled;
   │         ^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze bin/main.dart

WARNING: Unused import: 'dart:io'.

lib/src/jt_preferences.dart:1:8

  ╷
1 │ import 'dart:io';
  │        ^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/jt_preferences.dart

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

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

Package Constraint Compatible Latest
encrypt ^5.0.1 5.0.3 5.0.3
get_it ^7.2.0 7.7.0 8.0.3
Transitive dependencies
Package Constraint Compatible Latest
args - 2.6.0 2.6.0
asn1lib - 1.5.8 1.5.8
async - 2.12.0 2.12.0
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
js - 0.7.1 0.7.1
meta - 1.16.0 1.16.0
pointycastle - 3.9.1 3.9.1
typed_data - 1.4.0 1.4.0

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

The constraint `^7.2.0` on get_it does not support the stable version `8.0.0`.

Try running dart pub upgrade --major-versions get_it to update the constraint.

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, Dart 3.6.0.

Check the analysis log for details.

11
likes
110
points
86
downloads

Publisher

unverified uploader

Weekly Downloads

Json based key-value storage with AES encryption support. Supported data types are `int`, `double`, `bool`, `String` and `Writable object`.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

encrypt, get_it

More

Packages that depend on jt_preferences