gpiod 3.0.1
gpiod: ^3.0.1 copied to clipboard
FFI for libgpiod, easy access to RaspberryPi gpio.
We analyzed this package 3 days ago, and awarded it 60 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
104 out of 432 API elements (24.1 %) have documentation comments.
Some symbols that are missing documentation: gpiod, gpiod.GPIOD, gpiod.GPIOD.GPIOD.new, gpiod.GPIOD.chip_iter_free_noclose, gpiod.GPIOD.chip_iter_new.
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 198 issues. Showing the first 2:
ERROR: Can't invoke 'asFunction' because the function signature 'NativeFunction
lib/src/bindings/gpiod/bindings.dart:126:21
╷
126 │ chip_iter_new = _dynamicLibrary.lookup<NativeFunction<chip_iter_new_native_t>>("gpiod_chip_iter_new").asFunction();
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/bindings/gpiod/bindings.dart
WARNING: The operand can't be 'null', so the condition is always 'true'.
lib/proxy_gpiod.dart:80:42
╷
80 │ return new GPIOError(_error.ref.error!=null && _error.ref.error.address != 0 ?_error.ref.error.toDartString(): 'code = ${_error.ref.code}');
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/proxy_gpiod.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
^2.5.0 |
2.13.0 | 2.13.0 | |
ffi |
^1.2.0 |
1.2.1 | 2.2.0 | |
meta |
^1.3.0 |
1.18.1 | 1.18.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
- | 1.19.1 | 1.19.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^1.2.0` on ffi does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions ffi to update the constraint.
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:
NON_NATIVE_FUNCTION_TYPE_ARGUMENT_TO_POINTER-lib/src/bindings/gpiod/bindings.dart:126:21- Can't invoke 'asFunction' because the function signature 'NativeFunction<chip_iter_new_native_t>' for the pointer isn't a valid C function signature.
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.0.
Check the analysis log for details.