dart-gde / chrome_gen.dart

Deprecated! See dart-gde/chrome.dart

Home Page:https://github.com/dart-gde/chrome.dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deprecated-chrome_gen.dart

WARNING: This library is being deprecated.

Future versions of this library can be found at chrome.dart


chrome_gen.dart

An library for accessing the Chrome APIs in a packaged app or extension.

Build Status

Installing

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

dependencies:
  chrome_gen: any

Using the library

import 'package:chrome_gen/chrome_app.dart' as chrome_gen;

void main() {
  chrome_gen.runtime.getPlatformInfo().then((Map m) {
    print(m.toString());
  });
}

Also, see the FAQ.

Documentation

Documentation is available at:

Re-generating the library

From the project directory, run:

dart tool/gen_apis.dart

This will:

  • read meta/apis.json and meta/overrides.json
  • parse the cooresponding idl/*.json and idl/*.idl files
  • generate lib/chrome_app.dart, lib/chrome_ext.dart, and lib/gen/*.dart.

About

Deprecated! See dart-gde/chrome.dart

https://github.com/dart-gde/chrome.dart

License:Other


Languages

Language:Dart 98.9%Language:Python 0.7%Language:Shell 0.2%Language:JavaScript 0.1%Language:CSS 0.1%