Commit Graph

232 Commits (master)

Author SHA1 Message Date
Frans de Jonge abaa699080 Bump android-luajit-launcher
* Sync LuaJIT with koreader-base at v2.1.0-beta2 https://github.com/koreader/android-luajit-launcher/pull/58
7 years ago
Frans de Jonge fd7382514e Bump luajit-launcher
Fixes #3038

Also includes "Fullscreen status bar height" https://github.com/koreader/android-luajit-launcher/pull/56
7 years ago
Frans de Jonge f95c52f680 Bump luajit-launcher
Fixes #3006
7 years ago
Frans de Jonge 6870bc2996 Bump luajit-launcher
Includes
* Android fullscreen mode (fa9dd61)
* add lib file name without suffix as fallback (c139b54)
7 years ago
Frans de Jonge e8c01274f4 Travis: enforce shellscript coding style
* enormous coding style update

* update luajit-launcher

All changes are formatting only except for:

* new more correct pushd/popd style
	* keeps useful indentation
	* prevents execution of commands when pushd failed (cf. https://github.com/koalaman/shellcheck/wiki/SC2164 and https://github.com/koalaman/shellcheck/issues/863)

```
pushd some_dir && {
    command1
    command2
} || exit
popd
```
7 years ago
Frans de Jonge e5bcdee85e Add ShellCheck and shfmt shell code quality analysis (#2712)
* Add ShellCheck and shfmt shell code quality analysis

* kobo/koreader.sh: remove useless $PREFIX

* kobo/koreader.sh: fix rotation issue caused by #2731

* Travis: speed up (caching Luarocks should shave a minute off install process)
7 years ago
Qingping Hou 3d79d44381 build: fix android and pocketbook builds 8 years ago
Qingping Hou cc4e510194 bump koreader base for android build tweaks 8 years ago
chrox 687b6df4f2 add support of screen brightness settings for Android
and use standrad Android API to query battery level and charging status
This should fix #2025, fix #1759 and fix #1415.
8 years ago
chrox f3e0d44cc4 disable jit on some modules on android
to make koreader on Android  more stable

and with these opt params:
```
require("jit.opt").start("sizemcode=64","maxmcode=64", "hotloop=10000")
```

The strategy here is that we only use precious mcode memory (jitting)
on deep loops like the several blitting methods in blitbuffer.lua and
the pixel-copying methods in mupdf.lua. So that a small amount of mcode
memory (64KB) allocated when koreader is launched in the android.lua
is enough for the program and it won't need to jit other parts of lua
code and thus won't allocate mcode memory any more which by our
observation will be harder and harder as we run koreader.
8 years ago
Qingping Hou ff273158af bump luajit-launcher 8 years ago
Qingping Hou 8621720d19 bump base and luajitlauncher 8 years ago
Qingping Hou 55fa046d49 android: set android log tag to KOReader 8 years ago
chrox 3a9cb659d1 add OTA update on Android 8 years ago
Qingping Hou 427abd1cf6 bump base for android fix 8 years ago
Qingping Hou 65455cee23 bump luajit-launcher 8 years ago
chrox f3dbf9ce2e move mmap workaround to android-luajit-launcher 9 years ago
chrox 3df4832265 fix mcode allocation failure on Android
This workaround makes a reservation of mmap slots that are hopefully
near the address of `mcode_alloc_at`. Then it unmaps those slots and
lets luajit allocate a large slot for mcode.
9 years ago
chrox cf56f6a6e5 update luajit repo url 9 years ago
chrox b65b70fec6 update base and luajit-launcher 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
chrox 99af63c545 add koreader app icon for android finally 9 years ago
chrox e9d19965eb fix a bug in android-luajit-launcher that may prevent some devices launching
this should fix #1553 and fix #1551.
9 years ago
chrox d345f21c39 Fix sdcv on Android cannot handle morphological changes 9 years ago
chrox 402806d32b Dictionary on Android
Stardict dictionary files should be copied to
/sdcard/koreader/data/dict/ directory.
9 years ago
chrox a38d851a15 mcode force allocation on Android is now optional
Anyone who encounters random freeze of koreader for Android
is encouraged to enable this by adding a file at
"/sdcard/koreader/patch.lua" with the content of:
```
require("jit.opt").start("sizemcode=256","maxmcode=256")
for i=1,100 do end  -- Force allocation of one large segment
```
The sizemcode and maxmcode could be adjusted from 196 to 512 to
make koreader best fit on your Android device.
9 years ago
chrox c7d4df806a fix loading shared library on Android
This should fix #1447 and maybe also #1416.
9 years ago
chrox 3cc722e368 fix #1416 9 years ago
chrox 2cde181f51 fix koreader not shown in recent app list
when started by view intent.
10 years ago
chrox f2f2833b6a fix #1048 10 years ago
chrox 64b102ebc9 fix #992 by creating fake command line arguments 10 years ago
chrox 2d3c502948 move platform dependent files into 'platform' directory 10 years ago