flutter/packages/flutter_tools
Greg Spencer 2aad59314f
Add a keyboard key code generator. (#27620)
This adds a keycode generator that incorporates input from the Chromium and Android source trees, as well as some local tables, to generate static constants for the LogicalKeyboardKey and PhysicalKeyboardKey classes, as well as mappings from each of the platforms we support so far (currently only Android and Fuchsia).

This code generator parses the input files, generates an intermediate data structure (`key_data.json`) that is checked in, and then generates the Dart sources for these classes and some static maps that will also be checked in (but are not included in this PR).

The idea is that these codes don't change often, and so we don't need to generate them on every build, but we would like to be able to update them easily in the future if new data becomes available. If the existing data disappears or becomes unusable, we can maintain the checked-in data structure by hand if necessary, and still be able to generate the code.

This PR only contains the code generator, not the classes themselves. In another follow-on PR, I'll run the generator and check in the output of the generator.
2019-02-06 16:53:16 -08:00
..
bin Roll engine to 05fee4eeee0ff6b219b1fcc394371e5f6963cc46 (#26713) 2019-01-21 21:23:04 -08:00
doc Allow passing a restart reason through to analytics (#21983) 2018-10-10 10:23:32 +01:00
gradle Add2App: Fix crash resulted from hard-code module 'app' based resource copy. (#27154) 2019-01-30 10:29:29 -08:00
ide_templates/intellij Change 'flutter ide-config' to optionally create root Intellij module (#19920) 2018-07-30 10:15:26 -07:00
lib fix list devices throwing on junk input (#27615) 2019-02-06 15:41:22 -08:00
schema Rename 'application' back to 'module', and make 'app' the default again for templates. (#22888) 2018-10-10 11:01:40 -07:00
templates Add2App: Fix crash resulted from hard-code module 'app' based resource copy. (#27154) 2019-01-30 10:29:29 -08:00
test fix list devices throwing on junk input (#27615) 2019-02-06 15:41:22 -08:00
tool Print 50000$ monopoly money (#27531) 2019-02-05 15:00:51 -08:00
analysis_options.yaml Turn on unawaited_futures in flutter_tools (#21048) 2018-08-30 20:57:44 -07:00
BUILD.gn Add a flutter-attach entry point for fuchsia (#24878) 2018-11-30 16:18:18 -08:00
pubspec.yaml Add a keyboard key code generator. (#27620) 2019-02-06 16:53:16 -08:00
README.md Slight doc change (#24526) 2018-11-19 09:11:40 -08:00

Flutter Tools

Developer tools for building Flutter applications.

Be sure to follow the instructions on CONTRIBUTING.md to setup.

To run the tests, ensure that no devices are connected, then navigate to flutter_tools and execute:

../../bin/cache/dart-sdk/bin/pub run test