native_storage 0.2.2 copy "native_storage: ^0.2.2" to clipboard
native_storage: ^0.2.2 copied to clipboard

A Dart-only package for accessing platform-native storage functionality.

65
likes
140/ 160
pub points
2.22k
downloads

We analyzed this package 5 days ago, and awarded it 140 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-2-Clause-Patent.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 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.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 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.

Passed check 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.

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 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

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

Failed check 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.

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.20, Flutter 3.29.2, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
65
likes
140
points
2.22k
downloads

Publisher

verified publishercelest.dev

Weekly Downloads

A Dart-only package for accessing platform-native storage functionality.

Repository (GitHub)

Documentation

API reference

License

BSD-2-Clause-Patent (license)

Dependencies

ffi, jni, logging, meta, path, stack_trace, stream_channel, web, win32, win32_registry, windows_applicationmodel, xdg_directories

More

Packages that depend on native_storage