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

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

65
likes
140/ 160
pub points
374
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 48 API elements (77.1 %) have documentation comments.

Some symbols that are missing documentation: native_storage, native_storage.NativeMemoryStorage.allKeys, native_storage.NativeMemoryStorage.closeInternal, native_storage.NativeMemoryStorage.instances, native_storage.NativeStorage.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 5 issues. Showing the first 2:

INFO: Angle brackets will be interpreted as HTML.

lib/src/native/android/jni_bindings.ffi.dart:271:25

    ╷
271 │   /// from: public void <init>(android.content.Context context, java.lang.String string, java.lang.String string1, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)
    │                         ^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/native/android/jni_bindings.ffi.dart

INFO: Angle brackets will be interpreted as HTML.

lib/src/native/android/jni_bindings.ffi.dart:353:25

    ╷
353 │   /// from: public void <init>(android.content.Context context, java.lang.String string, java.lang.String string1)
    │                         ^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/native/android/jni_bindings.ffi.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
ffi ^2.1.2 2.1.3 2.1.3
jni ^0.10.0 0.10.1 0.14.0
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.0 1.1.0
win32 ^5.4.0 5.10.1 5.10.1
win32_registry ^1.1.2 1.1.5 2.0.1
windows_applicationmodel ^0.2.0 0.2.0 0.2.0
xdg_directories ^1.0.4 1.1.0 1.1.0
Transitive dependencies
Package Constraint Compatible Latest
args - 2.6.0 2.6.0
async - 2.13.0 2.13.0
collection - 1.19.1 1.19.1
package_config - 2.1.1 2.1.1
plugin_platform_interface - 2.1.8 2.1.8
windows_data - 0.2.0 0.2.0
windows_devices - 0.2.0 0.2.0
windows_foundation - 0.2.0 0.2.0
windows_globalization - 0.1.0+1 0.1.0+1
windows_graphics - 0.2.0 0.2.0
windows_media - 0.2.0 0.2.0
windows_networking - 0.2.0 0.2.0
windows_perception - 0.1.0 0.1.0
windows_security - 0.1.0+1 0.1.0+1
windows_services - 0.1.0 0.1.0
windows_storage - 0.2.0 0.2.0
windows_system - 0.1.0+1 0.1.0+1
windows_ui - 0.2.0 0.2.0

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

The constraint `^0.10.0` on jni does not support the stable version `0.11.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.18, Flutter 3.27.4, Dart 3.6.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
65
likes
140
points
374
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