nrf_ble_dfu 0.0.17 copy "nrf_ble_dfu: ^0.0.17" to clipboard
nrf_ble_dfu: ^0.0.17 copied to clipboard

The Nordic DFU over BLE library helps enable firmware updates of BLE devices over Bluetooth Low Energy (BLE), for Windows, Android, iOS, Linux and macOS.

4
likes
120/ 160
pub points
108
downloads

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

1098 out of 1414 API elements (77.7 %) have documentation comments.

Some symbols that are missing documentation: nrf_ble_dfu, nrf_ble_dfu.AsyncError.error, nrf_ble_dfu.AutoBleDfu, nrf_ble_dfu.AutoBleDfu.AutoBleDfu, nrf_ble_dfu.BadCertificateCallback.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Linux`.

Because:

  • package:nrf_ble_dfu/nrf_ble_dfu.dart that declares support for platforms: Android, iOS, Windows, macOS.
Package does not support platform `Web`.

Because:

  • package:nrf_ble_dfu/nrf_ble_dfu.dart that declares support for platforms: Android, iOS, Windows, 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:nrf_ble_dfu/nrf_ble_dfu.dart that imports:
  • package:nrf_ble_dfu/src/index.dart that imports:
  • package:nrf_ble_dfu/src/widget/widget.dart that imports:
  • package:nrf_ble_dfu/src/widget/ble_device_select.dart that imports:
  • package:flutter_blue_plus_windows/flutter_blue_plus_windows.dart that imports:
  • package:win_ble/win_file.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:nrf_ble_dfu/nrf_ble_dfu.dart that imports:
  • package:nrf_ble_dfu/src/index.dart that imports:
  • package:nrf_ble_dfu/src/widget/widget.dart that imports:
  • package:nrf_ble_dfu/src/widget/ble_device_select.dart that imports:
  • package:flutter_blue_plus_windows/flutter_blue_plus_windows.dart that imports:
  • package:win_ble/win_file.dart that declares support for platforms: Windows.
Package does not support platform `Windows`.

Because:

  • package:nrf_ble_dfu/nrf_ble_dfu.dart that imports:
  • package:nrf_ble_dfu/src/index.dart that imports:
  • package:nrf_ble_dfu/src/widget/widget.dart that imports:
  • package:nrf_ble_dfu/src/widget/ble_device_select.dart that imports:
  • package:flutter_blue_plus_windows/flutter_blue_plus_windows.dart that imports:
  • package:flutter_blue_plus/flutter_blue_plus.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `macOS`.

Because:

  • package:nrf_ble_dfu/nrf_ble_dfu.dart that imports:
  • package:nrf_ble_dfu/src/index.dart that imports:
  • package:nrf_ble_dfu/src/widget/widget.dart that imports:
  • package:nrf_ble_dfu/src/widget/ble_device_select.dart that imports:
  • package:flutter_blue_plus_windows/flutter_blue_plus_windows.dart that imports:
  • package:win_ble/win_file.dart that declares support for platforms: Windows.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:nrf_ble_dfu/nrf_ble_dfu.dart that imports:
  • package:nrf_ble_dfu/src/index.dart that imports:
  • package:nrf_ble_dfu/src/widget/widget.dart that imports:
  • package:nrf_ble_dfu/src/widget/ble_device_select.dart that imports:
  • package:flutter_blue_plus_windows/flutter_blue_plus_windows.dart that imports:
  • package:win_ble/win_file.dart that imports:
  • package:path_provider/path_provider.dart that imports:
  • package:path_provider_platform_interface/path_provider_platform_interface.dart that imports:
  • package:path_provider_platform_interface/src/method_channel_path_provider.dart that imports:
  • package:platform/platform.dart that imports:
  • package:platform/src/interface/local_platform.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.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 5 issues. Showing the first 2:

WARNING: The value of the local variable 'offset' isn't used.

lib/src/nrf_ble_dfu.dart:128:14

    ╷
128 │     late int offset;
    │              ^^^^^^
    ╵

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

WARNING: The value of the local variable 'crc' isn't used.

lib/src/nrf_ble_dfu.dart:129:14

    ╷
129 │     late int crc;
    │              ^^^
    ╵

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

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

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

Package Constraint Compatible Latest
archive >=3.4.10 4.0.2 4.0.2
file_picker >=8.0.2 8.1.7 8.1.7
flutter flutter 0.0.0 0.0.0
flutter_blue_plus_windows >=1.23.6 1.25.0 1.25.0
flutter_mobx >=2.2.1+1 2.3.0 2.3.0
mobx >=2.3.3+2 2.5.0 2.5.0
path >=1.9.0 1.9.1 1.9.1
path_provider >=2.1.3 2.1.5 2.1.5
permission_handler >=11.3.1 11.3.1 11.3.1
shared_preferences >=2.2.3 2.3.5 2.3.5
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.4.0
collection - 1.19.0 1.19.1
cross_file - 0.3.4+2 0.3.4+2
crypto - 3.0.6 3.0.6
ffi - 2.1.3 2.1.3
file - 7.0.1 7.0.1
flutter_blue_plus - 1.34.5 1.34.5
flutter_plugin_android_lifecycle - 2.0.24 2.0.24
flutter_web_plugins - 0.0.0 0.0.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nested - 1.0.0 1.0.0
path_provider_android - 2.2.15 2.2.15
path_provider_foundation - 2.4.1 2.4.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
permission_handler_android - 12.0.13 12.0.13
permission_handler_apple - 9.4.5 9.4.5
permission_handler_html - 0.1.3+5 0.1.3+5
permission_handler_platform_interface - 4.2.3 4.2.3
permission_handler_windows - 0.2.1 0.2.1
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
posix - 6.0.1 6.0.1
provider - 6.1.2 6.1.2
shared_preferences_android - 2.4.0 2.4.0
shared_preferences_foundation - 2.5.4 2.5.4
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.2 2.4.2
shared_preferences_windows - 2.4.1 2.4.1
sky_engine - 0.0.0 0.0.0
stream_with_value - 0.5.0 0.5.0
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0
win32 - 5.10.0 5.10.0
win_ble - 1.1.1 1.1.1
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 1 error:

  • USE_OF_VOID_RESULT - lib/src/nrf_ble_dfu.dart:113:11 - This expression has a type of 'void' so its value can't be used.

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.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

4
likes
120
points
108
downloads

Publisher

unverified uploader

Weekly Downloads

The Nordic DFU over BLE library helps enable firmware updates of BLE devices over Bluetooth Low Energy (BLE), for Windows, Android, iOS, Linux and macOS.

Repository (GitHub)
View/report issues

Topics

#nordic #nrf #ble #dfu

Documentation

API reference

License

MIT (license)

Dependencies

archive, file_picker, flutter, flutter_blue_plus_windows, flutter_mobx, mobx, path, path_provider, permission_handler, shared_preferences

More

Packages that depend on nrf_ble_dfu