mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Closes https://github.com/flutter/flutter/issues/162846. At HEAD, including before this PR, it was impossible to use, or pass-in, an unsound null-safety mode, but we still had code checking for it, and reported analytics (I think? Some of these are `package:usage` specific which is defunct). This PR eradicates the otherwise unused code.
Flutter reports data to two separate systems:
- Anonymous usage statistics are reported to Google Analytics (for statistics
such as the number of times the
fluttertool was run within a given time period). The code that manages this is in [usage.dart]. - Crash reports for the
fluttertool. These are not reports of when Flutter applications crash, but rather when the command-linefluttertool itself crashes. The code that manages this is in [crash_reporting.dart].
Opting out
Users can opt out of all reporting in a single place by running
flutter config --no-analytics.