devtools_server 0.1.12

  • Readme
  • Changelog
  • Installing
  • 90

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.12 #

  • Change from HttpMultiServer to HttpServer.

0.1.11 #

  • Add APIs to persist enabling/disabling properties for GA and Surveys to a local file ~/.devtools.
  • Created shared devtools_api.dart list of APIs known between server and devtools_app.
  • Removed sample API endpoint for logScreenView.

0.1.10 #

  • Add API for handling http requests.
  • Add API endpoint for logScreenView.

0.1.9 #

  • Support configurable hostname.

0.1.8 #

  • Use http_multi_server for serving.
  • Make stdin commands configurable.
  • Return the underlying server so that it can be closed.

0.1.7 #

  • Rev to using the latest version of package:vm_service (1.2.0).

0.1.6 #

  • Rev to using the latest version of package:vm_service (1.1.1).

0.1.4 #

  • The launchDevTools service will now register with VMs using public APIs when available, falling back to private APIs otherwise.

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:
    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:

  devtools_server: ^0.1.12

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';
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 Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, other

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

Maintenance suggestions

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/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
args ^1.5.1 1.5.2
browser_launcher ^0.1.3 0.1.4
http_multi_server ^2.1.0 2.1.0
meta ^1.1.0 1.1.7
path ^1.6.0 1.6.4
shelf ^0.7.4 0.7.5
shelf_static ^0.2.8 0.2.8
sse ^2.0.0 2.1.2
usage 3.4.1 3.4.1
vm_service >=1.0.0 <3.0.0 2.1.1
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
http_parser 3.1.3
logging 0.11.3+2
mime 0.9.6+3
pedantic 1.8.0+1
source_span 1.5.5
stack_trace 1.9.3
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
uuid 2.0.2
webkit_inspection_protocol 0.5.0