Skip to content

Commit a32a924

Browse files
committed
Disable "Google Analytics" by default
1 parent c27e653 commit a32a924

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ If you are running this on `self-hosted` runner specially with Apple Silicon Mac
109109

110110
For more information plase check https://docs.flutter.dev/get-started/install/macos.
111111

112+
### Flutter uses Google Analytics
113+
114+
Starting from `flutter-actions/setup-flutter@v3`, the action will disable **Flutter SDK** built-in **Google Analytics** by default.
115+
112116
## Using outside of GitHub Actions environment
113117

114118
This action is designed to be used in GitHub Actions environment. If you want to use it outside of GitHub Actions, you can use the following script:

action.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ echo "PUB_CACHE=${FLUTTER_PUB_CACHE}" >> $GITHUB_ENV
110110
echo "${FLUTTER_PUB_CACHE}/bin" >> $GITHUB_PATH
111111
echo "${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin" >> $GITHUB_PATH
112112

113+
# Disable Google Analytics
114+
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-analytics
115+
113116
# Report success, and print version.
114117
echo -e "Succesfully installed Flutter SDK:"
115118
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/dart --version

0 commit comments

Comments
 (0)