| 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/when we enable desktop, enable VerifyDependencyVersionsTask.kt/shouldVerifyConfiguration |
| if ! impl/build.sh buildOnServer createAllArchives checkExternalLicenses listTaskOutputs \ |
| -Pandroidx.enableComposeCompilerMetrics=true \ |
| -Pandroidx.enableComposeCompilerReports=true \ |
| -Pandroidx.constraints=true \ |
| -Pandroidx.enabled.kmp.target.platforms=-desktop \ |
| # 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_data.sh |
| echo "Completing $0 at $(date) with exit value $EXIT_VALUE" |