BangleApps/apps/fastload/README.md

39 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

#### ⚠EXPERIMENTAL⚠
2022-11-27 18:29:28 +00:00
# Fastload Utils
Use this with caution. When you find something misbehaving please check if the problem actually persists when removing this app.
2022-11-27 18:29:28 +00:00
This allows fast loading of all apps with two conditions:
* Loaded app contains `Bangle.loadWidgets`. This is needed to prevent problems with apps not expecting widgets to be already loaded.
* Current app can be removed completely from RAM.
#### ⚠️ KNOWN ISSUES ⚠️
* Fastload currently does not play nice with the automatic reload option of the apploader. App installs and upgrades are unreliable since the fastload causes code to run after reset and interfere with the upload process.
2022-11-27 18:29:28 +00:00
## Settings
fastload: Add app history functionality Add app history functionality add semicolons that were missing according to Web IDE fix intendtation in if statement fewer storage manipulations, tweak some logic comment regarding resetting history undo `const SETTINGS` -> `let settings` describe app history in readme In settings, don't allow app history and load to launcher to be active at the same time change `launchedApps` -> `appHistory` (somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected add to comment re loading `.bootcde` an extra time on init Revert "add to comment re loading `.bootcde` an extra time on init" This reverts commit b4aaccf35c820a1c7e7a22040c3958b4fc92e5c6. Revert "(somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected" This reverts commit 51dddfc30ac65572891efee1daf6099f7a3b19f4. tweak when settings page is autoupdated Change description for app history. Add contributor. quicklaunch shall not be recorded in the history Add setting to exclude quicklaunch from history, if it is present remove print statements If long press HW button do reset history. Set some variables to null if app history is disabled. add info re long press HW button resets history remove check for 'fastload.5.boot.js'. it would show up in the app history during development because the web ide said to load the uploaded app. it should not be needed in normal operations of the app for users. fewer checks for if useAppHistory is true, by first declaring some variables and then defining them inside an if-statement add recommendation of 'Fast Reset' app in readme
2023-03-25 12:56:53 +00:00
* Activate app history and navigate back through recent apps instead of immediately loading the clock face
* If Quick Launch is installed it can be excluded from app history
2022-11-27 18:29:28 +00:00
* Allows to redirect all loads usually loading the clock to the launcher instead
* The "Fastloading..." screen can be switched off
* Enable checking `setting.json` and force a complete load on changes
2022-11-27 18:29:28 +00:00
fastload: Add app history functionality Add app history functionality add semicolons that were missing according to Web IDE fix intendtation in if statement fewer storage manipulations, tweak some logic comment regarding resetting history undo `const SETTINGS` -> `let settings` describe app history in readme In settings, don't allow app history and load to launcher to be active at the same time change `launchedApps` -> `appHistory` (somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected add to comment re loading `.bootcde` an extra time on init Revert "add to comment re loading `.bootcde` an extra time on init" This reverts commit b4aaccf35c820a1c7e7a22040c3958b4fc92e5c6. Revert "(somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected" This reverts commit 51dddfc30ac65572891efee1daf6099f7a3b19f4. tweak when settings page is autoupdated Change description for app history. Add contributor. quicklaunch shall not be recorded in the history Add setting to exclude quicklaunch from history, if it is present remove print statements If long press HW button do reset history. Set some variables to null if app history is disabled. add info re long press HW button resets history remove check for 'fastload.5.boot.js'. it would show up in the app history during development because the web ide said to load the uploaded app. it should not be needed in normal operations of the app for users. fewer checks for if useAppHistory is true, by first declaring some variables and then defining them inside an if-statement add recommendation of 'Fast Reset' app in readme
2023-03-25 12:56:53 +00:00
## App history
* Long press of hardware button clears the app history and loads the clock face
* Installing the 'Fast Reset' app allows doing fastloads directly to the clock face by pressing the hardware button just a little longer than a click. Useful if there are many apps in the history and the user want to access the clock quickly.
fastload: Add app history functionality Add app history functionality add semicolons that were missing according to Web IDE fix intendtation in if statement fewer storage manipulations, tweak some logic comment regarding resetting history undo `const SETTINGS` -> `let settings` describe app history in readme In settings, don't allow app history and load to launcher to be active at the same time change `launchedApps` -> `appHistory` (somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected add to comment re loading `.bootcde` an extra time on init Revert "add to comment re loading `.bootcde` an extra time on init" This reverts commit b4aaccf35c820a1c7e7a22040c3958b4fc92e5c6. Revert "(somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected" This reverts commit 51dddfc30ac65572891efee1daf6099f7a3b19f4. tweak when settings page is autoupdated Change description for app history. Add contributor. quicklaunch shall not be recorded in the history Add setting to exclude quicklaunch from history, if it is present remove print statements If long press HW button do reset history. Set some variables to null if app history is disabled. add info re long press HW button resets history remove check for 'fastload.5.boot.js'. it would show up in the app history during development because the web ide said to load the uploaded app. it should not be needed in normal operations of the app for users. fewer checks for if useAppHistory is true, by first declaring some variables and then defining them inside an if-statement add recommendation of 'Fast Reset' app in readme
2023-03-25 12:56:53 +00:00
2022-11-27 18:29:28 +00:00
## Technical infos
This is still experimental but it uses the same mechanism as `.bootcde` does.
It checks the app to be loaded for widget use and stores the result of that and a hash of the js in a cache.
# Creator
[halemmerich](https://github.com/halemmerich)
fastload: Add app history functionality Add app history functionality add semicolons that were missing according to Web IDE fix intendtation in if statement fewer storage manipulations, tweak some logic comment regarding resetting history undo `const SETTINGS` -> `let settings` describe app history in readme In settings, don't allow app history and load to launcher to be active at the same time change `launchedApps` -> `appHistory` (somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected add to comment re loading `.bootcde` an extra time on init Revert "add to comment re loading `.bootcde` an extra time on init" This reverts commit b4aaccf35c820a1c7e7a22040c3958b4fc92e5c6. Revert "(somewhat unstable commit) tweaking logic around loading `.bootcde` at system initiation to make the history and resetting of history work as expected" This reverts commit 51dddfc30ac65572891efee1daf6099f7a3b19f4. tweak when settings page is autoupdated Change description for app history. Add contributor. quicklaunch shall not be recorded in the history Add setting to exclude quicklaunch from history, if it is present remove print statements If long press HW button do reset history. Set some variables to null if app history is disabled. add info re long press HW button resets history remove check for 'fastload.5.boot.js'. it would show up in the app history during development because the web ide said to load the uploaded app. it should not be needed in normal operations of the app for users. fewer checks for if useAppHistory is true, by first declaring some variables and then defining them inside an if-statement add recommendation of 'Fast Reset' app in readme
2023-03-25 12:56:53 +00:00
# Contributors
[thyttan](https://github.com/thyttan)