flutter/packages/flutter_tools/test
Andrew Kolos aa498cd51a
Add API to read flavor from framework at run time (#134179)
Resolves #128046.

Adds a services API that allows flutter app developers to write app code that determines `--flavor` the app was built with.

This is implemented by having the tool adding the value of `--flavor` to its list of dart environment declarations, which will be available to the app at run time. Specifically,`FLUTTER_APP_FLAVOR` is set. I chose this implementation for its simplicity. There is some precedent for this, but only for web ([example](cd2f3f5e78/packages/flutter_tools/lib/src/runner/flutter_command.dart (L1231))).
2023-09-28 17:38:54 +00:00
..
commands.shard flutter config --list (#135401) 2023-09-27 07:02:13 +00:00
data Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
general.shard Add API to read flavor from framework at run time (#134179) 2023-09-28 17:38:54 +00:00
host_cross_arch.shard Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
integration.shard Native assets support for Windows (#134203) 2023-09-27 12:22:58 +00:00
src Enable strict-inference (#135043) 2023-09-20 19:59:08 +00:00
web.shard finer grained logging of Chromium launch sequence (#135078) 2023-09-20 15:20:16 -07:00