flutter/packages/flutter_tools/test/general.shard/build_system/targets
Tae Hyung Kim 5c44b1df0f
Refactor "gen-l10n" command to use same code path when "l10n.yaml" is present or not present (#125429)
I think this is a long needed change to the `gen-l10n` command.
Essentially, the arguments to `flutter gen-l10n` can be provided by two
different methods: via command line arguments or via the `l10n.yaml`
file. The existence of a `l10n.yaml` file causes the latter approach to
take precedence.

However, currently, there's several differences in how the two
approaches are handled, and most of the default arguments are all over
the place, causing unexpected issues such as #120457 or #120023.

This PR refactors the command so that
* `LocalizationOptions` are more consistent with the actual argument
names/yaml options.
* All default values are determined in `LocalizationOptions`'s
constructor (or in `argParser.addOption(...)` in the case a boolean
value needs to be explicitly true).
* New `parseLocalizationsOptionsFromCommand` function to parse
arguments.
* Parse `LocalizationOptions` at the beginning of `runCommand()` and
pass it to `generateLocalizations`.

Fixes #120023.
2023-04-26 11:49:25 -07:00
..
android_test.dart Use the impellerc GLES output flag when compiling shaders for Android (#120647) 2023-02-15 19:01:00 +00:00
assets_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
common_test.dart flutter-tool: enum cleanup (#124760) 2023-04-14 01:55:05 +00:00
dart_plugin_registrant_test.dart Don't rethrow Dart plugin registration exceptions (#122111) 2023-03-28 15:08:57 +00:00
deferred_components_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
desktop_test.dart Migrate some test files to null safety (#104469) 2022-05-24 16:53:08 -07:00
icon_tree_shaker_test.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
ios_test.dart Remove Finder extended attributes in build target before code signing iOS frameworks (#123896) 2023-04-14 02:26:15 +00:00
linux_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
localizations_test.dart Refactor "gen-l10n" command to use same code path when "l10n.yaml" is present or not present (#125429) 2023-04-26 11:49:25 -07:00
macos_test.dart Add flags to make App.framework work in app extension (#123618) 2023-03-28 23:10:06 +00:00
shader_compiler_test.dart [flutter_tool] Adds a flag to disable Impeller (#122960) 2023-03-20 22:23:23 -07:00
web_test.dart Add option to run wasm-opt on module output. (#124831) 2023-04-14 17:19:21 +00:00
windows_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00