healthrian_uart_support 1.1.1
healthrian_uart_support: ^1.1.1 copied to clipboard
Healthrian library for supporting UART connector manager
We analyzed this package 4 days ago, and awarded it 120 pub points (of a possible 160):
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.
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: MIT.
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.
10/10 points: Package has an example
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.dartthat imports:package:healthrian_uart_support/src/healthrian_uart_support_base.dartthat imports:package:healthrian_uart_support/src/uart/uart_connector_manager.dartthat imports:package:flutter_libserialport/flutter_libserialport.dartthat declares support for platforms:Android,Windows,Linux,macOS.
Package does not support platform `Web`.
Because:
package:healthrian_uart_support/healthrian_uart_support.dartthat imports:package:healthrian_uart_support/src/healthrian_uart_support_base.dartthat imports:package:healthrian_uart_support/src/uart/uart_connector_manager.dartthat imports:package:flutter_libserialport/flutter_libserialport.dartthat 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.dartthat imports:package:healthrian_uart_support/src/healthrian_uart_support_base.dartthat imports:package:healthrian_uart_support/src/uart/uart_connector_manager.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `Linux`.
Because:
package:healthrian_uart_support/healthrian_uart_support.dartthat imports:package:healthrian_uart_support/src/healthrian_uart_support_base.dartthat imports:package:healthrian_uart_support/src/uart/uart_connector_manager.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `macOS`.
Because:
package:healthrian_uart_support/healthrian_uart_support.dartthat imports:package:healthrian_uart_support/src/healthrian_uart_support_base.dartthat imports:package:healthrian_uart_support/src/uart/uart_connector_manager.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:healthrian_uart_support/healthrian_uart_support.dartthat imports:package:healthrian_uart_support/src/healthrian_uart_support_base.dartthat imports:package:healthrian_uart_support/src/uart/uart_connector_manager.dartthat imports:package:shell/shell.dartthat imports:package:shell/src/wrapped_process.dartthat imports:package:file/file.dartthat imports:package:file/src/interface.dartthat imports:package:file/src/io.dartthat 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.
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
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.
10/10 points: Package supports latest stable Dart and Flutter SDKs
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.