[tool] Removes deprecated --web-renderer parameter. (#159314)
Removes the `--web-renderer` option. Flutter tool users won't be able to select their web renderer. In order to not drop test coverage, tests are still run with the HTML Renderer, until its code is fully removed from the engine. Part of https://github.com/flutter/flutter/issues/145954 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
This commit is contained in:
@@ -31,7 +31,6 @@ import '../preview_device.dart';
|
||||
import '../project.dart';
|
||||
import '../reporting/reporting.dart';
|
||||
import '../reporting/unified_analytics.dart';
|
||||
import '../web/compile.dart';
|
||||
import 'flutter_command_runner.dart';
|
||||
import 'target_devices.dart';
|
||||
|
||||
@@ -154,7 +153,6 @@ abstract final class FlutterOptions {
|
||||
static const String kFatalWarnings = 'fatal-warnings';
|
||||
static const String kUseApplicationBinary = 'use-application-binary';
|
||||
static const String kWebBrowserFlag = 'web-browser-flag';
|
||||
static const String kWebRendererFlag = 'web-renderer';
|
||||
static const String kWebResourcesCdnFlag = 'web-resources-cdn';
|
||||
static const String kWebWasmFlag = 'wasm';
|
||||
}
|
||||
@@ -707,32 +705,6 @@ abstract class FlutterCommand extends Command<void> {
|
||||
);
|
||||
}
|
||||
|
||||
// This option is deprecated and is no longer publicly supported, and
|
||||
// therefore is hidden.
|
||||
//
|
||||
// The option still exists for internal testing, and to give existing users
|
||||
// time to migrate off the HTML renderer, but it is no longer advertised as a
|
||||
// supported mode.
|
||||
//
|
||||
// See also:
|
||||
// * https://github.com/flutter/flutter/issues/151786
|
||||
// * https://github.com/flutter/flutter/issues/145954
|
||||
void usesWebRendererOption() {
|
||||
argParser.addOption(
|
||||
hide: true,
|
||||
FlutterOptions.kWebRendererFlag,
|
||||
allowed: WebRendererMode.values.map((WebRendererMode e) => e.name),
|
||||
help: 'This option is deprecated and will be removed in a future Flutter '
|
||||
'release.\n'
|
||||
'Selects the renderer implementation to use when building for the '
|
||||
'web. The supported renderers are "canvaskit" when compiling to '
|
||||
'JavaScript, and "skwasm" when compiling to WebAssembly. Other '
|
||||
'renderer and compiler combinations are no longer supported. '
|
||||
'Consider migrating your app to a supported renderer.',
|
||||
allowedHelp: CliEnum.allowedHelp(WebRendererMode.values)
|
||||
);
|
||||
}
|
||||
|
||||
void usesWebResourcesCdnFlag() {
|
||||
argParser.addFlag(
|
||||
FlutterOptions.kWebResourcesCdnFlag,
|
||||
|
||||
Reference in New Issue
Block a user