Unverified Commit bd6b5cef authored by Zachary Anderson's avatar Zachary Anderson Committed by GitHub

[flutter_tools] Enable custom devices on all channels (#109953)

parent 957a8da4
......@@ -196,6 +196,12 @@ const Feature flutterCustomDevicesFeature = Feature(
master: FeatureChannelSetting(
available: true,
),
beta: FeatureChannelSetting(
available: true,
),
stable: FeatureChannelSetting(
available: true,
),
);
/// The fast hot reload feature for https://github.com/flutter/flutter/issues/61407.
......
......@@ -384,5 +384,20 @@ void main() {
});
}
// Custom devices on all channels
for (final String channel in <String>['master', 'beta', 'stable']) {
testWithoutContext('Custom devices are enabled with flag on $channel', () {
final FeatureFlags featureFlags = createFlags(channel);
testConfig.setValue('enable-custom-devices', true);
expect(featureFlags.areCustomDevicesEnabled, true);
});
testWithoutContext('Custom devices are enabled with environment variable on $channel', () {
final FeatureFlags featureFlags = createFlags(channel);
platform.environment = <String, String>{'FLUTTER_CUSTOM_DEVICES': 'true'};
expect(featureFlags.areCustomDevicesEnabled, true);
});
}
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment