| echo "Starting $0 at $(date)" |
| # This target is for testing that clean builds work correctly |
| # We disable the remote cache for this target unless it was already enabled |
| if [ "$USE_ANDROIDX_REMOTE_BUILD_CACHE" == "" ]; then |
| export USE_ANDROIDX_REMOTE_BUILD_CACHE=false |
| # Validate translation exports, if present |
| if ! impl/check_translations.sh; then |
| if ! impl/build.sh buildOnServer checkExternalLicenses listTaskOutputs \ |
| -Pandroidx.enableComposeCompilerMetrics=true \ |
| -Pandroidx.enableComposeCompilerReports=true \ |
| # Parse performance profile reports (generated with the --profile option above) and re-export |
| # the metrics in an easily machine-readable format for tracking |
| impl/parse_profile_htmls.sh |
| echo "Completing $0 at $(date) with exit value $EXIT_VALUE" |