harmony_os_version 1.0.1 copy "harmony_os_version: ^1.0.1" to clipboard
harmony_os_version: ^1.0.1 copied to clipboard

PlatformAndroid

用来获取鸿蒙os版本,比如2.0.0,3.0.0等

1
likes
145/ 160
pub points
28
downloads

We analyzed this package 43 hours ago, and awarded it 145 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
15 / 30trigger folding of the section

Failed check 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.

The package description contains too many non-ASCII characters.

The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.

Passed check 5/5 points: Provide a valid README.md

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

4 out of 15 API elements (26.7 %) have documentation comments.

Some symbols that are missing documentation: harmony_os_version, harmony_os_version.HarmonyOsVersion, harmony_os_version.HarmonyOsVersion.HarmonyOsVersion.new, harmony_os_version.HarmonyOsVersion.osVersion, harmony_os_version.HarmonyOsVersion.osVersionInt.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

These platforms are not supported:

Package does not support platform `iOS`.

Because:

  • package:harmony_os_version/harmony_os_version.dart that declares support for platforms: Android.
Package does not support platform `Windows`.

Because:

  • package:harmony_os_version/harmony_os_version.dart that declares support for platforms: Android.
Package does not support platform `Linux`.

Because:

  • package:harmony_os_version/harmony_os_version.dart that declares support for platforms: Android.
Package does not support platform `macOS`.

Because:

  • package:harmony_os_version/harmony_os_version.dart that declares support for platforms: Android.
Package does not support platform `Web`.

Because:

  • package:harmony_os_version/harmony_os_version.dart that declares support for platforms: Android.

Passed check 0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Passed report section
Pass static analysis
50 / 50trigger folding of the section

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

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
flutter flutter 0.0.0 0.0.0
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
material_color_utilities - 0.11.1 0.12.0
meta - 1.16.0 1.16.0
sky_engine - 0.0.0 0.0.0
vector_math - 2.1.4 2.1.4

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.19, Flutter 3.29.1, Dart 3.7.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jun 10Jul 8Aug 5Sep 2Sep 30Oct 28Nov 25Dec 23Jan 20Feb 1702468101214>=1.0.0-0 <2.0.0
1
likes
145
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.26 - 2025.03.10

用来获取鸿蒙os版本,比如2.0.0,3.0.0等

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on harmony_os_version