projects/aports·blob master · refs

22 lines · 1.2 KiB

1--- a/packages/flutter_tools/lib/src/reporting/usage.dart
2+++ b/packages/flutter_tools/lib/src/reporting/usage.dart
3@@ -218,7 +218,7 @@
4 if (globals.platform.environment.containsKey('FLUTTER_HOST')) {
5 analytics.setSessionValue('aiid', globals.platform.environment['FLUTTER_HOST']);
6 }
7- analytics.analyticsOpt = AnalyticsOpt.optOut;
8+ analytics.analyticsOpt = AnalyticsOpt.optIn;
9 }
10
11 return _DefaultUsage._(
12--- a/packages/flutter_tools/lib/src/reporting/first_run.dart
13+++ b/packages/flutter_tools/lib/src/reporting/first_run.dart
14@@ -37,6 +37,8 @@
15 ║ See Google's privacy policy: ║
16 ║ https://policies.google.com/privacy ║
17 ╚════════════════════════════════════════════════════════════════════════════╝
18+aports overrides: reporting is disabled by default. Opt-out is not a sent event.
19+Run 'flutter config --analytics' to opt in to reports.
20 ''';
21
22 /// The first run messenger determines whether the first run license terms