sensor_link_package 0.0.4 copy "sensor_link_package: ^0.0.4" to clipboard
sensor_link_package: ^0.0.4 copied to clipboard

A Flutter package for connecting to Bluetooth devices using MAC address and reading data

110/ 160
pub points
23
downloads

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

Passed report section
Follow Dart file conventions
30 / 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

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

3 out of 40 API elements (7.5 %) 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: sensor_link_package, sensor_link_package.BluetoothDeviceInfo, sensor_link_package.BluetoothDeviceInfo.BluetoothDeviceInfo.new, sensor_link_package.BluetoothDeviceInfo.address, sensor_link_package.BluetoothDeviceInfo.device.

Passed check 10/10 points: Package has an example

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

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

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:sensor_link_package/sensor_link_package.dart that imports:
  • package:sensor_link_package/src/sensor/sensor_device_manager.dart that imports:
  • package:sensor_link_package/src/bluetooth/bluetooth_adapter_manager.dart that imports:
  • package:flutter_blue_plus/flutter_blue_plus.dart that declares support for platforms: Android, iOS, Linux, macOS, Web.
Package does not support platform `Linux`.

Because:

  • package:sensor_link_package/sensor_link_package.dart that imports:
  • package:sensor_link_package/src/sensor/sensor_device_manager.dart that imports:
  • package:sensor_link_package/src/bluetooth/bluetooth_permission_manager.dart that imports:
  • package:permission_handler/permission_handler.dart that declares support for platforms: Android, iOS, Windows, Web.
Package does not support platform `macOS`.

Because:

  • package:sensor_link_package/sensor_link_package.dart that imports:
  • package:sensor_link_package/src/sensor/sensor_device_manager.dart that imports:
  • package:sensor_link_package/src/bluetooth/bluetooth_permission_manager.dart that imports:
  • package:permission_handler/permission_handler.dart that declares support for platforms: Android, iOS, Windows, Web.
Package not compatible with platform Web

Because:

  • package:sensor_link_package/sensor_link_package.dart that imports:
  • package:sensor_link_package/src/sensor/sensor_device_manager.dart that imports:
  • package:sensor_link_package/src/bluetooth/bluetooth_adapter_manager.dart that imports:
  • package:flutter_blue_plus/flutter_blue_plus.dart that imports:
  • dart:io
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 3 issues. Showing the first 2:

INFO: 'localName' is deprecated and shouldn't be used. use advName instead.

lib/src/sensor/sensor_device_manager.dart:121:47

    ╷
121 │           final localName = advertisementData.localName.toUpperCase();
    │                                               ^^^^^^^^^
    ╵

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

INFO: 'connecting' is deprecated and shouldn't be used. Android & iOS dont stream this state. You can delete.

lib/src/sensor/sensor_device_manager.dart:233:32

    ╷
233 │       BluetoothConnectionState.connecting => (DeviceConnectionStateType.disconnected, false),
    │                                ^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/sensor/sensor_device_manager.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
flutter_blue_plus ^1.12.13 1.36.8 2.3.9
permission_handler ^12.0.1 12.0.3 12.0.3
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
bluez - 0.8.3 0.8.3
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
dbus - 0.7.14 0.7.14
ffi - 2.2.0 2.2.0
flutter_blue_plus_android - 7.0.4 9.0.3
flutter_blue_plus_darwin - 7.0.3 9.0.3
flutter_blue_plus_linux - 7.0.3 9.0.3
flutter_blue_plus_platform_interface - 7.0.0 9.0.3
flutter_blue_plus_web - 7.0.2 9.0.3
material_color_utilities - 0.13.0 0.13.0
meta - 1.18.0 1.18.3
permission_handler_android - 13.0.1 13.0.1
permission_handler_apple - 9.4.10 9.4.10
permission_handler_html - 0.1.3+5 0.1.3+5
permission_handler_platform_interface - 4.3.0 4.3.0
permission_handler_windows - 0.2.1 0.2.1
petitparser - 7.0.2 7.0.2
plugin_platform_interface - 2.1.8 2.1.8
rxdart - 0.28.0 0.28.0
vector_math - 2.2.0 2.4.0
web - 1.1.1 1.1.1
xml - 6.6.1 7.0.1

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

The constraint `^1.12.13` on flutter_blue_plus does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions flutter_blue_plus 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 6 errors:

  • UNDEFINED_GETTER - lib/src/bluetooth/bluetooth_adapter_manager.dart:8:36 - The getter 'isSupported' isn't defined for the type 'FlutterBluePlus'.
  • UNDEFINED_GETTER - lib/src/sensor/sensor_device_manager.dart:37:45 - The getter 'isConnected' isn't defined for the type 'BluetoothDevice'.
  • UNDEFINED_GETTER - lib/src/sensor/sensor_device_manager.dart:120:37 - The getter 'platformName' isn't defined for the type 'BluetoothDevice'.

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.23.13, Flutter 3.44.3, Dart 3.12.2.

Check the analysis log for details.

Weekly downloads

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

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package for connecting to Bluetooth devices using MAC address and reading data

Homepage

License

MIT (license)

Dependencies

flutter, flutter_blue_plus, permission_handler

More

Packages that depend on sensor_link_package