mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[flutter_tools] Enable custom devices on all channels (#109953)
This commit is contained in:
parent
957a8da4a2
commit
bd6b5cef95
@ -196,6 +196,12 @@ const Feature flutterCustomDevicesFeature = Feature(
|
|||||||
master: FeatureChannelSetting(
|
master: FeatureChannelSetting(
|
||||||
available: true,
|
available: true,
|
||||||
),
|
),
|
||||||
|
beta: FeatureChannelSetting(
|
||||||
|
available: true,
|
||||||
|
),
|
||||||
|
stable: FeatureChannelSetting(
|
||||||
|
available: true,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
/// The fast hot reload feature for https://github.com/flutter/flutter/issues/61407.
|
/// 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);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user