2
0
mirror of https://github.com/koreader/koreader synced 2024-11-11 19:11:14 +00:00
koreader/spec/unit
NiLuJe 37a01100b7
Various Wi-Fi QoL improvements (#6424)
* Revamped most actions that require an internet connection to a new/fixed backend that allows forwarding the initial action and running it automatically once connected. (i.e., it'll allow you to set "Action when Wi-Fi is off" to "turn_on", and whatch stuff connect and do what you wanted automatically without having to re-click anywhere instead of showing you a Wi-Fi prompt and then not doing anything without any other feedback).
* Speaking of, fixed the "turn_on" beforeWifi action to, well, actually work. It's no longer marked as experimental.
* Consistently use "Wi-Fi" everywhere.
* On Kobo/Cervantes/Sony, implemented a "Kill Wi-Fi connection when inactive" system that will automatically disconnect from Wi-Fi after sustained *network* inactivity (i.e., you can keep reading, it'll eventually turn off on its own). This should be smart and flexible enough not to murder Wi-Fi while you need it, while still not keeping it uselessly on and murdering your battery.
(i.e., enable that + turn Wi-Fi on when off and enjoy never having to bother about Wi-Fi ever again).
* Made sending `NetworkConnected` / `NetworkDisconnected` events consistent (they were only being sent... sometimes, which made relying on 'em somewhat problematic).
* restoreWifiAsync is now only run when really needed (i.e., we no longer stomp on an existing working connection just for the hell of it).
* We no longer attempt to kill a bogus non-existent Wi-Fi connection when going to suspend, we only do it when it's actually needed.
* Every method of enabling Wi-Fi will now properly tear down Wi-Fi on failure, instead of leaving it in an undefined state.
* Fixed an issue in the fancy crash screen on Kobo/reMarkable that could sometime lead to the log excerpt being missing.
* Worked-around a number of sneaky issues related to low-level Wi-Fi/DHCP/DNS handling on Kobo (see the lengthy comments [below](https://github.com/koreader/koreader/pull/6424#issuecomment-663881059) for details). Fix #6421 
Incidentally, this should also fix the inconsistencies experienced re: Wi-Fi behavior in Nickel when toggling between KOReader and Nickel (use NM/KFMon, and run a current FW for best results).
* For developers, this involves various cleanups around NetworkMgr and NetworkListener. Documentation is in-line, above the concerned functions.
2020-07-27 03:39:06 +02:00
..
autofrontlight_spec.lua Slightly less crappy Nightmode (#4871) 2019-04-08 23:05:08 +02:00
autosuspend_spec.lua [feat, Kobo] Autoshutdown (#5335) 2019-09-12 14:15:08 +02:00
background_runner_spec.lua rename runtimectl to document/canvascontext 2019-03-03 13:10:45 +01:00
background_task_plugin_spec.lua rename runtimectl to document/canvascontext 2019-03-03 13:10:45 +01:00
batterystat_spec.lua Battery stats plugin: fix and improvements (#5626) 2019-11-26 14:21:14 +01:00
benchmark.lua
cache_spec.lua
commonrequire.lua [spec] Better insulation (#4972) 2019-04-25 23:33:47 +02:00
dbg_spec.lua
defaults_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
depgraph_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
device_spec.lua Allow locking the gyro to the current screen mode (#6347) 2020-07-09 19:11:44 +02:00
docsettings_spec.lua Use fsync() for more robust setting files saving 2019-12-10 23:57:32 +01:00
document_registry_spec.lua Tests: make sure files are deleted (#6323) 2020-06-28 08:03:37 +02:00
document_spec.lua Update bundled fonts (#6242) 2020-06-08 16:36:06 +02:00
eink_optimization_spec.lua
evernote_plugin_main_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
filemanager_spec.lua Allow running shell scripts from the FileManager/Favorites (#5804) 2020-02-03 20:08:18 +01:00
filemanagerconverter_spec.lua
focusmanager_spec.lua
font_spec.lua
frontlight_spec.lua Slightly less crappy Nightmode (#4871) 2019-04-08 23:05:08 +02:00
gesturedetector_spec.lua Allow locking the gyro to the current screen mode (#6347) 2020-07-09 19:11:44 +02:00
gesturerange_spec.lua
gettext_spec.lua [i18n] GetText: ignore fuzzy strings (#5807) 2020-02-03 12:11:07 +01:00
hook_container_spec.lua
httpclient_spec.lua
imagewidget_spec.lua
input_spec.lua
inputtext_spec.lua
koptinterface_spec.lua
kosync_spec.lua [doc] Tag @todo, @fixme and @warning (#5244) 2019-08-23 19:53:53 +02:00
luadata_spec.lua
luasettings_spec.lua
menu_table_screen_color_spec.lua chore: add test for screen color toggle 2019-04-24 21:09:23 +02:00
menusorter_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
mock_time_spec.lua
mock_time.lua
network_manager_spec.lua [chore] Some Wi-Fi tweaks (#4564) 2019-02-08 22:29:11 +01:00
networksetting_spec.lua Various Wi-Fi QoL improvements (#6424) 2020-07-27 03:39:06 +02:00
nickel_conf_spec.lua [fix, Kobo] Don't crash trying to sync frontlight with Nickel. (#5361) 2019-09-11 18:11:24 +02:00
opds_spec.lua
optmath_spec.lua
quickstart_spec.lua
random_spec.lua
readerbookmark_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerdictionary_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerfooter_spec.lua Fake battery status in readerfooter_spec to succeed on devices with batteries (#6417) 2020-07-24 00:06:23 +02:00
readerhighlight_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerlink_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerpaging_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerrolling_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readersearch_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readertoc_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerui_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerview_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readhistory_spec.lua
screenshoter_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
size_spec.lua
spore_spec.lua
switch_plugin_spec.lua
textboxwidget_spec.lua TextBoxWidget: use xtext for text shaping 2019-11-16 18:41:14 +01:00
timeval_spec.lua [spec] Even more TimeVal coverage (#4674) 2019-02-28 17:31:39 +01:00
toggleswitch_spec.lua [spec] Add ToggleSwitch spec stub (#5450) 2019-10-06 21:33:48 +02:00
touch_probe_spec.lua
translator_spec.lua Fix translator, enable selected text translation 2018-12-17 15:19:25 +01:00
uimanager_bench.lua
uimanager_spec.lua [feat, Kobo] Autoshutdown (#5335) 2019-09-12 14:15:08 +02:00
util_spec.lua util.getFriendlySize(): add option to right align 2019-12-17 23:46:35 +01:00
version_spec.lua [spec] Version: slight refactor 2018-11-07 20:46:07 +01:00
wakeupmgr_spec.lua [feat, Kobo] Autoshutdown (#5335) 2019-09-12 14:15:08 +02:00
widget_inputcontainer_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
widget_menu_spec.lua [fix] Use orderedPairs in touch menu item table (#6404) 2020-07-20 20:58:39 +02:00
widget_progresswidget_spec.lua
wikipedia_spec.lua