mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-02-23 01:46:10 -05:00
buildserver: disable flutter dev/build analytics globally
The Flutter dev tools includes opt-out analytics, with a config option to opt out. We can at least try to disable them in the buildserver. That config option is unfortunately not even guaranteed to work: https://github.com/flutter/flutter/issues/19304 https://github.com/flutter/flutter/issues/45369 issuebot#21 issuebot!49 https://github.com/flutter/flutter/issues/73657
This commit is contained in:
1
buildserver/Vagrantfile
vendored
1
buildserver/Vagrantfile
vendored
@@ -86,6 +86,7 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.provision "shell", name: "android-ndk", path: "provision-android-ndk",
|
||||
args: ["/opt/android-sdk/ndk", "r21e", "r23b"]
|
||||
config.vm.provision "shell", name: "gradle", path: "provision-gradle"
|
||||
config.vm.provision "shell", name: "disable-analytics", path: "provision-disable-analytics"
|
||||
config.vm.provision "shell", name: "buildserverid", path: "provision-buildserverid",
|
||||
args: [`git rev-parse HEAD`]
|
||||
|
||||
|
||||
15
buildserver/provision-disable-analytics
Normal file
15
buildserver/provision-disable-analytics
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
# Flutter
|
||||
# https://github.com/flutter/flutter/issues/73657
|
||||
flutter_conf=/home/vagrant/.flutter
|
||||
cat <<EOF > $flutter_conf
|
||||
{
|
||||
"enabled": false
|
||||
}
|
||||
EOF
|
||||
chown -R vagrant.vagrant $flutter_conf
|
||||
chmod -R 0644 $flutter_conf
|
||||
|
||||
Reference in New Issue
Block a user