[flutter_tools] adjust some feature settings (#82851)

This commit is contained in:
Jonah Williams 2021-05-18 20:49:03 -07:00 committed by GitHub
parent 574dfc3830
commit 666675078c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -301,6 +301,10 @@ const Feature windowsUwpEmbedding = Feature(
available: true,
enabledByDefault: false,
),
dev: FeatureChannelSetting(
available: true,
enabledByDefault: false,
),
);
/// A [Feature] is a process for conditionally enabling tool features.

View file

@ -467,6 +467,19 @@ void main() {
expect(featureFlags.isWindowsUwpEnabled, true);
});
testWithoutContext('Flutter Windows UWP desktop off by default on dev', () {
final FeatureFlags featureFlags = createFlags('dev');
expect(featureFlags.isWindowsUwpEnabled, false);
});
testWithoutContext('Flutter Windows UWP desktop enabled with config on dev', () {
final FeatureFlags featureFlags = createFlags('dev');
testConfig.setValue('enable-windows-uwp-desktop', true);
expect(featureFlags.isWindowsUwpEnabled, true);
});
testWithoutContext('Flutter Windows UWP desktop off by default on stable', () {
final FeatureFlags featureFlags = createFlags('stable');