upnp 2.0.0+1

UPnP Client for Dart #

Features #

  • Discovery
  • Device Information
  • Services
  • Actions
  • Host Support
  • DIAL API
  • Router API

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  upnp: ^2.0.0+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:upnp/upnp.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
63
Health:
Code health derived from static analysis. [more]
80
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
53
Overall:
Weighted score of the above. [more]
66
Learn more about scoring.

We analyzed this package on Oct 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, other

Primary library: package:upnp/upnp.dart with components: io.

Health issues and suggestions

Document public APIs. (-1 points)

280 out of 280 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/discovery.dart. (-8.17 points)

Analysis of lib/src/discovery.dart reported 17 hints, including:

line 13 col 26: Use = to separate a named parameter from its default value.

line 13 col 43: Use = to separate a named parameter from its default value.

line 82 col 18: Avoid empty catch blocks.

line 87 col 18: Avoid empty catch blocks.

line 93 col 20: Avoid empty catch blocks.

Fix lib/src/server/server.dart. (-3.45 points)

Analysis of lib/src/server/server.dart reported 7 hints, including:

line 23 col 9: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 33 col 7: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 50 col 9: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 56 col 9: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 76 col 9: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Fix lib/src/sub_manager.dart. (-2.48 points)

Analysis of lib/src/sub_manager.dart reported 5 hints:

line 43 col 7: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 138 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 195 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 239 col 9: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 270 col 7: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Fix additional 13 files with analysis or formatting issues. (-5.99 points)

Additional issues in the following files:

  • lib/src/router/router.dart (4 hints)
  • lib/src/server/action.dart (2 hints)
  • lib/src/server/discovery.dart (2 hints)
  • lib/src/server/utils.dart (2 hints)
  • lib/server.dart (1 hint)
  • lib/src/dial/screen.dart (1 hint)
  • lib/src/action.dart (Run dartfmt to format lib/src/action.dart.)
  • lib/src/device.dart (Run dartfmt to format lib/src/device.dart.)
  • lib/src/helpers.dart (Run dartfmt to format lib/src/helpers.dart.)
  • lib/src/media/sources.dart (Run dartfmt to format lib/src/media/sources.dart.)
  • lib/src/server/device.dart (Run dartfmt to format lib/src/server/device.dart.)
  • lib/src/service.dart (Run dartfmt to format lib/src/service.dart.)
  • lib/src/utils.dart (Run dartfmt to format lib/src/utils.dart.)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-20 points)

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.

Package is getting outdated. (-7.12 points)

The package was last published 55 weeks ago.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and upnp.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
crypto ^2.0.6 2.1.3
xml ^3.2.0 3.5.0
Transitive dependencies
charcode 1.1.2
collection 1.14.12
convert 2.1.1
meta 1.1.7
petitparser 2.4.0
typed_data 1.1.6