Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57fa2b70 authored by Patrice Arruda's avatar Patrice Arruda Committed by Automerger Merge Worker
Browse files

Merge "Set ANDROID_ENABLE_METRICS_UPLOAD to the metrics_uploader path to...

Merge "Set ANDROID_ENABLE_METRICS_UPLOAD to the metrics_uploader path to upload metrics." am: 4a2e443e am: 4c90b694

Original change: https://android-review.googlesource.com/c/platform/build/+/1360984

Change-Id: I4d16ce4c1c2559f28f898e96f4769d93db0a7875
parents 5b64b258 4c90b694
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -23,3 +23,14 @@ function use_rbe() {
  RBE_re_proxy="${RBE_BINARIES_DIR}/reproxy" \
  $@
}

# This function detects if the uploader is available and sets the path of it to
# ANDROID_ENABLE_METRICS_UPLOAD.
function _export_metrics_uploader() {
  local uploader_path="$(gettop)/vendor/google/misc/metrics_uploader_prebuilt/metrics_uploader.sh"
  if [ -x "${uploader_path}" ]; then
    export ANDROID_ENABLE_METRICS_UPLOAD="${uploader_path}"
  fi
}

_export_metrics_uploader