healthrian_uart_support 1.1.1 copy "healthrian_uart_support: ^1.1.1" to clipboard
healthrian_uart_support: ^1.1.1 copied to clipboard

Healthrian library for supporting UART connector manager

120/ 160
pub points
91
downloads

We analyzed this package 4 days ago, and awarded it 120 pub points (of a possible 160):

Partially passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Repository URL doesn't exist.

At the time of the analysis https://github.com/chan150/healthrian_uart_support was unreachable. Make sure that the website is reachable via HEAD requests.

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: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

10 out of 100 API elements (10.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: healthrian_uart_support, healthrian_uart_support.BSL, healthrian_uart_support.BSL.BSL.new, healthrian_uart_support.BSL.generatePacket, healthrian_uart_support.ChannelExtension.

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 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package does not support platform `iOS`.

Because:

  • package:healthrian_uart_support/healthrian_uart_support.dart that imports:
  • package:healthrian_uart_support/src/healthrian_uart_support_base.dart that imports:
  • package:healthrian_uart_support/src/uart/uart_connector_manager.dart that imports:
  • package:flutter_libserialport/flutter_libserialport.dart that declares support for platforms: Android, Windows, Linux, macOS.
Package does not support platform `Web`.

Because:

  • package:healthrian_uart_support/healthrian_uart_support.dart that imports:
  • package:healthrian_uart_support/src/healthrian_uart_support_base.dart that imports:
  • package:healthrian_uart_support/src/uart/uart_connector_manager.dart that imports:
  • package:flutter_libserialport/flutter_libserialport.dart that declares support for platforms: Android, 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:healthrian_uart_support/healthrian_uart_support.dart that imports:
  • package:healthrian_uart_support/src/healthrian_uart_support_base.dart that imports:
  • package:healthrian_uart_support/src/uart/uart_connector_manager.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:healthrian_uart_support/healthrian_uart_support.dart that imports:
  • package:healthrian_uart_support/src/healthrian_uart_support_base.dart that imports:
  • package:healthrian_uart_support/src/uart/uart_connector_manager.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:healthrian_uart_support/healthrian_uart_support.dart that imports:
  • package:healthrian_uart_support/src/healthrian_uart_support_base.dart that imports:
  • package:healthrian_uart_support/src/uart/uart_connector_manager.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:healthrian_uart_support/healthrian_uart_support.dart that imports:
  • package:healthrian_uart_support/src/healthrian_uart_support_base.dart that imports:
  • package:healthrian_uart_support/src/uart/uart_connector_manager.dart that imports:
  • package:shell/shell.dart that imports:
  • package:shell/src/wrapped_process.dart that imports:
  • package:file/file.dart that imports:
  • package:file/src/interface.dart that imports:
  • package:file/src/io.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 6 issues. Showing the first 2:

INFO: Uses 'await' on an instance of 'Map

lib/src/uart/uart_connector_manager.dart:416:20

    ╷
416 │       final data = await _loadFromTiTxt(tiTxt);
    │                    ^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/uart/uart_connector_manager.dart

INFO: Statements in an if should be enclosed in a block.

lib/src/uart/uart_connector_manager.dart:490:13

    ╷
490 │             log('CRC does not match (expected: $crcFromFile, actual: $crcFromMemory)', name: 'ERROR');
    │             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/uart/uart_connector_manager.dart

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

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
data any 0.15.1 0.15.1
device_info_plus any 11.3.0 12.2.0
encrypt any 5.0.3 5.0.3
flutter_libserialport any 0.6.0 0.6.0
healthrian_common_support any 2.4.4 2.4.4
mobx any 2.5.0 2.5.0
rxdart any 0.28.0 0.28.0
shared_preferences any 2.5.3 2.5.3
shell any 2.0.0 2.0.0
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
asn1lib - 1.6.5 1.6.5
characters - 1.4.0 1.4.1
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
complex - 0.7.2 0.8.0
convert - 3.1.2 3.1.2
copy_with_extension - 10.0.1 10.0.1
crypto - 3.0.6 3.0.6
device_info_plus_platform_interface - 7.0.3 7.0.3
dylib - 0.3.3 0.3.3
equatable - 2.0.7 2.0.7
ffi - 2.1.4 2.1.4
file - 6.1.4 7.0.1
iirjdart - 0.1.0 0.1.0
js - 0.7.2 0.7.2 Discontinued
json_annotation - 4.9.0 4.9.0
libserialport - 0.3.0+1 0.3.0+1
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
more - 4.6.1 4.6.1
path - 1.9.1 1.9.1
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
pointycastle - 3.9.1 4.0.0
process - 4.2.4 5.0.5
shared_preferences_android - 2.4.15 2.4.15
shared_preferences_foundation - 2.5.5 2.5.5
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
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.15.0 5.15.0
win32_registry - 1.1.5 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.

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 8 errors:

  • UNCHECKED_USE_OF_NULLABLE_VALUE - lib/src/extension/channel_extension.dart:21:71 - A nullable expression can't be used as a condition.
  • UNDEFINED_GETTER - lib/src/uart/uart_connector_manager.dart:391:47 - The getter 'deviceInfo' isn't defined for the type 'DeviceInfoPlugin'.
  • UNDEFINED_IDENTIFIER - lib/src/uart/uart_connector_manager.dart:485:29 - Undefined name 'Crc16'.

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.24, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
120
points
91
downloads

Publisher

unverified uploader

Weekly Downloads

Healthrian library for supporting UART connector manager

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

data, device_info_plus, encrypt, flutter, flutter_libserialport, healthrian_common_support, mobx, rxdart, shared_preferences, shell

More

Packages that depend on healthrian_uart_support