Use new enabledFeature param for Analytics (#139934)

Related to tracker issue:
- https://github.com/flutter/flutter/issues/128251

This updates the `Analytics` constructor to provide it with the enabled features for the flutter-tool. This will be sent with each event for the flutter-tool.
This commit is contained in:
Elias Yishak
2023-12-15 14:58:05 -05:00
committed by GitHub
parent c35c42ac71
commit d180c12705
4 changed files with 49 additions and 3 deletions

View File

@@ -322,6 +322,7 @@ FakeAnalytics getInitializedFakeAnalyticsInstance({
required FileSystem fs,
required FakeFlutterVersion fakeFlutterVersion,
String? clientIde,
String? enabledFeatures,
}) {
final Directory homeDirectory = fs.directory('/');
final FakeAnalytics initialAnalytics = FakeAnalytics(
@@ -346,6 +347,7 @@ FakeAnalytics getInitializedFakeAnalyticsInstance({
flutterChannel: fakeFlutterVersion.channel,
flutterVersion: fakeFlutterVersion.getVersionString(),
clientIde: clientIde,
enabledFeatures: enabledFeatures,
);
}