use correct no-download-badge (flutter/engine#7735)

This commit is contained in:
Dan Field 2019-02-07 15:15:41 -08:00 committed by GitHub
parent 597f3a5adc
commit 021996ff8d

View File

@ -24,6 +24,15 @@ if [[ -n "${GEM_HOME}" ]]
PATH="${GEM_HOME}/bin:$PATH"
fi
# Jazzy 0.8.x, used on chrome infra, expects --no-download-badge
# Jazzy 0.9.x, used on LUCI, doesn't support that flag.
noDownloadBadge=""
if [[ -z "$LUCI_CONTEXT" ]]
then
noDownloadBadge="--no-download-badge"
fi
# Use iPhoneSimulator SDK
# See: https://github.com/realm/jazzy/issues/791
jazzy \
@ -39,4 +48,4 @@ jazzy \
--module Flutter\
--root-url https://docs.flutter.io/objc/\
--output "$1"\
--no-download-badge
$noDownloadBadge