package_config 1.1.0

  • Readme
  • Changelog
  • Installing
  • 96

package_config #

Support for working with Package Resolution Configuration files as described in this DEP, under review here.

Build Status pub package

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1.1.0 #

  • Allow parsing files with default-package entries and metadata. A default-package entry has an empty key and a valid package name as value. Metadata is attached as fragments to base URIs.

1.0.5 #

  • Fix usage of SDK constants.

1.0.4 #

  • Set max SDK version to <3.0.0.

1.0.3 #

  • Removed unneeded dependency constraint on SDK.

1.0.2 #

  • Update SDK constraint to be 2.0.0 dev friendly.

1.0.1 #

  • Fix test to not write to sink after it's closed.

1.0.0 #

  • Public API marked stable.

0.1.5 #

  • FilePackagesDirectoryPackages.getBase(..) performance improvements.

0.1.4 #

  • Strong mode fixes.

0.1.3 #

  • Invalid test cleanup (to keep up with changes in Uri).

0.1.1 #

  • Syntax updates.

0.1.0 #

  • Initial implementation.

Use this package as a library

1. Depend on it

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

  package_config: ^1.1.0

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:package_config/discovery.dart';
import 'package:package_config/discovery_analysis.dart';
import 'package:package_config/packages.dart';
import 'package:package_config/packages_file.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.6.0
  • pana: 0.12.21


Detected platforms: Flutter, other

Platform components identified in package: io.

Health suggestions

Fix lib/discovery_analysis.dart. (-0.50 points)

Analysis of lib/discovery_analysis.dart reported 1 hint:

line 60 col 21: Use = to separate a named parameter from its default value.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

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

For more information see the pub package layout conventions.

The package description is too short. (-3 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 Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
charcode ^1.1.0 1.1.2
path ^1.0.0 1.6.4
Dev dependencies
test ^1.3.0