device_info_ffi 2.0.0
device_info_ffi: ^2.0.0 copied to clipboard
An FFI-based version of the device_info_plus plugin.
We analyzed this package 12 days ago, and awarded it 140 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 144 API elements (72.2 %) have documentation comments.
Some symbols that are missing documentation: device_info_ffi, device_info_ffi.AndroidBuildVersion.AndroidBuildVersion.new, device_info_ffi.AndroidDeviceInfo.AndroidDeviceInfo.new, device_info_ffi.BaseDeviceInfo, device_info_ffi.DeviceInfo.
10/10 points: Package has an example
10/20 points: Supports 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ Windows
-
✓ Linux
-
✓ Web
These platforms are not supported:
Package does not support platform `iOS`.
Because:
package:device_info_ffi/device_info_ffi.dartthat declares support for platforms:Android,Windows,Linux,Web.
Package does not support platform `macOS`.
Because:
package:device_info_ffi/device_info_ffi.dartthat declares support for platforms:Android,Windows,Linux,Web.
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:device_info_ffi/device_info_ffi.dartthat imports:package:device_info_ffi/src/device_info_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `Windows`.
Because:
package:device_info_ffi/device_info_ffi.dartthat imports:package:device_info_ffi/src/device_info_android.dartthat imports:package:jni_flutter/jni_flutter.dartthat declares support for platforms:Android.
Package does not support platform `Linux`.
Because:
package:device_info_ffi/device_info_ffi.dartthat imports:package:device_info_ffi/src/device_info_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `Web`.
Because:
package:device_info_ffi/device_info_ffi.dartthat imports:package:device_info_ffi/src/device_info_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
WASM compatibility:
Package not compatible with runtime wasm
Because:
package:device_info_ffi/device_info_ffi.dartthat imports:package:device_info_ffi/src/device_info_windows.dartthat imports:package:win32_registry/win32_registry.dartthat imports:package:win32_registry/src/value.dartthat imports:package:win32_registry/src/type.dartthat imports:package:win32/win32.dartthat imports:package:win32/src/win32_result.dartthat imports:package:win32/src/win32_error.dartthat imports:package:win32/src/macros.dartthat imports:package:win32/src/win32/user32.g.dartthat imports:package:win32/src/utils.dartthat imports:package:win32/src/win32/shell32.g.dartthat imports:package:win32/src/types.dartthat imports:package:ffi/ffi.dartthat imports:package:ffi/src/utf8.dartthat imports:dart:ffi
Note: This package supports Web but is not WASM-compatible, resulting in a partial score. See https://dart.dev/web/wasm for details.
Built-in Kotlin support:
Legacy Kotlin configuration detected in `android/build.gradle`.
This plugin applies the Kotlin Gradle Plugin (KGP) or uses the android.kotlinOptions{} block.
Note: This Android plugin does not support built-in Kotlin. In the future, this might affect scoring. See https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 23 issues. Showing the first 2:
INFO: The diagnostic 'annotate_overrides' isn't produced in this file so it doesn't need to be ignored.
lib/src/jni_bindings.dart:3:21
╷
3 │ // ignore_for_file: annotate_overrides
│ ^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/jni_bindings.dart
INFO: The diagnostic 'argument_type_not_assignable' isn't produced in this file so it doesn't need to be ignored.
lib/src/jni_bindings.dart:4:21
╷
4 │ // ignore_for_file: argument_type_not_assignable
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/jni_bindings.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
ffi |
^2.2.0 |
2.2.0 | 2.2.0 | |
file |
^7.0.1 |
7.0.1 | 7.0.1 | |
jni |
^1.0.0 |
1.0.3 | 1.0.3 | |
jni_flutter |
^1.0.1 |
1.0.3 | 1.0.3 | |
meta |
^1.17.0 |
1.19.0 | 1.19.0 | |
plugin_platform_interface |
^2.1.8 |
2.1.8 | 2.1.8 | |
web |
^1.1.1 |
1.1.1 | 1.1.1 | |
win32 |
^6.0.0 |
6.4.0 | 6.4.0 | |
win32_registry |
^3.0.2 |
3.0.3 | 3.0.3 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
ffi_leak_tracker |
- | 0.1.2 | 0.1.2 | |
jni_util |
- | 1.0.0 | 1.0.0 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
package_config |
- | 3.0.0 | 3.0.0 | |
path |
- | 1.9.1 | 1.9.1 | |
vector_math |
- | 2.4.2 | 2.4.2 |
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
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.19, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.