nsg_data 1.0.0 copy "nsg_data: ^1.0.0" to clipboard
nsg_data: ^1.0.0 copied to clipboard

Data object model and data exchange with C# server

110/ 160
pub points
139
downloads

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

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: nsg_data,
    • contains a version property, and,
    • does not contain a publish_to property.

pubspec.yaml from the repository defines publish_to, thus, we are unable to verify the package is published from here.

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-3-Clause.

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

355 out of 1068 API elements (33.2 %) have documentation comments.

Some symbols that are missing documentation: base_reference_field, base_reference_field.NsgDataBaseReferenceField, base_reference_field.NsgDataBaseReferenceField.NsgDataBaseReferenceField.new, base_reference_field.NsgDataBaseReferenceField.referentElementType, base_reference_field.NsgDataBaseReferenceField.referentType.

Passed check 10/10 points: Package has an example

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

Passed check 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 does not support platform `Web`.

Because:

  • package:nsg_data/nsg_data.dart that imports:
  • package:nsg_data/db/nsg_local_db.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

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:nsg_data/nsg_data.dart that imports:
  • package:nsg_data/nsgDataFreeRequest.dart that imports:
  • package:nsg_data/nsg_data_provider.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32_registry/win32_registry.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:nsg_data/nsg_data.dart that imports:
  • package:nsg_data/nsgDataFreeRequest.dart that imports:
  • package:nsg_data/nsg_data_provider.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32_registry/win32_registry.dart that declares support for platforms: Windows.
Package does not support platform `Linux`.

Because:

  • package:nsg_data/nsg_data.dart that imports:
  • package:nsg_data/nsgDataFreeRequest.dart that imports:
  • package:nsg_data/nsg_data_provider.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32_registry/win32_registry.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:nsg_data/nsg_data.dart that imports:
  • package:nsg_data/nsgDataFreeRequest.dart that imports:
  • package:nsg_data/nsg_data_provider.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32_registry/win32_registry.dart that declares support for platforms: Windows.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:nsg_data/nsg_data.dart that imports:
  • package:nsg_data/db/nsg_local_db.dart that imports:
  • package:path_provider/path_provider.dart that imports:
  • package:path_provider_platform_interface/path_provider_platform_interface.dart that imports:
  • package:path_provider_platform_interface/src/method_channel_path_provider.dart that imports:
  • package:platform/platform.dart that imports:
  • package:platform/src/interface/local_platform.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.cn/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 67 issues. Showing the first 2:

INFO: Missing type annotation.

lib/controllers/nsgBaseController.dart:233:3

    ╷
233 │   saveBackup(NsgDataItem item) {
    │   ^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/controllers/nsgBaseController.dart

INFO: 'RawKeyDownEvent' is deprecated and shouldn't be used. Use KeyDownEvent instead. This feature was deprecated after v3.18.0-2.0.pre.

lib/helpers/nsg_barcode_reader.dart:18:36

   ╷
18 │ /// Windows seems to be using the [RawKeyDownEvent] instead of the
   │                                    ^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/helpers/nsg_barcode_reader.dart

Failed report section
Support up-to-date dependencies
10 / 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
device_info_plus ^11.0.0 11.5.0 12.1.0
dio ^5.4.3+1 5.9.0 5.9.0
event ^2.0.5 2.1.2 3.1.0
flutter_multi_formatter ^2.13.7 2.13.10 2.13.10
get ^5.0.0-beta.52 5.0.0-release-candidate-9.3.2 5.0.0-release-candidate-9.3.2
hive_ce ^2.10.1 2.14.0 2.14.0
intl ^0.20.2 0.20.2 0.20.2
jiffy ^6.0.0 6.4.3 6.4.3
package_info_plus ^8.0.2 8.3.1 9.0.0
path_provider ^2.0.11 2.1.5 2.1.5
pedantic ^1.11.1 1.11.1 1.11.1 Discontinued
retry ^3.1.0 3.1.2 3.1.2
shared_preferences ^2.5.3 2.5.3 2.5.3
timeago ^3.5.0 3.7.1 3.7.1
uuid ^4.2.1 4.5.1 4.5.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
base58check - 2.0.0 2.0.0
bech32 - 0.2.2 0.2.2
boolean_selector - 2.1.2 2.1.2
characters - 1.4.0 1.4.1
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
device_info_plus_platform_interface - 7.0.3 7.0.3
dio_web_adapter - 2.1.1 2.1.1
ffi - 2.1.4 2.1.4
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
http - 1.5.0 1.5.0
http_parser - 4.1.2 4.1.2
isolate_channel - 0.2.2+1 0.2.2+1
json_annotation - 4.9.0 4.9.0
matcher - 0.12.17 0.12.17
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
mime - 2.0.0 2.0.0
package_info_plus_platform_interface - 3.2.1 3.2.1
path - 1.9.1 1.9.1
path_provider_android - 2.2.18 2.2.18
path_provider_foundation - 2.4.2 2.4.2
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
quiver - 3.2.2 3.2.2
shared_preferences_android - 2.4.14 2.4.14
shared_preferences_foundation - 2.5.4 2.5.4
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.1 1.10.1
sprintf - 7.0.0 7.0.0
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.7 0.7.7
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
win32 - 5.14.0 5.14.0
win32_registry - 2.1.0 2.1.0
xdg_directories - 1.1.0 1.1.0

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

Found 4 issues. Showing the first 2:

The constraint `^11.0.0` on device_info_plus does not support the stable version `12.0.0`, that was published 21 days ago.

When device_info_plus is 30 days old, this package will no longer be awarded points in this category.

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

The constraint `^2.0.5` on event does not support the stable version `3.0.0`.

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

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2 errors:

  • URI_DOES_NOT_EXIST - lib/ui/nsg_data_ui.dart:3:8 - Target of URI doesn't exist: 'package:get/get_navigation/src/routes/new_path_route.dart'.
  • UNDEFINED_METHOD - lib/ui/nsg_data_ui.dart:158:32 - The method 'firstWhereOrNull' isn't defined for the type 'Iterable'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.23, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
110
points
139
downloads

Publisher

unverified uploader

Weekly Downloads

Data object model and data exchange with C# server

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

device_info_plus, dio, event, flutter, flutter_localizations, flutter_multi_formatter, get, hive_ce, intl, jiffy, package_info_plus, path_provider, pedantic, retry, shared_preferences, timeago, uuid

More

Packages that depend on nsg_data