forked from firka/flutter
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:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user