Skip to content

Commit

Permalink
Update screenshots, and provide some scripts to help with creating sc…
Browse files Browse the repository at this point in the history
…reenshots.
  • Loading branch information
caarmen committed Jan 3, 2025
1 parent 0312c19 commit dcc5548
Show file tree
Hide file tree
Showing 38 changed files with 33 additions and 0 deletions.
Binary file modified etc/screenshots/phone/dark/composer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/dark/dictionary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/dark/favorites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/dark/rhymer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/dark/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/dark/thesaurus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/light/composer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/light/dictionary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/light/favorites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/light/rhymer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/light/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/phone/light/thesaurus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions etc/screenshots/rename.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pushd $1
for screen in composer dictionary favorites rhymer settings thesaurus
do
mv $screen-*.png $screen.png
done
popd
27 changes: 27 additions & 0 deletions etc/screenshots/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Some manual steps before:
# - Remove the @Ignore annotation from app/src/androidTest/java/ca/rmen/android/poetassistant/main/ScreenshotTest.java

./gradlew assembleDebug assembleDebugAndroidTest
mapfile -t devices < <(adb devices | grep "device$" | sed -e 's/\t.*$//g')

for device in "${devices[@]}";
do
echo "Installing apks to $device"
adb -s $device install -r ./app/build/outputs/apk/debug/app-debug.apk
adb -s $device install -r ./app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
done

for device in "${devices[@]}";
do
output="/tmp/$device.log"
echo "Running tests on $device, output to $output"
adb -s $device shell settings put global animator_duration_scale 0
adb -s $device shell settings put global transition_animation_scale 0
adb -s $device shell settings put global window_animation_scale 0
adb -s $device shell am instrument -w -m -e debug false -e class ca.rmen.android.poetassistant.main.ScreenshotTest ca.rmen.android.poetassistant.test.test/androidx.test.runner.AndroidJUnitRunner > $output 2>&1 &
done

# Some more manual steps:
# - retrieve the screenshots using the device explorer. They will be in /sdcard/Pictures/screenshots. The /sdcard folder may be found in /mnt.
# - Save them to the different folders (tablet/light, phone/dark, etc).
# - use the rename.sh script to rename the files to strip the uuids from the names.
Binary file modified etc/screenshots/tablet-10inch/dark/composer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/dark/dictionary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/dark/favorites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/dark/rhymer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/dark/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/dark/thesaurus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/light/composer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/light/dictionary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/light/favorites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/light/rhymer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/light/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-10inch/light/thesaurus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-7inch/dark/composer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified etc/screenshots/tablet-7inch/dark/dictionary.png
Binary file modified etc/screenshots/tablet-7inch/dark/favorites.png
Binary file modified etc/screenshots/tablet-7inch/dark/rhymer.png
Binary file modified etc/screenshots/tablet-7inch/dark/settings.png
Binary file modified etc/screenshots/tablet-7inch/dark/thesaurus.png
Binary file modified etc/screenshots/tablet-7inch/light/composer.png
Binary file modified etc/screenshots/tablet-7inch/light/dictionary.png
Binary file modified etc/screenshots/tablet-7inch/light/favorites.png
Binary file modified etc/screenshots/tablet-7inch/light/rhymer.png
Binary file modified etc/screenshots/tablet-7inch/light/settings.png
Binary file modified etc/screenshots/tablet-7inch/light/thesaurus.png

0 comments on commit dcc5548

Please sign in to comment.