#!/bin/sh # Builds this project's tablet client -- the slow half of the pair, on # purpose. A real second client is slow for a real reason (an ARM # cross-compile, an NDK step); here it is six seconds of pretending, which # is enough to see that pressing Update on `phone` did not wait for it. # # Reports its own progress, so the sleep also exercises a per-component bar # next to a component that finishes before the bar has moved. set -eu STEPS=6 i=0 while [ "$i" -lt "$STEPS" ]; do i=$((i + 1)) echo "@@progress $i/$STEPS" echo "==> Cross-compiling native bits, part $i of $STEPS" sleep 1 done ../../lib/build-apk.sh --package com.example.dutest.tablet --label "Test Tablet"