sounds_common 2.0.0 copy "sounds_common: ^2.0.0" to clipboard
sounds_common: ^2.0.0 copied to clipboard

discontinued

A shared library for the sounds and sounds_codec packages. Provides MediaFormat, Track and small set of utility functions.

1
likes
110/ 160
pub points
42%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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: LGPL-2.1.

failed
Provide documentation
10 / 20trigger folding of the section

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

102 out of 178 API elements (57.3 %) have documentation comments.

Some symbols that are missing documentation: sounds_common.AMPMParts, sounds_common.AMPMParts.AMPMParts.fromLocalTime, sounds_common.AMPMParts.am, sounds_common.AMPMParts.hour, sounds_common.AMPMParts.minute.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

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:sounds_common/sounds_common.dart that imports:
  • package:sounds_common/src/util/downloader.dart that imports:
  • package:sounds_common/src/util/log.dart that imports:
  • package:stacktrace_impl/stacktrace_impl.dart that imports:
  • package:stacktrace_impl/src/stacktrace_impl.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:sounds_common/sounds_common.dart that imports:
  • package:sounds_common/src/util/downloader.dart that imports:
  • package:sounds_common/src/util/log.dart that imports:
  • package:stacktrace_impl/stacktrace_impl.dart that imports:
  • package:stacktrace_impl/src/stacktrace_impl.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.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 4 issues. Showing the first 2:

INFO: Missing a corresponding override of 'hashCode'.

lib/src/media_format/media_format.dart:43:17

   ╷
43 │   bool operator ==(covariant MediaFormat other) {
   │                 ^^
   ╵

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

INFO: The import of 'playback_disposition.dart' is unnecessary because all of the used elements are also provided by the import of '../sounds_common.dart'.

lib/src/track.dart:8:8

  ╷
8 │ import 'playback_disposition.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

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

failed
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest
completer_ex ^3.0.0 3.0.0 4.0.3
flutter flutter 0.0.0 0.0.0
intl ^0.17.0 0.17.0 0.19.0
logger ^1.0.0-0 1.4.0 2.4.0
meta ^1.1.8 1.15.0 1.16.0
path ^1.8.0 1.9.1 1.9.1
pedantic ^1.9.0 1.11.1 1.11.1
stacktrace_impl ^2.0.0 2.3.0 2.3.0
uuid ^3.0.0 3.0.7 4.5.1
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.1
clock - 1.1.2 1.1.2
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
logging - 1.3.0 1.3.0
material_color_utilities - 0.11.1 0.12.0
simple_logger - 1.10.0 1.10.0
sky_engine - 0.0.99 0.0.99
stack_trace - 1.12.0 1.12.0
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4

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

Found 4 issues. Showing the first 2:

The constraint `^3.0.0` on completer_ex does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions completer_ex to update the constraint.

The constraint `^0.17.0` on intl does not support the stable version `0.18.0`.

Try running dart pub upgrade --major-versions intl to update the constraint.

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2 errors:

  • UNCHECKED_USE_OF_NULLABLE_VALUE - lib/src/util/log.dart:108:23 - A nullable expression can't be used as an iterator in a for-in loop.
  • UNCHECKED_USE_OF_NULLABLE_VALUE - lib/src/util/log.dart:142:23 - A nullable expression can't be used as an iterator in a for-in loop.

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.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.

1
likes
110
pub points
42%
popularity

Publisher

verified publisheronepub.dev

A shared library for the sounds and sounds_codec packages. Provides MediaFormat, Track and small set of utility functions.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

LGPL-2.1 (license)

Dependencies

completer_ex, flutter, intl, logger, meta, path, pedantic, stacktrace_impl, uuid

More

Packages that depend on sounds_common