soil_device_sdk 0.1.0
soil_device_sdk: ^0.1.0 copied to clipboard
USB Type-C soil sensor (CH34x) Modbus-RTU SDK for Flutter with API key verification and offline data queue.
We analyzed this package 11 days ago, and awarded it 140 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
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.
10/10 points: 20% or more of the public API has dartdoc comments
27 out of 65 API elements (41.5 %) have documentation comments.
Some symbols that are missing documentation: soil_device_sdk, soil_device_sdk.ApiKeyInvalidException, soil_device_sdk.ApiKeyInvalidException.ApiKeyInvalidException.new, soil_device_sdk.ApiKeyVerificationFailedException, soil_device_sdk.ApiKeyVerificationFailedException.ApiKeyVerificationFailedException.new.
10/10 points: Package has an example
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Android
These platforms are not supported:
Package does not support platform `iOS`.
Because:
package:soil_device_sdk/soil_device_sdk.dartthat imports:package:soil_device_sdk/src/usb/soil_usb_device_info.dartthat imports:package:usb_serial/usb_serial.dartthat declares support for platforms:Android.
Package does not support platform `Windows`.
Because:
package:soil_device_sdk/soil_device_sdk.dartthat imports:package:soil_device_sdk/src/usb/soil_usb_device_info.dartthat imports:package:usb_serial/usb_serial.dartthat declares support for platforms:Android.
Package does not support platform `Linux`.
Because:
package:soil_device_sdk/soil_device_sdk.dartthat imports:package:soil_device_sdk/src/usb/soil_usb_device_info.dartthat imports:package:usb_serial/usb_serial.dartthat declares support for platforms:Android.
Package does not support platform `macOS`.
Because:
package:soil_device_sdk/soil_device_sdk.dartthat imports:package:soil_device_sdk/src/usb/soil_usb_device_info.dartthat imports:package:usb_serial/usb_serial.dartthat declares support for platforms:Android.
Package does not support platform `Web`.
Because:
package:soil_device_sdk/soil_device_sdk.dartthat imports:package:soil_device_sdk/src/usb/soil_usb_device_info.dartthat imports:package:usb_serial/usb_serial.dartthat declares support for platforms:Android.
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:soil_device_sdk/soil_device_sdk.dartthat imports:package:soil_device_sdk/src/client/soil_device_client.dartthat imports:package:soil_device_sdk/src/soil_device_sdk_core.dartthat imports:package:connectivity_plus/connectivity_plus.dartthat imports:package:connectivity_plus/src/connectivity_plus_linux.dartthat imports:package:nm/nm.dartthat declares support for platforms:Linux.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 4 issues. Showing the first 2:
INFO: Statements in an if should be enclosed in a block.
lib/src/api/api_client.dart:84:7
╷
84 │ return VerifyResponse.fromJson(Map<String, dynamic>.from(data));
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/api/api_client.dart
INFO: Statements in an if should be enclosed in a block.
lib/src/api/api_client.dart:93:7
╷
93 │ return DataPostResponse.fromJson(Map<String, dynamic>.from(data));
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/api/api_client.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
connectivity_plus |
^6.0.5 |
6.1.5 | 7.3.1 | |
dio |
^5.4.3+1 |
5.11.1 | 5.11.1 | |
geolocator |
^12.0.0 |
12.0.0 | 14.0.3 | |
meta |
^1.11.0 |
1.19.0 | 1.19.0 | |
shared_preferences |
^2.2.3 |
2.5.5 | 2.5.5 | |
usb_serial |
^0.5.2 |
0.5.2 | 0.5.2 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.1 | 2.13.1 | |
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
connectivity_plus_platform_interface |
- | 2.1.0 | 2.1.0 | |
crypto |
- | 3.0.7 | 3.0.7 | |
dbus |
- | 0.7.15 | 0.7.15 | |
dio_web_adapter |
- | 2.2.2 | 2.2.2 | |
ffi |
- | 2.2.0 | 2.2.0 | |
file |
- | 7.0.1 | 7.0.1 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
geolocator_android |
- | 4.6.2 | 5.0.3 | |
geolocator_apple |
- | 2.3.14 | 2.3.14 | |
geolocator_platform_interface |
- | 4.3.0 | 4.3.0 | |
geolocator_web |
- | 4.1.4 | 4.1.4 | |
geolocator_windows |
- | 0.2.5 | 0.2.5 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
mime |
- | 2.1.0 | 2.1.0 | |
nm |
- | 0.5.0 | 0.5.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider_linux |
- | 2.2.2 | 2.2.2 | |
path_provider_platform_interface |
- | 2.1.3 | 2.1.3 | |
path_provider_windows |
- | 2.3.0 | 2.3.0 | |
petitparser |
- | 7.0.2 | 7.0.2 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
shared_preferences_android |
- | 2.4.28 | 2.4.28 | |
shared_preferences_foundation |
- | 2.5.7 | 2.5.7 | |
shared_preferences_linux |
- | 2.4.1 | 2.4.1 | |
shared_preferences_platform_interface |
- | 2.4.2 | 2.4.2 | |
shared_preferences_web |
- | 2.4.3 | 2.4.3 | |
shared_preferences_windows |
- | 2.4.1 | 2.4.1 | |
source_span |
- | 1.10.2 | 1.10.2 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
uuid |
- | 4.6.0 | 4.6.0 | |
vector_math |
- | 2.4.2 | 2.4.2 | |
web |
- | 1.1.1 | 1.1.1 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 7.0.1 | 7.0.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^6.0.5` on connectivity_plus does not support the stable version `7.0.0`.
Try running dart pub upgrade --major-versions connectivity_plus to update the constraint.
The constraint `^12.0.0` on geolocator does not support the stable version `13.0.0`.
Try running dart pub upgrade --major-versions geolocator to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.19, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.