gpiod 3.0.1 gpiod: ^3.0.1 copied to clipboard
FFI for libgpiod, easy access to RaspberryPi gpio.
We analyzed this package 5 days ago, and awarded it 70 pub points (of a possible 140):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
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
, gpiod.GPIOD.chip_iter_free_noclose
, gpiod.GPIOD.chip_iter_new
.
10/10 points: Package has an example
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Android
- ✓ iOS
- ✓ Windows
- ✓ Linux
- ✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:gpiod/gpiod.dart
that imports:package:gpiod/src/bindings/gpiod/types.dart
that imports:package:ffi/ffi.dart
that imports:package:ffi/src/utf16.dart
that imports:dart:ffi
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 |
---|---|---|---|
async |
^2.5.0 |
2.11.0 | 2.11.0 |
ffi |
^1.2.0 |
1.2.1 | 2.1.2 |
meta |
^1.3.0 |
1.14.0 | 1.14.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
collection |
- | 1.18.0 | 1.18.0 |
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
Analyzed with Pana 0.22.3
, Dart 3.3.3
.
Check the analysis log for details.