99 Commits
Author SHA1 Message Date
Martín Fernández 17ce51cb39 Exporter: better logs, bump deprecation message (#13659)
* json: improve error messages
* update deprecation message: joplin
2025-05-05 18:22:01 +02:00
Martín Fernández e04e2a788f android: remove vendor specific keycodes from event_map (#13660)
Moved to https://github.com/koreader/koreader/wiki/Android-tips-and-tricks#customize-keys
2025-04-23 23:33:48 +02:00
Martín Fernández 23bcb530c9 Debian: misc changes (#13596)
- Updated changelog with proper version & date.
- Updated description (based on common metadata)
- Removed duplicated files that are condensed in /usr/share/doc/koreader

Misc:

- make `frontend/device/devicelistener.lua` non executable
- make `plugins/terminal.koplugin/profile` executable
2025-04-15 08:34:11 +02:00
Martín Fernández d6771ebe61 bump metadata translations (#13551) 2025-04-10 21:40:12 +02:00
Martín Fernández 142566f1b0 fix thirdparty exporters (#13531) 2025-04-08 18:23:52 +02:00
Martín Fernández b7b1717ed4 calibre: add timeout to connection message (#13513)
Fixes #13478
2025-04-06 09:28:52 +02:00
Martín Fernández fcb9200a12 avoid debian fonts (#13512)
Fixes #13509
2025-04-05 21:57:21 +02:00
Martín Fernández fbe2e452f1 Old plugins cleanup (#12932)
* Remove OBSOLETE_PLUGINS table.
* Remove old plugins.
* exporter: remove old settings migration
2025-03-18 20:28:25 +01:00
Martín Fernández d106336a79 bump luajit-launcher (#13432)
Handle links from browsers et al.

New Onyx Boox devices: Note Max, Livingstone 3, Galileo 2, Palma 2.
2025-03-18 20:27:41 +01:00
Martín Fernández a1ac782a2f calibre.koplugin: show message when attempting to connect via dispatcher (#13237)
closes #13193

Using an InfoMessage instead of a notification because another infomessage will follow with success/error.
2025-02-12 19:18:37 +01:00
Martín Fernández eea6c5465d Exporter: migrate to rapidjson (#13204) 2025-02-11 14:28:55 +01:00
Martín Fernández e503cc4b9c add provider module (#12641)
* implements a Provider singleton, to be used by thirdparty plugins
* exporter: support for thirdparty providers
* splits plugin loading into two steps: discovery and load
  1. get a list of all candidate plugins to load for the different paths
  2. sort providers before on the rest of them and try to load them
2024-12-18 19:40:22 +01:00
Martín Fernández a43c9ab535 [exporter] drop unsupported targets: flomo, memos (#12808) 2024-12-06 21:30:18 +01:00
Martín Fernández 162685df50 remove autofrontlight + backgroundrunner (#12809)
* remove autofrontlight
* remove background-runner

thirparty plugins that rely on the backgroundrunner no longer work.
2024-12-06 21:28:56 +01:00
Martín Fernández fd3727274b bump android-luajit-launcher (#12734)
Includes:

https://github.com/koreader/android-luajit-launcher/pull/526
https://github.com/koreader/android-luajit-launcher/pull/527
https://github.com/koreader/android-luajit-launcher/pull/528
https://github.com/koreader/android-luajit-launcher/pull/529
2024-11-13 14:55:40 +01:00
Martín Fernández 47ab7685aa calibre: remove json chooser UI leftover (#12715)
After #12714
2024-11-06 16:18:12 +01:00
Martín Fernández d10a52e88a calibre: always use custom fast parser (#12714)
Fixes #12610
2024-11-06 15:00:19 +01:00
Martín Fernández f34f9207e9 exporter: add deprecation notice for unmaintained targets (#12620) 2024-10-23 10:44:42 +02:00
Martín Fernández 2c03d50c49 add deprecation to autofrontlight (#12619) 2024-10-23 10:44:14 +02:00
Martín Fernández 04161c0e9e translated deprecation reasons (#12636)
Keep translated strings around on deprecation
2024-10-23 10:43:40 +02:00
Martín Fernández 28b72f081a update metadata translations for fdroid/flathub (#12581) 2024-10-06 17:37:58 +02:00
Martín Fernández e38320038b bump translations (#12193) 2024-07-20 19:18:52 +02:00
Martín Fernández bbe4ce466b bump android-luajit-launcher (#12147)
* prune old assets before uncompressing new ones.
* move Poke5 to OnyxAdb driver
2024-07-07 23:03:46 +02:00
Martín Fernández e299018286 bump base (#12140) 2024-07-06 15:10:15 +02:00
Martín Fernández 4f75e41636 exporter: fix remaining OOM (#12126) 2024-07-03 21:55:42 +02:00
Martín Fernández 0faccff9bc Fix for OTA updates w/ zsync (#12120)
Fixes #12115
2024-06-29 08:06:46 +02:00
Martín Fernández 388a27336d android: import files if path cannot be guessed (#12121)
closes #9787
2024-06-29 07:57:45 +02:00
Martín Fernández 617618d587 Add Device:otaModel() (#12014)
Devices with a single target might want to specify it in `Device.ota_model`
Devices with multiple targets want to override the function or to specify `ota_model` variants for each target.
2024-06-25 21:35:38 +02:00
Martín Fernández 79c13bee0c Calibre: Metadata parser improvements (#11922)
* Added a safe pure-Lua SAX JSON parser (via LunaJSON).
* Updated RapidJSON.
* Also implemented a calibre-specific SAX parser in Lua-RapidJSON, and use it by default instead of the full RapidJSON one.
* Raised the file-size threshold to switch between the fast & safe parsers to 50MB.
* Added an UI option to switch between the three parsers.
2024-06-06 01:06:46 +02:00
Martín Fernández 3fb2f18041 update tool to generate metadata translations (#11869)
* updated:

    - strings to translate
    - english metadata

* added:

    - appstream: metadata generator
    - appstream: translation of screenshot captions, if they're present.
    - appstream: link to gh release notes
2024-05-26 20:10:12 +02:00
Martín Fernández 36d2e3cf74 Add README.md to Linux package (#11859) 2024-05-20 18:12:54 +02:00
Martín Fernández 1eb2095ead Desktop: add all supported mimetypes. (#11847)
Change the comment to "ebook reader"
2024-05-19 22:27:36 +02:00
Martín Fernández 89a6ae28a6 appstream: update metadata (#11851)
proper requires, supports and recommends
all supported mimetypes
add branding colors
2024-05-19 22:26:58 +02:00
Martín Fernández 635d243152 debian: update metadata (#11854)
Slightly modified to avoid: E: koreader: description-starts-with-package-name
2024-05-19 21:51:03 +02:00
Martín Fernández ba8891082c fix after #11833 (#11849) 2024-05-18 17:47:28 +02:00
Martín Fernández 7bded465eb SDL: add flatpak flavor (#11833)
* ship metadata with generic linux binaries
* append release version & data at build time
2024-05-18 13:21:59 +02:00
Martín Fernández d801af6d41 bump metadata translations (#11842)
updating metadata for 50 languages
short_description.txt: 8 new | 18 updated | 24 not translated
full_description.txt: 10 new | 15 updated | 25 not translated
2024-05-17 22:25:32 +02:00
Martín Fernández 79be8a10b1 appimage: keep metadata in sync with flathub (#11819)
Because it is actually pulled from here :p
2024-05-14 14:44:11 +02:00
Martín Fernández 2c6808ba78 Add generic Linux package (#9351)
Relates to https://github.com/koreader/koreader/issues/9268
Requires https://github.com/koreader/koreader-base/pull/1504

Usage: 
- `kodev release linux` for native package (same arch as host)
- `LINUX_ARCH=arm release linux` for armhf on a x86_64 host.
- `LINUX_ARCH=arm64 release linux` for arm64 on a x86_64 host.

It produces a `koreader-linux-$ARCH-$VERSION.tar.xz` archive, where $ARCH follows `uname -m` convention {x86_64, armv7l, aarch64}

To generate the debian package from the generic archive the following command is required

`./platform/linux/do_debian_package.sh path_to.tar.xz`
2024-05-13 12:11:11 +02:00
Martín Fernández 5d2782ddfe bump luajit-launcher (#11554)
Add Linfiny eNote / Avalue ENT-13T1 / QuirkLogic Papyr
2024-03-15 19:36:34 +01:00
Martín Fernández 3638adc841 appimage: get full path before changing to assets dir (#11552) 2024-03-15 17:43:00 +01:00
Martín Fernández 0d40d9c99d bump luajit-launcher: more devices (#10732) 2023-07-23 18:46:27 +02:00
Martín Fernández 5336e2f11d [ota]: deprecation check & notice (#10639) 2023-07-04 22:58:40 +02:00
Martín Fernández 34f92bc196 bump android-luajit-launcher: new devices + versionCode (#10042)
Onyx Boox Note X2, thanks to @hghwng
Warmth light support for Tolino Shine3, thanks to @Nepochal

Appends an integer to versionCode, which is used to identify the android ABI. Fixes #9687
2023-01-22 19:52:01 +01:00
Martín Fernández 2e5284051a bump android-luajit-launcher: new devices (#9880)
meebook p6
onyx nova air 2
onyx tab ultra
2022-12-06 16:39:08 +01:00
Martín Fernández ee94a575f1 calibre: fix attempt to index path_entry (#9837)
Fixes #9836
2022-11-27 12:35:18 +01:00
Martín Fernández 5e1932bf38 bump android-luajit-launcher: a bunch of devices (#9763)
- crema carta g
- onyx leaf 2
- onyx lomonosov
- onyx montecristo 3
- onyx nova pro
- ridi paper 3
- fix: onyx poke 3 lights

https://github.com/koreader/koreader/issues/8482
2022-11-08 12:32:11 +01:00
Martín Fernández 9473c70dcc exporter: prevent exporting documents when they're not open (#9753)
Fixes #9740

thanks to @hius07 for the hint!
2022-11-06 11:01:59 +01:00
Martín Fernández 8b8d79275c calibre metadata: prevent duplicates (#9725)
Fixes #9722
2022-11-01 19:21:00 +01:00
Martín Fernández 3530aef891 exporter.koplugin: send the right mimetype when sharing text. (#9194)
Add an option to send title too. Currently unused.
2022-10-26 11:18:27 +02:00
Martín Fernández 6f44a29b88 add tool to update F-Droid metadata based on weblate translations (#9090) 2022-08-03 16:18:47 +02:00
Martín Fernández cee84cc65c bump android-luajit-launcher (#9386)
Reverts iReader r6800
Fixes Note Air 2 definition
Adds Onyx Poke 4
Adds epd driver for the Sony DPT-RP1

Adds a new light driver for the Onyx Nova3 color. Thanks to @ilyats
2022-07-31 09:02:57 +02:00
Martín Fernández 30e499d4a9 [CI] Downgrade macOS Github Action to macOS 10.15 (#9279)
Both BigSur and Monterey produce a broken `crengine.dylib`.

Only github actions are affected as local builds seem to work just fine: https://github.com/koreader/koreader/issues/8686#issuecomment-1166656492
2022-07-04 12:17:33 +02:00
Martín Fernández b70043b981 bump android-luajit-launcher (#9290)
Related to https://github.com/koreader/koreader/issues/8482

Changes:

- New light driver for Onyx devices that should work on modern ones. Thanks to @bb010g!
- Onyx Nova 2 migrated to the new driver.

Added devices:

- iReader r6800
- Onyx Magicbook
- Onyx Note Air 2
- Onyx Nova Air C
- Sony DPT-CP1
2022-07-03 21:52:08 +02:00
Martín Fernández 4f7ed7e706 SDL: set WM_CLASS on Wayland/X11 (#9280) 2022-07-02 21:12:05 +02:00
Martín Fernández b7a27a3db3 Fullscreen refactor (#9237)
Commonize fullscreen code across different devices.

Add fullscreen toggle on SDL desktop targets. 
Expose the toggle to the dispatcher and map it to F11.

Hide touchmenu when resizing.
2022-06-24 23:19:38 +02:00
Martín Fernández 2213e6410f [plugin] Exporter: fix crash on joplin when token is invalid (#9203)
https://github.com/koreader/koreader/issues/9197#issuecomment-1153129147
2022-06-12 13:12:26 +02:00
Martín Fernández 49c02790f6 fix: attempt to call local start_time (number) (#9086)
Follow up https://github.com/koreader/koreader/pull/8999
2022-05-09 08:27:58 +02:00
Martín Fernández 4925cd7c97 Bump android-luajit-launcher (#9014)
Support for the following Onyx devices:

Faust 3
Leaf
Note Pro
Poke 3

#8482
2022-04-17 13:54:20 +02:00
Martín Fernández f0197423ad remove send2ebook plugin (#8747) 2022-01-30 22:01:51 +01:00
Martín Fernández 4423082949 Colordict: use generic send intent. (#8721)
Its custom intent was borked on last update and doesn't work anymore.

Fixes https://github.com/koreader/koreader/issues/8718
2022-01-24 18:04:34 +01:00
Martín Fernández d67d92bcab android screen: decouple epd and color properties (#8717)
also included new devices: 

- added onyx nova 3
- fixed onyx note 5
2022-01-24 16:01:33 +01:00
Martín Fernández 963970be8c exporter plugin: fix history dir (#8685)
for platforms where history dir don't match installation path.

Fixes #8675
2022-01-19 17:12:53 +01:00
Martín Fernández 188c7d289b bump android-luajit-launcher (#8647)
New e-ink devices: Onyx Max, Onyx Note 3 & Note 5
Added: show current support in compatibility test.
Fixed: title in light dialog
2022-01-11 17:19:33 +01:00
Martín Fernández d92e9c716f bump android-luajit-launcher (#8593)
* revert https://github.com/koreader/android-luajit-launcher/pull/342 
* store apks in private dir and remove them after update
2021-12-26 17:15:13 +01:00
Martín Fernández 873ceac589 bump android-luajit-launcher (#8562)
New lights driver for Onyx, using reflection instead of directly write to sysfs nodes, written by @bezmi

Support for new devices:

Onyx Nova Air
Onyx Nova 3 Color
Onyx Darwin 7
2021-12-23 20:20:44 +01:00
Martín Fernández 3427c207b0 android: bump test activity (#8483)
Now users can test light drivers too. See https://github.com/koreader/android-luajit-launcher/pull/339#issuecomment-977822717
2021-11-25 22:04:09 +01:00
Martín Fernández 1bba05ff41 Bump android-luajit-launcher (#8404)
Fix #8355
2021-11-03 08:39:40 +01:00
Martín Fernández cf1248393c Readme: Tame down expectations (#8177)
Remove evernote & zsync mentions
also removing `online` as `over-the-air` is self-explanatory :)
2021-09-04 11:54:30 +02:00
Martín Fernández 903646debe [plugin] Exporter plugin without evernote (#7983) 2021-08-30 09:11:23 +02:00
Martín Fernández 2222f25422 bump luajit-launcher (#8071) 2021-08-14 16:14:43 +02:00
Martín Fernández 83554c6180 add doctype to template (#8040) 2021-08-01 21:54:12 +02:00
Martín Fernández 990b6768f4 disable battery level on desktop Linux (#8026)
This also include ChromeOS laptops (chromebooks) since the power sysfs attributes don't exist in linux containers.
2021-07-25 23:29:30 +02:00
Martín Fernández ef5095f806 bump luajit-launcher (#8025)
Namely the Boyue P78, a JDRead, the Fidibook and a new, mysterious, Boyue Lemon smile

Related to #4551
2021-07-25 18:27:33 +02:00
Martín Fernández 38a2a46969 Flag send2ebook as deprecated (#7967)
See https://github.com/koreader/koreader/issues/7955#issuecomment-877625098
2021-07-18 20:20:06 +02:00
Martín Fernández 07bf2a5719 bump luajit-launcher (#7925)
Fixes sdcv on Android 4.0 - 4.4

Fixes https://github.com/koreader/koreader/issues/7920
2021-07-02 16:11:34 +02:00
Martín Fernández e5610a2bcd bump base + android (#7909) 2021-06-30 06:54:23 +02:00
Martín Fernández ee92ca68e8 workaround for Onyx Poke2 nonsense (#7872)
Requires koreader/android-luajit-launcher#320

Also the luajit-launcher bump adds support for Likebook P78 and sanitizes clipboard text.
2021-06-20 15:42:00 +02:00
Martín Fernández b2ee95be63 fix storage permissions on android 11+ (#7846)
* bump luajit-launcher
2021-06-15 01:35:50 +02:00
Martín Fernández 2408c17175 bump luajit-launcher (#7842) 2021-06-14 08:45:00 +02:00
Martín Fernández 9f097da4f0 Bump android backend (#7813)
* Bumps the target Sdk to Android 11 (API30)
* Add a crash handler
2021-06-07 17:13:34 +02:00
Martín Fernández b8d658b922 android: minor fixes (#7753)
* Save settings before installing a new APK & after resume. 
* Move Resume/Suspend events to Resume/Pause callbacks
2021-05-26 22:26:43 +02:00
Martín Fernández dc0d759148 don't log thirdparty app list if they're platform defaults (#7760) 2021-05-25 22:26:36 +02:00
Martín FernándezandFrans de Jonge fdb0539aae Bug report changes (#7709)
* android: dump logcat to file
* Update .github/ISSUE_TEMPLATE/bug_report.md

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2021-05-23 01:20:13 +02:00
Martín Fernández c1892d2619 [chore] Move SDL check to the end of Device's probe function (#7682)
To avoid a few log lines on all platforms:

```
ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
```
2021-05-14 13:31:24 +02:00
Martín Fernández 939fcf7f0e android: avoid downloading the APK again if there's one download in progress + fix signature error (#7657) 2021-05-10 20:36:22 +02:00
Martín Fernández 247166b3df android: keep bundled version in a dedicated text file (#7649) 2021-05-10 13:12:18 +02:00
Martín Fernández d303fdf694 android: Prompt for install updates when they're downloaded (#7632) 2021-05-08 23:02:35 +02:00
Martín Fernández 53234fcdc1 add hasSystemFonts device property (#7535)
Add system + user paths to the ReMarkable (has normal linux paths)
2021-04-19 09:04:31 +02:00
Martín Fernández eb57c4e0da Add a couple of modern android dicts (#7359)
https://play.google.com/store/apps/details?id=gaurav.lookuppro and its free version.

From https://www.mobileread.com/forums/showpost.php?p=4097548&postcount=8
2021-03-06 19:32:01 +01:00
Martín Fernández 5c9e649804 move opds to plugin (#7237) 2021-02-06 19:09:31 +01:00
Martín Fernández 4a89c93290 Remarkable1 wifi (#7216)
* add wifi support to Rm1
* remarkable: common suspend for all models
2021-02-02 03:19:37 +01:00
Martín Fernández a5768c7411 calibre plugin: handle huge metadata files (#7159)
metadata files > 30MB will be parsed manually to prevent OOM
2021-01-24 13:47:52 +01:00
Martín Fernández 9f4e7456cf bump base (#7181) 2021-01-21 22:43:29 +01:00
Martín Fernández f52fffd467 Mark calibrecompanion plugin as obsolete (#7147) 2021-01-15 20:31:44 +01:00
Martín Fernández 5ec0b049d9 Add deprecation messages to plugins (#7101)
And deprecate Goodreads plugin.
2021-01-07 23:15:32 +01:00
Martín Fernández fbf60f96e4 bump base (#7077) 2020-12-29 09:33:14 +01:00
Martín Fernández 9db4e29bb1 bump sdcv for fast synonym search (#7068) 2020-12-27 15:16:36 +01:00
Martín Fernández cd9b3e10fd calibre: do not attempt to stop the socket if nil (#7067) 2020-12-27 14:10:06 +01:00