device_info_hash_code 0.0.2
device_info_hash_code: ^0.0.2 copied to clipboard
Detect Device Based on H/W Info
We analyzed this package 45 hours ago, and awarded it 90 pub points (of a possible 160):
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 50 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
0/10 points: Use an OSI-approved license
No license was recognized.
Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.
0/10 points: 20% or more of the public API has dartdoc comments
0 out of 141 API elements (0.0 %) 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: device_info_hash_code, device_info_hash_code.AndroidDeviceInfo, device_info_hash_code.AndroidDeviceInfo.AndroidDeviceInfo.fromJson, device_info_hash_code.AndroidDeviceInfo.AndroidDeviceInfo.new, device_info_hash_code.AndroidDeviceInfo.buildCode.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ 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_hash_code/device_info_hash_code.dartthat imports:package:device_info_hash_code/src/platform_device.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `iOS`.
Because:
package:device_info_hash_code/device_info_hash_code.dartthat imports:package:device_info_hash_code/src/platform_device.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `Linux`.
Because:
package:device_info_hash_code/device_info_hash_code.dartthat imports:package:device_info_hash_code/src/platform_device.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `macOS`.
Because:
package:device_info_hash_code/device_info_hash_code.dartthat imports:package:device_info_hash_code/src/platform_device.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package not compatible with platform Web
Because:
package:device_info_hash_code/device_info_hash_code.dartthat imports:package:device_info_hash_code/src/platform_device.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:device_info_hash_code/device_info_hash_code.dartthat imports:package:device_info_hash_code/src/platform_device.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat imports:package:win32_registry/src/registry_value.dartthat imports:package:win32_registry/src/models/models.dartthat imports:package:win32_registry/src/models/registry_value_type.dartthat imports:package:win32/win32.dartthat imports:package:win32/src/com/iwinhttprequest.dartthat imports:package:win32/src/com/iunknown.dartthat imports:package:win32/src/utils.dartthat imports:package:win32/src/win32/user32.g.dartthat imports:package:win32/src/variant.dartthat imports:package:win32/src/win32/oleaut32.g.dartthat imports:package:win32/src/structs.g.dartthat imports:package:win32/src/guid.dartthat imports:package:win32/src/win32/ole32.g.dartthat imports:package:win32/src/combase.dartthat imports:package:win32/src/macros.dartthat imports:package:win32/src/inline.dartthat imports:package:win32/src/win32/uxtheme.g.dartthat imports:package:win32/src/callbacks.dartthat imports:package:win32/src/types.dartthat imports:package:ffi/ffi.dartthat imports:package:ffi/src/utf8.dartthat imports:dart:ffi
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.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 55 issues. Showing the first 2:
WARNING: The annotation 'JsonKey.new' can only be used on fields or getters.
lib/src/platform_device.dart:55:6
╷
55 │ @JsonKey(name: CommonSerializing.flutterPlatformCode)
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/platform_device.dart
WARNING: The annotation 'JsonKey.new' can only be used on fields or getters.
lib/src/platform_device.dart:57:6
╷
57 │ @JsonKey(name: CommonSerializing.browserName) required String browserName,
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/platform_device.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
crypto |
^3.0.3 |
3.0.7 | 3.0.7 | |
device_info_plus |
^9.1.0 |
9.1.2 | 12.3.0 | |
freezed |
^2.4.1 |
2.5.8 | 3.2.3 | |
freezed_annotation |
^2.4.1 |
2.4.4 | 3.1.0 | |
mplatform |
^0.0.2 |
0.0.2 | 0.0.2 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_fe_analyzer_shared |
- | 85.0.0 | 92.0.0 | |
analyzer |
- | 7.7.1 | 9.0.0 | |
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
build |
- | 2.4.2 | 4.0.3 | |
build_config |
- | 1.2.0 | 1.2.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
checked_yaml |
- | 2.0.4 | 2.0.4 | |
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
dart_style |
- | 3.1.1 | 3.1.3 | |
device_info_plus_platform_interface |
- | 7.0.3 | 7.0.3 | |
ffi |
- | 2.1.4 | 2.1.4 | |
file |
- | 7.0.1 | 7.0.1 | |
glob |
- | 2.1.3 | 2.1.3 | |
json_annotation |
- | 4.9.0 | 4.9.0 | |
logging |
- | 1.3.0 | 1.3.0 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
package_config |
- | 2.2.0 | 2.2.0 | |
path |
- | 1.9.1 | 1.9.1 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
pubspec_parse |
- | 1.5.0 | 1.5.0 | |
source_gen |
- | 2.0.0 | 4.1.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
watcher |
- | 1.1.4 | 1.1.4 | |
win32 |
- | 5.15.0 | 5.15.0 | |
win32_registry |
- | 1.1.5 | 2.1.0 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
Found 3 issues. Showing the first 2:
The constraint `^9.1.0` on device_info_plus does not support the stable version `10.0.0`.
Try running dart pub upgrade --major-versions device_info_plus to update the constraint.
The constraint `^2.4.1` on freezed does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions freezed to update the constraint.
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.3, Flutter 3.38.4, Dart 3.10.3.
Check the analysis log for details.