mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[flutter_tools] remove feature for alternative invalidation strategy (#84366)
This commit is contained in:
parent
01e823c4fb
commit
67a57eb9a5
@ -47,9 +47,6 @@ abstract class FeatureFlags {
|
||||
/// Whether fast single widget reloads are enabled.
|
||||
bool get isSingleWidgetReloadEnabled => false;
|
||||
|
||||
/// Whether the CFE experimental invalidation strategy is enabled.
|
||||
bool get isExperimentalInvalidationStrategyEnabled => true;
|
||||
|
||||
/// Whether the windows UWP embedding is enabled.
|
||||
bool get isWindowsUwpEnabled => false;
|
||||
|
||||
@ -71,7 +68,6 @@ const List<Feature> allFeatures = <Feature>[
|
||||
flutterIOSFeature,
|
||||
flutterFuchsiaFeature,
|
||||
flutterCustomDevicesFeature,
|
||||
experimentalInvalidationStrategy,
|
||||
];
|
||||
|
||||
/// The [Feature] for flutter web.
|
||||
@ -270,29 +266,6 @@ const Feature singleWidgetReload = Feature(
|
||||
),
|
||||
);
|
||||
|
||||
/// The CFE experimental invalidation strategy.
|
||||
const Feature experimentalInvalidationStrategy = Feature(
|
||||
name: 'Hot reload optimization that reduces incremental artifact size',
|
||||
configSetting: 'experimental-invalidation-strategy',
|
||||
environmentOverride: 'FLUTTER_CFE_EXPERIMENTAL_INVALIDATION',
|
||||
master: FeatureChannelSetting(
|
||||
available: true,
|
||||
enabledByDefault: true,
|
||||
),
|
||||
dev: FeatureChannelSetting(
|
||||
available: true,
|
||||
enabledByDefault: true,
|
||||
),
|
||||
beta: FeatureChannelSetting(
|
||||
available: true,
|
||||
enabledByDefault: true,
|
||||
),
|
||||
stable: FeatureChannelSetting(
|
||||
available: true,
|
||||
enabledByDefault: true,
|
||||
),
|
||||
);
|
||||
|
||||
/// The feature for enabling the Windows UWP embedding.
|
||||
const Feature windowsUwpEmbedding = Feature(
|
||||
name: 'Flutter for Windows UWP',
|
||||
|
@ -47,9 +47,6 @@ class FlutterFeatureFlags implements FeatureFlags {
|
||||
@override
|
||||
bool get isSingleWidgetReloadEnabled => isEnabled(singleWidgetReload);
|
||||
|
||||
@override
|
||||
bool get isExperimentalInvalidationStrategyEnabled => isEnabled(experimentalInvalidationStrategy);
|
||||
|
||||
@override
|
||||
bool get isWindowsUwpEnabled => isEnabled(windowsUwpEmbedding);
|
||||
|
||||
|
@ -151,8 +151,7 @@ class FlutterDevice {
|
||||
extraFrontEndOptions = <String>[
|
||||
if (featureFlags.isSingleWidgetReloadEnabled)
|
||||
'--flutter-widget-cache',
|
||||
if (featureFlags.isExperimentalInvalidationStrategyEnabled)
|
||||
'--enable-experiment=alternative-invalidation-strategy',
|
||||
'--enable-experiment=alternative-invalidation-strategy',
|
||||
...?extraFrontEndOptions,
|
||||
];
|
||||
generator = ResidentCompiler(
|
||||
|
@ -2037,7 +2037,7 @@ void main() {
|
||||
FeatureFlags: () => TestFeatureFlags(isSingleWidgetReloadEnabled: true)
|
||||
});
|
||||
|
||||
testUsingContext('FlutterDevice passes alternative-invalidation-strategy flag when feature is enabled', () async {
|
||||
testUsingContext('FlutterDevice passes alternative-invalidation-strategy flag', () async {
|
||||
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
|
||||
final FakeDevice mockDevice = FakeDevice(targetPlatform: TargetPlatform.android_arm);
|
||||
|
||||
@ -2059,7 +2059,6 @@ void main() {
|
||||
Artifacts: () => Artifacts.test(),
|
||||
FileSystem: () => MemoryFileSystem.test(),
|
||||
ProcessManager: () => FakeProcessManager.any(),
|
||||
FeatureFlags: () => TestFeatureFlags(isExperimentalInvalidationStrategyEnabled: true)
|
||||
});
|
||||
|
||||
testUsingContext('FlutterDevice passes initializeFromDill parameter if specified', () async {
|
||||
|
@ -415,7 +415,6 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
this.isIOSEnabled = true,
|
||||
this.isFuchsiaEnabled = false,
|
||||
this.areCustomDevicesEnabled = false,
|
||||
this.isExperimentalInvalidationStrategyEnabled = false,
|
||||
this.isWindowsUwpEnabled = false,
|
||||
});
|
||||
|
||||
@ -446,9 +445,6 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
@override
|
||||
final bool areCustomDevicesEnabled;
|
||||
|
||||
@override
|
||||
final bool isExperimentalInvalidationStrategyEnabled;
|
||||
|
||||
@override
|
||||
final bool isWindowsUwpEnabled;
|
||||
|
||||
@ -473,8 +469,6 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
return isFuchsiaEnabled;
|
||||
case flutterCustomDevicesFeature:
|
||||
return areCustomDevicesEnabled;
|
||||
case experimentalInvalidationStrategy:
|
||||
return isExperimentalInvalidationStrategyEnabled;
|
||||
case windowsUwpEmbedding:
|
||||
return isWindowsUwpEnabled;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user