From 740e4f9fd52602a3136e4c197a0aa2a23c0929c3 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Fri, 21 Jan 2022 21:02:01 +0300 Subject: [PATCH] add debugging tips to README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 8193d50..2f94545 100644 --- a/README.md +++ b/README.md @@ -393,6 +393,14 @@ In order for AIO Launcher to correctly display information about the script in t -- version = "1.0" ``` +# Debugging + +Some tips on writing and debugging scripts: + +* The most convenient way to upload scripts to your smartphone is to use the `install-scripts.sh` script from this repository. This is a sh script for UNIX systems which loads all the scripts from the repository onto the (virtual) memory card of the smartphone using ADB. You can edit it to your liking. +* The easiest way to reload an updated widget script is to swipe the widget to the right and then press the "reload" button. The search scripts will be reloaded automatically next time you open the search window. +* Since version 4.3.0 AIO Launcher supports widget scripts hot reloading. To enable it, go to AIO Settings -> About and click on the version number 7 times. Then open AIO Settings -> Testing and enable the option "Hot reload scripts on resume". Now when you change the script, it will be automatically reloaded when you return to the desktop. + # Backward compatibiliy AIO Launcher mantains backward compatibility with existing APIs. But if you want to use API functions which appeared later than 4.0.0 you'd better use a special meta tag which will hide your script on all previous versions of the application.