ucp_dart 1.1.0 copy "ucp_dart: ^1.1.0" to clipboard
ucp_dart: ^1.1.0 copied to clipboard

Universal Communication Protocol (UCP) for real-time MQTT-based device communication in Dart.

45/ 160
pub points
23
downloads

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

Failed report section
Follow Dart file conventions
15 / 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

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("1.1.0").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

Failed check 0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

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

0 out of 11 API elements (0.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: ucp_dart, ucp_dart.UCPClient, ucp_dart.UCPClient.UCPClient.new, ucp_dart.UCPClient.brokerAddress, ucp_dart.UCPClient.connect.

Passed check 10/10 points: Package has an example

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

Failed check 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

ERROR: Undefined name 'kIsWeb'.

lib/ucp_dart.dart:17:9

   ╷
17 │     if (kIsWeb) {
   │         ^^^^^^
   ╵

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

ERROR: A value of type 'MqttBrowserClient' can't be assigned to a variable of type 'MqttServerClient'.

lib/ucp_dart.dart:18:19

   ╷
18 │           _client = MqttBrowserClient('ws://$brokerAddress:8081/mqtt', deviceId)
   │ ┌───────────────────^
19 │ │         ..logging(on: true)
20 │ │         ..keepAlivePeriod = 20
21 │ │         ..onConnected = _onConnected
22 │ │         ..onDisconnected = _onDisconnected
23 │ │         ..onSubscribed = _onSubscribed
24 │ │         ..onSubscribeFail = _onSubscribeFail;
   │ └────────────────────────────────────────────^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/ucp_dart.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
mockito ^5.4.5 5.6.3 5.6.3
mqtt_client ^10.0.0 10.11.9 10.11.9
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 96.0.0 97.0.0
analyzer - 10.2.0 11.0.0
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
build - 4.0.4 4.0.4
built_collection - 5.1.1 5.1.1
built_value - 8.12.4 8.12.4
characters - 1.4.1 1.4.1
code_builder - 4.11.1 4.11.1
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
dart_style - 3.1.6 3.1.6
event_bus - 2.0.1 2.0.1
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
glob - 2.1.3 2.1.3
logging - 1.3.0 1.3.0
matcher - 0.12.19 0.12.19
meta - 1.18.1 1.18.1
package_config - 2.2.0 2.2.0
path - 1.9.1 1.9.1
pub_semver - 2.2.0 2.2.0
source_gen - 4.2.0 4.2.0
source_span - 1.10.2 1.10.2
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.10 0.7.10
typed_data - 1.4.0 1.4.0
watcher - 1.2.1 1.2.1
web - 1.1.1 1.1.1
yaml - 3.1.3 3.1.3

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

  • UNDEFINED_IDENTIFIER - lib/ucp_dart.dart:17:9 - Undefined name 'kIsWeb'.
  • INVALID_ASSIGNMENT - lib/ucp_dart.dart:18:19 - A value of type 'MqttBrowserClient' can't be assigned to a variable of type 'MqttServerClient'.

Run dart pub downgrade and then dart 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.23.10, Dart 3.11.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
45
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Universal Communication Protocol (UCP) for real-time MQTT-based device communication in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

mockito, mqtt_client

More

Packages that depend on ucp_dart