Skip to content

Commit 1a072f9

Browse files
authored
[winuwp] Add removal warning in config help text (#101086)
1 parent 5f7bc2c commit 1a072f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/flutter_tools/lib/src/features.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ const Feature singleWidgetReload = Feature(
216216
const Feature windowsUwpEmbedding = Feature(
217217
name: 'Flutter for Windows UWP',
218218
configSetting: 'enable-windows-uwp-desktop',
219+
extraHelpText: 'Warning: Windows UWP support is obsolete and will be removed.',
219220
master: FeatureChannelSetting(
220221
available: true,
221222
),

packages/flutter_tools/test/general.shard/features_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ void main() {
382382
expect(featureFlags.isWindowsUwpEnabled, true);
383383
});
384384

385+
testWithoutContext('Flutter Windows UWP desktop config includes removal warning', () {
386+
expect(windowsUwpEmbedding.extraHelpText, contains('Windows UWP support is obsolete and will be removed'));
387+
});
388+
385389
testWithoutContext('Flutter Windows UWP desktop off by default on stable', () {
386390
final FeatureFlags featureFlags = createFlags('stable');
387391

0 commit comments

Comments
 (0)