/crank

Flutter engine tool

Primary LanguageDartMIT LicenseMIT

Crank 🔧

Flutter engine development tool.

Installation

  1. Clone this repository
  2. Add crank/bin to your PATH

Examples

Build the Flutter engine:

crank build --clean --fetch

Run tests:

crank test

Run a Flutter app using the locally built engine:

crank run

Use the --builder option (-b) to choose your build configuration:

crank build --builder host_release
crank test --builder host_release
crank run --builder host_release

Custom builders

Need a different builder configuration? Want an alias for a builder? Create the file ~/.config/crank/config.json to configure custom builders:

{
  "builds": [
    {
      "name": "my_custom_builder",
      "gn": ["--no-lto"],
      "ninja": {
        "config": "host_release",
      }
    }
  ]
}

Use the name as the --builder option:

crank build --builder my_custom_builder

See //flutter/ci/builders/ for JSON builder examples.

Copyright

Copyright held by Google LLC, however this is not an official Google product.