Update analytics constructor to include FLUTTER_HOST (#138107)
Fixes issues: - https://github.com/flutter/flutter/issues/138035 Similar to GA3, we will now record the host running the flutter tool, such as VSCode, stored in the `FLUTTER_HOST` env variable
This commit is contained in:
@@ -19,6 +19,7 @@ Analytics getAnalytics({
|
||||
required bool runningOnBot,
|
||||
required FlutterVersion flutterVersion,
|
||||
required Map<String, String> environment,
|
||||
required String? clientIde,
|
||||
bool enableAsserts = false,
|
||||
FakeAnalytics? analyticsOverride,
|
||||
}) {
|
||||
@@ -48,5 +49,6 @@ Analytics getAnalytics({
|
||||
flutterVersion: flutterVersion.frameworkVersion,
|
||||
dartVersion: flutterVersion.dartSdkVersion,
|
||||
enableAsserts: enableAsserts,
|
||||
clientIde: clientIde,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user