storage_repository 2.0.1
storage_repository: ^2.0.1 copied to clipboard
Abstraction for reading and persisting data to platform specific storage.
We analyzed this package 44 hours ago, and awarded it 150 pub points (of a possible 160):
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: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
43 out of 56 API elements (76.8 %) have documentation comments.
Some symbols that are missing documentation: _all, _all, _all, secure_storage_repository_impl, secure_storage_repository_impl.SecureStorageRepositoryImpl.migrationBoxKey.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
These issues are present but do not affect the score, because they may not originate in your package:
Package not compatible with platform Web
Because:
package:storage_repository/storage_repository.dartthat imports:package:storage_repository/implementations/_all.dartthat imports:package:storage_repository/implementations/secure_storage_repository_impl.dartthat imports:package:flutter_secure_storage/flutter_secure_storage.dartthat imports:package:flutter_secure_storage_platform_interface/flutter_secure_storage_platform_interface.dartthat imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:storage_repository/storage_repository.dartthat imports:package:storage_repository/interfaces/_all.dartthat imports:package:storage_repository/interfaces/storage_repository.dartthat imports:package:hive_flutter/hive_flutter.dartthat imports:package:path_provider/path_provider.dartthat imports:package:path_provider_platform_interface/path_provider_platform_interface.dartthat imports:package:path_provider_platform_interface/src/method_channel_path_provider.dartthat imports:package:platform/platform.dartthat imports:package:platform/src/interface/local_platform.dartthat 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.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
INFO: 'migrationDefaultSecureBoxKey' is deprecated and shouldn't be used. Will be removed once all apps data is migrated from Hive.
lib/implementations/secure_storage_repository_impl.dart:29:50
╷
29 │ this.migrationBoxKey = StorageRepositoryKeys.migrationDefaultSecureBoxKey,
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/implementations/secure_storage_repository_impl.dart
INFO: 'encryptionKey' is deprecated and shouldn't be used. Will be removed once all apps data is migrated from Hive.
lib/implementations/secure_storage_repository_impl.dart:65:61
╷
65 │ const encryptionKeyStorageKey = StorageRepositoryKeys.encryptionKey;
│ ^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/implementations/secure_storage_repository_impl.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
flutter_secure_storage |
^9.2.4 |
9.2.4 | 10.0.0 | |
hive |
^2.2.3 |
2.2.3 | 2.2.3 | |
hive_flutter |
^1.1.0 |
1.1.0 | 1.1.0 | |
shared_preferences |
^2.5.3 |
2.5.4 | 2.5.4 |
Transitive dependencies
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^9.2.4` on flutter_secure_storage does not support the stable version `10.0.0`, that was published 0 days ago.
When flutter_secure_storage is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions flutter_secure_storage 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.23.3, Flutter 3.38.4, Dart 3.10.3.
Check the analysis log for details.