Commit b2b487f7 authored by Romain Hunault's avatar Romain Hunault
Browse files

Screenshot blisslauncher screens

parent ca29dd10
Pipeline #182904 passed with stage
in 6 minutes and 9 seconds
......@@ -68,3 +68,5 @@ lint/tmp/
ktlint
keystore/platform.jks
tmp
# $ ./screenshots.sh <language code>
# To be used on: OnePlus Nord (avicii)
# Language code recommandations: fr, en, es, it, de
# Before running:
# - Manually set the device language
# - Manually delete and create a folder (line 4, slot1)
# - Swipe done the widget page
app=blisslauncher
languages=${1}
DEVICE_FOLDER=/sdcard/$app/$language/
LOCAL_FOLDER=tmp/screenshots/$language
adb shell mkdir -p $DEVICE_FOLDER
mkdir -p $LOCAL_FOLDER
# Default Grid
adb shell input keyevent 3 # KEYCODE_HOME list https://developer.android.com/reference/android/view/KeyEvent.html
adb shell "screencap -p > /sdcard/$app/$language/grid_1.png"
# Folder
adb shell input keyevent 3 # KEYCODE_HOME list https://developer.android.com/reference/android/view/KeyEvent.html
# sleep 1
# adb shell input draganddrop 150 1200 150 1200 100
# adb shell input draganddrop 150 1200 450 1200 5500
# sleep 1
# adb shell input tap 150 1200
sleep 1
adb shell input tap 150 1200
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/folder_1.png"
# Widgets
adb shell input keyevent 3
adb shell input keyevent 3
sleep 1
adb shell input swipe 180 1500 1100 1500
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/widget_1.png"
adb shell input swipe 600 2100 600 300
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/widget_2.png"
# Edit widget
adb shell input keyevent 3
sleep 1
adb shell input swipe 180 1500 1100 1500
sleep 1
adb shell input swipe 600 2100 600 300
sleep 1
adb shell input tap 550 2050
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/edit_widget_1.png"
adb shell input tap 550 800
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/edit_widget_2.png"
# Weather widget settings
adb shell input keyevent 3
sleep 1
adb shell input keyevent 3
sleep 1
adb shell input swipe 180 1500 1100 1500
sleep 1
adb shell input swipe 600 2100 600 300
sleep 1
adb shell input tap 1000 1300
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_1.png"
adb shell input tap 600 650
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_2.png"
adb shell input keyevent 4 # KEYCODE_BACK
sleep 1
adb shell input tap 600 850
sleep 1
adb shell input tap 600 1000
sleep 1
adb shell "screencap -p >/sdcard/$app/$language/weather_widget_settings_3.png"
adb shell input tap 550 1050
sleep 1
adb shell input text "paris"
sleep 1
adb shell input tap 900 1380
sleep 0.5
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_4.png"
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_5.png"
adb shell input keyevent 4
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input text "qwerty"
sleep 1
adb shell input tap 900 1380
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_6.png"
adb shell input keyevent 4
sleep 1
adb shell input tap 600 1350
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_7.png"
# Search
adb shell input keyevent 3
adb shell input keyevent 3
sleep 1
adb shell input swipe 600 1200 600 1700
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/search_1.png"
# Download screenshots
adb shell input keyevent 3
adb pull $DEVICE_FOLDER/* $LOCAL_FOLDER
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment