Open
Description
In a first run of the debugging tools upon visiting the URL is found the text flutter --disable-analytics
. The number representing the version of the message (see below) notwithstanding I would suggest including in bin .sh and .ps1 scripts to modify the ~/.dart-tool/dart-flutter-telemetry.config
file.
$ sed -n '37,52p' tools/pkgs/unified_analytics/lib/src/constants.dart
# NOTIFICATIONS
#
# Each tool records when it last informed the user about
# analytics reporting and the privacy policy.
#
# The following tools have so far read this file:
#
# dart-tools (Dart CLI developer tool)
# devtools (DevTools debugging and performance tools)
# flutter-tools (Flutter CLI developer tool)
#
# For each one, the file may contain a configuration line
# where the name is the code in the list above, e.g. "dart-tool",
# and the value is a date in the form YYYY-MM-DD, a comma, and
# a number representing the version of the message that was
# displayed.''';
$
It may be useful via such proposed scripts to enable/disable telemetry for devtools
absent a flutter installation and/or with the URL open via the Settings as its checkbox for Enable analytics.
$ sed -n '98,113p' tools/pkgs/unified_analytics/lib/src/constants.dart
/// The message that should be shown to the user.
const String kToolsMessage = '''
The {{ toolDescription }} uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.
Telemetry is not sent on the very first run. To disable reporting of telemetry,
run this terminal command:
{{ toolName }} --disable-analytics
If you opt out of telemetry, an opt-out event will be sent, and then no further
information will be sent. This data is collected in accordance with the Google
Privacy Policy (https://policies.google.com/privacy).
''';
$