[winuwp] Add removal warning in config help text (#101086)

This commit is contained in:
Chris Bracken 2022-03-31 09:30:04 -07:00 committed by GitHub
parent 5f7bc2c943
commit 1a072f9aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,7 @@ const Feature singleWidgetReload = Feature(
const Feature windowsUwpEmbedding = Feature(
name: 'Flutter for Windows UWP',
configSetting: 'enable-windows-uwp-desktop',
extraHelpText: 'Warning: Windows UWP support is obsolete and will be removed.',
master: FeatureChannelSetting(
available: true,
),

View File

@ -382,6 +382,10 @@ void main() {
expect(featureFlags.isWindowsUwpEnabled, true);
});
testWithoutContext('Flutter Windows UWP desktop config includes removal warning', () {
expect(windowsUwpEmbedding.extraHelpText, contains('Windows UWP support is obsolete and will be removed'));
});
testWithoutContext('Flutter Windows UWP desktop off by default on stable', () {
final FeatureFlags featureFlags = createFlags('stable');