Commit Graph

417 Commits (master)

Author SHA1 Message Date
Frans de Jonge 6e52e99b5b [fix] verbose_print deprecated by gtest 7 years ago
Frans de Jonge 53c0756def CircleCI: finishing touches (#3340)
* junit test results; unfortunately this seems to conflict with the verbose out

* fix deps cache: two files can change independently

* verbose print obsoleted by gtest in upsream busted
7 years ago
Frans de Jonge 868860a62e CircleCI parallelization
* Enable parallelism in .circleci/config.yml
* Add BUSTED_SPEC_FILE to Makefile testfront
* Use it in .ci/test.sh with xargs for test parallelization

NB This is the dumb method of improving test time.
Ideally we want a workflow fan-in/fan-out approach.
7 years ago
Huang Xin a4e1a3ba5e reflect changes in koreader/android-luajit-launcher#62 (#3254) 7 years ago
Qingping Hou b33c9268d2 build(fix): fail release command by default if make po failed 7 years ago
Qingping Hou 1461574894 Support configurable extra plugin lookup path (#2693)
* plugin loader(feat): support loading plugins from user defined directories
Extra plugin lookup paths can be set in global reader setting via key
`extra_plugin_paths`. Value of the key can either be a string or an array
of strings.
* build(fix): also purge non-exist plugins on build
* plugin: migrate debug plugin to menu sorter
7 years ago
Qingping Hou 2aa9d5d64e test: add unit tests for docsettings 7 years ago
Qingping Hou 0871100367 minor(fix): update koreader-misc path 7 years ago
Qingping Hou dae4a5a413 refactor: move bootstrap code into setupkoenv.lua
add ffi.load patch
add kodev prompt command
8 years ago
Qingping Hou 854043e18d chore: fix all luacheck errors for plugins 8 years ago
Qingping Hou 816d0a551a kobo: handle charging/uncharging event 8 years ago
Qingping Hou d0c6ea1308 build(chore): use DIST to label kindle artifacts 8 years ago
Qingping Hou 3d79d44381 build: fix android and pocketbook builds 8 years ago
Qingping Hou 8ff9a916da kodev(minor): style clean up & fixes 8 years ago
Qingping Hou e41e489528 kodev(fix): update plugins before tests 8 years ago
Hzj_jie da2c57f93a Automatically connect WIFI after Kobo has been resumed (#2215)
* Add bash scripts to control WIFI / IP, so we can share them with frontend/device/kobo/device.lua.

* add test cases
8 years ago
chrox 001433e6bc various test/coverage optimization 8 years ago
chrox 9ab005a1d3 fix unit test of readerlink and readerpaging
and have more confidence with the unit testing framework.

Now `make testfront` won't retry on failure and testing files are
ordered in each run so that it's possible to reproduce testing failure.

And this patch also fix flush settings not working before suspend issue:
at some point the `FlushSettings` event is sent to `UIManager` instead
of `ReaderUI`, but `UIManager` only delegated events to active widgets
and `ReaderUI` is actually not an active widgets thus will miss the event.

This patch also add a verbose debug mode with "-v" as a switch to turn
on this mode. With verbose mode on, event handling will be logged.
8 years ago
chrox 9afad43a3e refactoring utils to tools as discussed in #2197 8 years ago
chrox 41f2fe85b7 fix #2119 by updating libSDL2.so and fix Evernote Plugin 8 years ago
chrox df65d2972a experimental port to Mac OSX
Currently it can open cre-based docs and Djvu docs
It still has some problems with PDF docs and the touch input.
8 years ago
Qingping Hou 31206cb80f ci: fix coverage report 8 years ago
Qingping Hou 357477b2be test: disable auto insulate 8 years ago
Qingping Hou 144fd170f1 uimanager(refactor): replace autosuspend if check with noop 8 years ago
chrox dd9dde510c don't update git-rev file in android ota package 8 years ago
chrox 3a9cb659d1 add OTA update on Android 8 years ago
Qingping Hou 70266c3b35 force set MACHINE from toolchain dumpmachine
Looks like leaving it out as optional variable is more like to cause issue...
ref: https://github.com/koreader/koreader/issues/1832#issuecomment-185870105
8 years ago
Qingping Hou 8f4fae7a09 minore: more static check fixes 8 years ago
Qingping Hou e2096ed8d9 doc: add documentation build infrastructure 8 years ago
Qingping Hou 73a048e320 build: set dependency for .busted 8 years ago
Qingping Hou b480145134 build: add kodev script 8 years ago
Qingping Hou 0e8eb3320c minor(build): replace comment with echo 8 years ago
Qingping Hou cdbc8e594d build: add dist-clean target 8 years ago
Qingping Hou 83b35fc99a minor: create git-rev inside install dir 8 years ago
Qingping Hou c06209265a build: use install instead of mkdir -p 8 years ago
chrox a284ca147f l10n for modules in utils 9 years ago
chrox 9654e9ce6c fix #1608 with touch coordinates detection
Some kobo touch devices have X Y coordinates in touch events swapped.
This patch provides a GUI to probe if the device needs to swap the XY.
The Kobo Touch users will be directed to tap on the upper right corner
of the screen and the probe will check if the X value is smaller than
the Y value in the tap event.
9 years ago
chrox 970f9a7801 verbose coverage test 9 years ago
chrox 429eeed372 verbose unit test log so that we have a clue when there is segfault 9 years ago
chrox 5bab00ff9b add apparmor.openstore file for openstore submission 9 years ago
chrox 8c0ca1c5e5 comments for the targz file extension 9 years ago
chrox a60544b1ad Koreader Ubuntu-touch port
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
9 years ago
chrox dce9e50bde don't use tar.gz file extension for OTA
because ISP may cache gz files and confuse zsync protocol
When I wget the gz file it's redirected to a ISP cached file and zsync
will fail.
```
~ $ wget http://vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
--2015-09-26 10:55:54--
http://vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
Resolving vislab.bjmu.edu.cn (vislab.bjmu.edu.cn)... 202.112.180.24
Connecting to vislab.bjmu.edu.cn
(vislab.bjmu.edu.cn)|202.112.180.24|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://202.112.191.194/file/gz/2cd4eae05d961f8afe9ad99fb20288d4e735fbf4/vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
[following]
--2015-09-26 10:55:55--
http://202.112.191.194/file/gz/2cd4eae05d961f8afe9ad99fb20288d4e735fbf4/vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
```
9 years ago
NiLuJe 89e8e4297c DroidFallbackFull went buh-bye, don't break the recipe by failing so near the
end ;).
9 years ago
Frans de Jonge 21c51a9162 Travis update
The new container-based format doesn't do sudo anymore, so there are some extensive changes.

It does, however, allow cache.

I also took the opportunity to switch to a newer busted. The root element for that now needs to be a table.
9 years ago
chrox 34ea9ac574 add datastorage module to handle data directory on various platform
On kindle, kobo and pocketbook the data directory is the current
running directory but on Android the app is installed in system
defined location and users may have no access to that location.
The same circumstances should be true for the upcoming Koreader for
Ubuntu touch, so the data directory (in which tessdata, dictionaries,
global settings, persistant defaults and probably history data are
stored) could be stored in another place.
9 years ago
NiLuJe 3fdd90cf3b Fix a few Droid font paths 9 years ago
Qingping Hou e695a3c30d build: add luacheck for static analysis 9 years ago
chrox 2f2611af42 fix Travis test 9 years ago
chrox 0191dc6530 revert busted to v1.10.0 to avoid segmentation fault in testing 9 years ago
chrox 4053b5adac fix unit test with latest busted 9 years ago
chrox 4a23f05cc0 don't update extensions.cfg in OTA
since users may have mantained their own extensions.cfg file

The extensions.cfg file is still in the release package and users
could manually copy the `system` directory to the USB root if they
want Koreader to handle all their documents.
9 years ago
chrox c11a2bbf1e fix ota update for PocketBook 9 years ago
chrox 73e02735e5 add missing pocketbook-toolchain target in Makefile 9 years ago
chrox 4b6d2e155c fix wrong exclusion of unused files when building pbupdate 9 years ago
chrox 5c4651a3d9 auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook 9 years ago
chrox 1cba495fe0 add PocketBook port of Koreader 9 years ago
Qingping Hou 70537f83ab build: supress make clean output 10 years ago
Qingping Hou c1c3bcb3fe fix: various fixes for kindle dxg 10 years ago
chrox f1f8d8dc4f make coverage target for code coverage for the unit test
so that we can easily find which module needs unit test

In order to run 'make coverage' `luacov` need to be installed
with 'sudo luarocks install luacov'.
10 years ago
chrox fc5a248308 rename submodule koreader-base to base 10 years ago
chrox 2d3c502948 move platform dependent files into 'platform' directory 10 years ago
chrox a4f870753e Koreader win32 port 10 years ago
chrox 87d9d21079 make templates dir since it's removed together with the pot file 10 years ago
chrox 1817a9190f remove template pot and translated po files in the main repo
aternatively the resource file(pot file) in Transifex is updated
with `make pot` and the translated files(po files) is updated with
`make po`. `make pot po` will be handled automatically on the nightly
build machine.
10 years ago
chrox f89dfe0b06 fix making of local package in OTA for Kobo
by excluding kobo launching files that may be removed after installation
10 years ago
chrox dc911c659e adapt DroidSansFallback file name 10 years ago
pazos a568995778 remove wifi.sh from Makefile 10 years ago
NiLuJe 30f733f9d9 Fix utter breakage of the Kindle startup script.
I forgot to update the Makefile when I renamed the helper include...
Ooops. >_<"
10 years ago
NiLuJe 477d661e8f Add visual feedback to OTA updates on Kindle
Dry-coded
10 years ago
chrox d9f5edf54a add 'Check update' menu and OTA update functionality 10 years ago
pazos 37d6239e20 Add wifi toggle for kobos 10 years ago
NiLuJe 2f47ae3d1b Add an installer/updater to the KUAL ext.
And also play with some CRe settings, for kicks.
10 years ago
NiLuJe 526a4f8ec1 Don't bundle launchpad on non-legacy Kindles 10 years ago
pazos 57266daec5 Fix back to nickel in 3.4.1 10 years ago
chrox 5df6768c77 fix make koboupdate since there is no bins in kobo directory now 10 years ago
pazos b690d6aa95 standarize script names for kobos 10 years ago
Qingping Hou 0a40534688 fix(build): add git submodule sync to fetchthirdpary 10 years ago
chrox 650879ec5c now make po should be issued manually 10 years ago
Qingping Hou f6a9c694dc refactor: update reader to use new launcher 10 years ago
chrox 54277974d2 make Android target 10 years ago
chrox f507fd3709 various Android fix
now the android build has nearly the same features as the
Kindle/Kobo build. It's time for Android nightly build?
10 years ago
chrox 0a4a092d12 initial commit for android port of koreader
This PR just shows how far we have went to
the android port. There is still a few steps before a running
android port.
10 years ago
chrox 599c02ffcf add android build target 10 years ago
Hans-Werner Hilse 6acdf35239 don't build .mo files, we read .po now 10 years ago
chrox 71eda7a0ca busted test for frontend 10 years ago
chrox 2a80c8f24a rename customupdate to kindleupdate in Makefile 10 years ago
chrox aa13e7ab4f reorganize launching scripts for both kindle and kobo
so that platform specific files are collected into platform
directory respectively
10 years ago
Huang Xin 4156b2edd0 Merge pull request #559 from Markismus/master
Return to Home screen for Kobo devices Mini, Touch and Aura
10 years ago
Markismus bd4b5a11ad Added Kobo files to Makefile
I can't test on my laptop. Would these changes be enough?
10 years ago
chrox 842439cb62 update pot file for plugins 10 years ago
chrox 5c1d5c3314 add Evernote plugin to export highlights and notes
The "My Clipping" file that storing highlights and notes for Kindle
native readers could also be parsed and exported. The parser is
implemented in `evernote.koplugin/clip.lua`.

Parsed highlights and notes in one book will be packed and rendered
into html node with a slt2 template `note.tpl` that complies with
evernote markup language(ENML).

Finally the evernote client will create or update note entries and
push them to Evernote cloud.
10 years ago
chrox 6bee469ea0 add make test in Makefile and README file 10 years ago
chrox 315abd92d3 strip unnecessary parts in update packages 10 years ago
Qingping Hou 93d04839fc support for building against custom koreader-base repo 10 years ago
chrox 67f627f2fb update po file from transifex automatically on each build 11 years ago
Giorgio Micotti 7d8f13ae00 Safer installing process for Kobos 11 years ago
Giorgio Micotti afd4a2d920 Merge branch 'master' of https://github.com/koreader/koreader 11 years ago
chrox 9fd9bb17a9 update mupdf and k2pdfopt to the latest version 11 years ago
Giorgio Micotti be1a637c3b DO NOT MERGE initial suspend support for Kobo 11 years ago
HW 62a2c6738d consolidated Makefile, adapted to dynlib approach 11 years ago
HW f2e0eb3dfd interim merge of latest upstream 11 years ago
Giorgio Micotti d9b210c315 Changed "koboupdate" to be more reliable as an installation mean. 11 years ago
HW 5eeb4380e4 small fixes 11 years ago
HW e862820638 switch to new dynamic loading library build
separate output directories are created per-architecture
11 years ago
Giorgio Micotti 1201b64d18 Add an option "make koboupdate" 11 years ago
chrox 466605e8f7 add hyphenation dictionaries in customupdate 11 years ago
Giorgio Micotti c91e3834bb Added detection of single kobo models. Also a script to launch koreader is included and the related Makefile changes. 11 years ago
chrox 43240a7d98 add defaults.lua in emu directory 11 years ago
Qingping Hou 84801e6f51 add defaults.lua in customupdate 11 years ago
Qingping Hou 561c7902ca move defaults.lua to root directory 11 years ago
{Qingping,Dave} Hou d0e23dd90e Merge pull request #136 from houqp/houqp-master
update koreader-base
11 years ago
Qingping Hou 38bb360f2d link ev_replay to emu dir 11 years ago
chrox 9ab9af20bf rm additional fonts in resources dir in customupdate 11 years ago
chrox be7794eb06 add 'make fonts' command that merges additional fonts in resources into fonts pool 11 years ago
chrox 1a23787e26 add dict and tessdata directory in dist data directory 11 years ago
chrox db56b52bed add missing sdcv 11 years ago
chrox e71aa93a97 add sdcv in customupdate 11 years ago
chrox 936dfc6fd1 add text highlight in both reflow and non-reflow mode 11 years ago
Qingping Hou 3e6005b3af replace i18n with MO_DIR 11 years ago
chrox b7e0cb2c80 Makefile fix
i. add make mo in rule of make all
ii. make make customupdate depend on make all
iii. copy i18n in current directory
11 years ago
Qingping Hou d4cec9956d link i18n dir in emu 11 years ago
Qingping Hou 9f267ef5fd add i18n to bootstrapemu target 11 years ago
Qingping Hou 95b2442a49 add target to generate mo files 11 years ago
Qingping Hou 4747cd6a8a add gettext related target to Makefile 11 years ago
Qingping Hou 8968efeb72 copy i18n in customupdate 11 years ago
Qingping Hou 4ccf5a57e3 a little bit code cleanup 11 years ago
Qingping Hou 0285475bac make history directory in bootstrapemu target 11 years ago
chrox 1d775c27a6 rename kpdf.sh to koreader.shin in customupdate 11 years ago
Qingping Hou b096af45a2 define KOR_BASE at the top of Makefile 11 years ago
Qingping Hou c3fb3fb7db fix typo 11 years ago
Qingping Hou c70520dedf add KOR_BASE variable in Makefile 11 years ago
Qingping Hou 221bc10404 add bootstrapemu target and update README 11 years ago
Qingping Hou 23435317ce add emulation bootstrap target in makefile & update README 11 years ago
Qingping Hou 9546c5503b update reader name in customupdate to koreader 11 years ago
Qingping Hou 7d60a4a44f generate git-rev on package build 11 years ago
HW fb317810fa Some adaptions needed after refactoring 11 years ago
HW 6a92cb99e8 Step #3 factoring out the frontend code
This is a first try, but some work is still needed to bring the
build system back into shape.
11 years ago
Qingping Hou 8d2e5128b6 remove kite in favor of KUAL 11 years ago
chrox 6e858a980b add extensions directory in customupdate 11 years ago
chrox 0706cd719b add libk2pdfopt as a prerequisite lib for kpdfview object 12 years ago
Qingping Hou 3838d8f890 build crengine as shared library
* upstream project removed CMakeLists.txt in crengine dir now, so I
added our own in kpvcrlib/CMakeLists.txt

* fix segfault bug in lvimg.cpp by removing JCONFIG_INCLUDED definition
12 years ago
Tigran Aivazian 667d6b654f Don't use DroidSansFallbackFull.ttf fonts
Use DroidSansFallback.ttf rather than DroidSansFallbackFull.ttf because
that is what is used for rendering cjk glyphs by mupdf (see mupdf.patch).

Conflicts:
	font.lua
12 years ago
Tigran Aivazian 42a4c8042b Package defaults.lua and symlink libluajit-5.1.so
1. The file defaults.lua needs to be mentioned in LUA_FILES in order to
be packaged by "make customupdate".
2. The problem with the linker not finding libluajit-5.1.so.2 can be
fixed without specifying the shared library in the list of objects (and
static libraries), simply by making a symbolic link. No need to copy a
duplicate.

Conflicts:

	Makefile
12 years ago
HW e129307c40 Fixed initialization/update of mupdf's submodules, build "release" version of build helpers 12 years ago
Qingping Hou a123e5157f remove comments 12 years ago
HW 503fefe7ec moved luajit-2.0 and mupdf to latest version - now really
Conflicts:

	Makefile
12 years ago
HW 77866a4bd4 disabled patching of libjpeg, restructured everything for mupdf subrepos
Conflicts:

	Makefile
12 years ago
HW e26ae14bed updated mupdf to latest version
Conflicts:

	Makefile
12 years ago
Tigran Aivazian b3b3d04c98 Create history and clipboard dirs for the emulator 12 years ago