native_storage 0.2.2
native_storage: ^0.2.2 copied to clipboard
A Dart-only package for accessing platform-native storage functionality.
We analyzed this package 5 days ago, and awarded it 140 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: BSD-2-Clause-Patent
.
10/10 points: 20% or more of the public API has dartdoc comments
37 out of 49 API elements (75.5 %) have documentation comments.
Some symbols that are missing documentation: native_storage
, native_storage.NativeMemoryStorage.NativeMemoryStorage.new
, native_storage.NativeMemoryStorage.allKeys
, native_storage.NativeMemoryStorage.closeInternal
, native_storage.NativeMemoryStorage.instances
.
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 does not support platform `Android`.
Because:
package:native_storage/native_storage.dart
that imports:package:native_storage/src/native_storage.dart
that imports:package:native_storage/src/local/local_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage.windows.dart
that imports:package:win32_registry/win32_registry.dart
that declares support for platforms:Windows
.
Package does not support platform `iOS`.
Because:
package:native_storage/native_storage.dart
that imports:package:native_storage/src/native_storage.dart
that imports:package:native_storage/src/local/local_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage.windows.dart
that imports:package:win32_registry/win32_registry.dart
that declares support for platforms:Windows
.
Package does not support platform `Windows`.
Because:
package:native_storage/native_storage.dart
that imports:package:native_storage/src/native_storage.dart
that imports:package:native_storage/src/local/local_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage.linux.dart
that imports:package:native_storage/src/native/linux/linux.dart
that imports:package:xdg_directories/xdg_directories.dart
that declares support for platforms:Linux
.
Package does not support platform `Linux`.
Because:
package:native_storage/native_storage.dart
that imports:package:native_storage/src/native_storage.dart
that imports:package:native_storage/src/local/local_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage.windows.dart
that imports:package:win32_registry/win32_registry.dart
that declares support for platforms:Windows
.
Package does not support platform `macOS`.
Because:
package:native_storage/native_storage.dart
that imports:package:native_storage/src/native_storage.dart
that imports:package:native_storage/src/local/local_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage_platform.vm.dart
that imports:package:native_storage/src/secure/secure_storage.windows.dart
that imports:package:win32_registry/win32_registry.dart
that declares support for platforms:Windows
.
0/0 points: WASM compatibility
This package is compatible with runtime wasm
, and will be rewarded additional 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: '[]' is deprecated and shouldn't be used. Use Storage.getItem instead.
lib/src/local/local_storage_platform.web.dart:43:31
╷
43 │ String? read(String key) => _storage['$_prefix$key'];
│ ^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/local/local_storage_platform.web.dart
INFO: 'ERROR_SUCCESS' is deprecated and shouldn't be used. Use ERROR_SUCCESS instead.
lib/src/secure/secure_storage.windows.dart:65:56
╷
65 │ if (GetLastError() case final hr && != WIN32_ERROR.ERROR_SUCCESS) {
│ ^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/secure/secure_storage.windows.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
ffi |
^2.1.2 |
2.1.4 | 2.1.4 | |
jni |
^0.11.0 |
0.11.0 | 0.14.1 | |
logging |
^1.2.0 |
1.3.0 | 1.3.0 | |
meta |
^1.11.0 |
1.16.0 | 1.16.0 | |
path |
^1.9.0 |
1.9.1 | 1.9.1 | |
stack_trace |
^1.11.1 |
1.12.1 | 1.12.1 | |
stream_channel |
^2.1.2 |
2.1.4 | 2.1.4 | |
web |
>=0.5.0 <2.0.0 |
1.1.1 | 1.1.1 | |
win32 |
^5.4.0 |
5.12.0 | 5.12.0 | |
win32_registry |
^1.1.2 |
1.1.5 | 2.1.0 | |
windows_applicationmodel |
^0.2.0 |
0.2.0 | 0.2.0 | Discontinued |
xdg_directories |
^1.0.4 |
1.1.0 | 1.1.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
package_config |
- | 2.2.0 | 2.2.0 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
windows_data |
- | 0.2.0 | 0.2.0 | Discontinued |
windows_devices |
- | 0.2.0 | 0.2.0 | Discontinued |
windows_foundation |
- | 0.2.0 | 0.2.0 | Discontinued |
windows_globalization |
- | 0.1.0+1 | 0.1.0+1 | Discontinued |
windows_graphics |
- | 0.2.0 | 0.2.0 | Discontinued |
windows_media |
- | 0.2.0 | 0.2.0 | Discontinued |
windows_networking |
- | 0.2.0 | 0.2.0 | Discontinued |
windows_perception |
- | 0.1.0 | 0.1.0 | Discontinued |
windows_security |
- | 0.1.0+1 | 0.1.0+1 | Discontinued |
windows_services |
- | 0.1.0 | 0.1.0 | Discontinued |
windows_storage |
- | 0.2.0 | 0.2.0 | Discontinued |
windows_system |
- | 0.1.0+1 | 0.1.0+1 | Discontinued |
windows_ui |
- | 0.2.0 | 0.2.0 | Discontinued |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
Found 3 issues. Showing the first 2:
The constraint `^0.11.0` on jni does not support the stable version `0.12.0`.
Try running dart pub upgrade --major-versions jni
to update the constraint.
The constraint `^1.1.2` on win32_registry does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions win32_registry
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.20
, Flutter 3.29.2
, Dart 3.7.2
.
Check the analysis log for details.