1#!/bin/bash 2 3set -ex 4 5readonly GRADLE_PROJECTS=( 6 "javatests/artifacts/hilt-android/simple" 7 "javatests/artifacts/hilt-android/simpleKotlin" 8) 9for project in "${GRADLE_PROJECTS[@]}"; do 10 echo "Running gradle Android emulator tests for $project" 11 ./$project/gradlew -p $project connectedAndroidTest --no-daemon --stacktrace 12done 13 14# Run emulator tests in a project with configuration cache enabled 15# TODO(danysantiago): Once AGP 4.2.0 is stable, remove these project and enable 16# config cache in the other test projects. 17readonly CONFIG_CACHE_PROJECT="javatests/artifacts/hilt-android/gradleConfigCache" 18./$CONFIG_CACHE_PROJECT/gradlew -p $CONFIG_CACHE_PROJECT connectedAndroidTest --no-daemon --stacktrace --configuration-cache 19