0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00

Emulator tooling to allow for robolectric tests

This commit is contained in:
Mike Hardy 2018-09-18 13:56:52 -05:00 committed by Tim Rae
parent 7c4878bcff
commit dd4e7aa52c
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#!/bin/bash
# This attempts to send an adb shell command to all your emulators (on Ubuntu 18.04.01 LTS at least...)
if [ "$1" == "" ]; then
echo "You must provide the adb shell command to execute as the argument"
exit 1
fi
killall -9 adb
adb devices -l > /dev/null
sleep 2
adb devices -l > /dev/null
sleep 2
for EMU_ID in `adb devices -l | grep emulator | cut -d' ' -f1`; do
echo "adb -s $EMU_ID shell $1 $2 $3 $4 $5 $6"
adb -s $EMU_ID shell $1 $2 $3 $4 $5 $6
done

View File

@ -0,0 +1,4 @@
#!/bin/bash
adb_shell_all_emulators.sh settings put global window_animation_scale 0
adb_shell_all_emulators.sh settings put global transition_animation_scale 0
adb_shell_all_emulators.sh settings put global animator_duration_scale 0