devtools_server 0.1.3

What is this? #

This is a server that supports Dart DevTools. This package contains shared code for performing functions with DevTools, for example, launching it.

Terms and Privacy #

By using Dart DevTools, you agree to the Google Terms of Service.

0.1.3 #

  • vm_service_lib dependency has been pinned to 3.21.0

0.1.2 #

  • The launchDevTools service will now return well-formed errors if it fails to launch the browser for any reason.

0.1.1 #

  • When running on ChromeOS, the launchDevTools service will now launch the native ChromeOS browser (instead of the Linux version of Chrome installed in the Linux container) if both the DevTools and VM Service ports are accessible (tunneled) to the ChromeOS browser.

0.1.0 #

  • JSON-RPC commands are now accepted over stdin, the first method being vm.register which allows registering of VM services:
    {
      "id":"1",
      "method":"vm.register",
      "params":{
        "uri":"<vm-service-uri-here>",
      }
    }
    
    DevTools will connect to each registered VM and register a launchDevTools service that can then be called (via the VM service protocol). The arguments to this service can include a queryParams object that will be used to build the querystring:
    {
      queryParams: {
        hide: "debugger",
        theme: "dark",
      },
    }
    

0.0.2 #

  • Reduce the minimum Dart SDK requirements for activating DevTools to cover Flutter v1.2.1 (Dart v2.1)

0.0.1 #

  • initial (pre-release) release

Use this package as a library

1. Depend on it

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


dependencies:
  devtools_server: ^0.1.3

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:devtools_server/devtools_server.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
57
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
70
Learn more about scoring.

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

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, other

Primary library: package:devtools_server/devtools_server.dart with components: io, isolate.

Health issues and suggestions

Document public APIs. (-1 points)

11 out of 11 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.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (vm_service_lib).

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.

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 devtools_server.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.1.2-dev.0.0 <3.0.0
args ^1.5.1 1.5.2
browser_launcher ^0.1.2 0.1.2
meta ^1.1.0 1.1.7
path ^1.6.0 1.6.2
pedantic ^1.7.0 1.8.0+1
shelf ^0.7.4 0.7.5
shelf_static ^0.2.8 0.2.8
vm_service_lib 3.21.0 3.21.0 3.22.1
webkit_inspection_protocol ^0.4.0 0.4.2
Transitive dependencies
async 2.2.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
http_parser 3.1.3
logging 0.11.3+2
mime 0.9.6+3
shelf_web_socket 0.2.3
source_span 1.5.5
stack_trace 1.9.3
stream_channel 2.0.0
stream_transform 0.0.19
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
web_socket_channel 1.0.14

Admin