nim_core_platform_interface 1.9.0 copy "nim_core_platform_interface: ^1.9.0" to clipboard
nim_core_platform_interface: ^1.9.0 copied to clipboard

A common platform interface for the nim_core plugin.

110/ 160
pub points
1.12k
downloads

We analyzed this package 2 days ago, and awarded it 110 pub points (of a possible 160):

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

Failed check 0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: nim_core_platform_interface,
    • contains a version property, and,
    • does not contain a publish_to property.

Repository has no matching pubspec.yaml with name: nim_core_platform_interface.

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

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

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

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

2020 out of 4240 API elements (47.6 %) have documentation comments.

Some symbols that are missing documentation: nim_core_platform_interface, nim_core_platform_interface.AIServicePlatform, nim_core_platform_interface.AIServicePlatform.AIServicePlatform.new, nim_core_platform_interface.AIServicePlatform.instance, nim_core_platform_interface.AddFriendNotify.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

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

Passed check 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:nim_core_platform_interface/nim_core_platform_interface.dart that imports:
  • package:nim_core_platform_interface/src/platform_interface/team/team.dart that imports:
  • package:universal_io/io.dart that imports:
  • package:universal_io/src/_exports_in_browser.dart that imports:
  • package:universal_io/src/internet_address.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:nim_core_platform_interface/nim_core_platform_interface.dart that imports:
  • package:nim_core_platform_interface/src/platform_interface/team/team.dart that imports:
  • package:universal_io/io.dart that imports:
  • package:universal_io/src/_exports_in_vm.dart that imports:
  • package:universal_io/src/new_universal_http_client.dart that imports:
  • package:universal_io/src/_helpers.dart that imports:
  • package:universal_io/src/_helpers_impl_elsewhere.dart that imports:
  • dart:io

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.cn/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 56 issues. Showing the first 2:

INFO: Missing type annotation.

lib/src/method_channel/method_channel_audio_record_service.dart:21:3

   ╷
21 │   _onRecordStateChange(Map<String, dynamic> param) {
   │   ^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/method_channel/method_channel_audio_record_service.dart

INFO: Missing type annotation.

lib/src/method_channel/method_channel_auth_service.dart:73:30

   ╷
73 │   Future onAuthStatusChanged(arguments) {
   │                              ^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/method_channel/method_channel_auth_service.dart

Failed report section
Support up-to-date dependencies
20 / 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
json_annotation ^4.0.0 4.9.0 4.9.0
plugin_platform_interface ^2.0.1 2.1.8 2.1.8
universal_io ^2.0.4 2.2.2 2.2.2
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 100 errors:

  • UNDEFINED_FUNCTION - lib/src/platform_interface/ai/ai_models.g.dart:10:18 - The function '$enumDecode' isn't defined.
  • UNDEFINED_FUNCTION - lib/src/platform_interface/ai/ai_models.g.dart:16:15 - The function '$enumDecodeNullable' isn't defined.
  • UNDEFINED_FUNCTION - lib/src/platform_interface/ai/ai_models.g.dart:126:23 - The function '$enumDecodeNullable' isn't defined.

Run flutter pub downgrade and then flutter 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.22.23, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
110
points
1.12k
downloads

Publisher

verified publisheryunxin.163.com

Weekly Downloads

A common platform interface for the nim_core plugin.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, json_annotation, plugin_platform_interface, universal_io

More

Packages that depend on nim_core_platform_interface