flutter/packages/flutter_tools/lib/src/reporting
Jonah Williams 2e54c4a8ea
[flutter_tools] implement safe file copy with multiple fallbacks (#69000)
The tool observes a large number of unhandled exceptions during the file copy portion of flutter create. it is difficult to tell whether the permission issue is caused by the source/destination, or whether it is due to a bug in dart:io.

To work around this, implement a permission check for both the source and dest files. If either fails, the tool can exit with a more specific message.

If these checks pass, then perform the actual copy. If the copy fails, fallback to manually copying the bytes
2020-10-26 15:49:07 -07:00
..
crash_reporting.dart [flutter_tools] dont let crash reporter crash tool (#66755) 2020-09-30 15:26:25 -07:00
disabled_usage.dart License update (#45373) 2019-11-27 15:04:02 -08:00
events.dart [flutter_tools] implement safe file copy with multiple fallbacks (#69000) 2020-10-26 15:49:07 -07:00
github_template.dart Move GitHubTemplateCreator into reporting library (#55002) 2020-04-17 10:47:12 -07:00
README.md Move reporting files to reporting/ (#36017) 2019-07-16 13:21:06 -07:00
reporting.dart [flutter_tools] add a mechanism to turn off immediate tool exit (#66787) 2020-09-28 13:04:38 -07:00
usage.dart Replace MockUsage with Usage.test in build tests (#67670) 2020-10-08 16:09:49 -07:00

Flutter reports data to two separate systems:

  1. Anonymous usage statistics are reported to Google Analytics (for statistics such as the number of times the flutter tool was run within a given time period). The code that manages this is in [usage.dart].
  2. Crash reports for the flutter tool. These are not reports of when Flutter applications crash, but rather when the command-line flutter tool 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.