Files
AndroidChart/androidplot/misc/download_google_publisher_json.sh
2026-07-03 15:56:07 +08:00

9 lines
488 B
Bash

# use curl to download the publisher acct json file from $PUBLISHER_ACCT_JSON_FILE_URI, if set,
# to the path/filename set in $PUBLISHER_ACCT_JSON_FILE.
if [[ $PUBLISHER_ACCT_JSON_FILE && ${PUBLISHER_ACCT_JSON_FILE} && $PUBLISHER_ACCT_JSON_FILE_URI && ${PUBLISHER_ACCT_JSON_FILE_URI} ]]
then
echo "Keystore detected - downloading..."
curl -L -o ${PUBLISHER_ACCT_JSON_FILE} ${PUBLISHER_ACCT_JSON_FILE_URI}
else
echo "Keystore uri not set. .APK artifact will not be signed."
fi