1#!/bin/bash 2set -e 3SCRIPT_PATH="$(cd $(dirname $0) && pwd)" 4 5# Use this flag to temporarily disable `checkApi` 6# while landing Metalava w/ breaking API changes 7METALAVA_INTEGRATION_ENFORCED=true 8 9# The default targets to build if no arguments 10# are provided on the command line. 11DEFAULT_TARGETS=" \ 12 listTaskOutputs \ 13 checkApi \ 14 " 15 16if $METALAVA_INTEGRATION_ENFORCED 17then 18 # If no arguments are provided on the command line 19 # then use the defaults otherwise pass the command 20 # line arguments through. 21 $SCRIPT_PATH/impl/build-metalava-and-androidx.sh \ 22 ${1:-$DEFAULT_TARGETS} \ 23 "${@:2}" 24fi 25