aports/testing/flutter/opt-in-analytics.patch
2023-08-03 12:29:43 +00:00

22 lines
1.2 KiB
Diff

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