Flutter engine development tool.
- Clone this repository
- Add
crank/bin
to yourPATH
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
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 held by Google LLC, however this is not an official Google product.