Frans de Jonge
2c6cc258a2
bump luajit-launcher to fix Android build (for real) ( #4965 )
...
* Fix LuaJIT build after the recent buildsystem tweaks https://github.com/koreader/android-luajit-launcher/pull/142
6 years ago
Frans de Jonge
7d742e156a
[Android] Bump luajit-launcher to fix build ( #4957 )
...
* [fix] Add LuaJIT patch to sync with koreader-base https://github.com/koreader/android-luajit-launcher/pull/141
A bit of an emergency fix to just get it working ASAP. A patch was added to base LuaJIT in https://github.com/koreader/koreader-base/pull/892 , which caused a mismatch and build failures over here. Unfortunately that was hidden by some excessive Android verbosity inadvertently introduced in https://github.com/koreader/koreader-base/pull/888 , and on my local instance where I did a sanity check LuaJIT was already compiled…
6 years ago
Martín Fernández
a69c09a275
[Android] do not log verbose blitbuffer messages on release builds, unless specified in settings.lua. Keep debug builds as they are ( #4933 )
6 years ago
Martín Fernández
dde301e765
[Android] use the same tag for all logs ( #4862 )
6 years ago
NiLuJe
b72a2000b1
A few minor fixes after #4847 ( #4850 )
...
* Add a toggle to disable the C blitter in the Dev menu (depends on https://github.com/koreader/koreader-base/pull/882 ) (never shown if the JIT is disabled, grayed out if the C blitter is not installed)
* Fix a few sizeUtf8Text call sites that were doing a nil check in order to account for the new return type.
* Tweak statusbar handling to avoid spurious sizeUtf8Text warnings when it's hidden, and unify its behavior between being hidden via toggle, and hidden on book open (at least when all-at-once is not enabled).
* c.f., https://github.com/koreader/koreader-base/pull/882 (Android, PB, RGB32 & Legacy Kindle regression fixes).
6 years ago
Frans de Jonge
2f65fb94ec
[Android, UX] Add Device:openLink() implementation ( #4824 )
...
Fixes https://github.com/koreader/koreader/issues/4821
Same as https://github.com/koreader/koreader/pull/4822
Thanks to @pazos who implemented the Android backend, see https://github.com/koreader/android-luajit-launcher/pull/133
6 years ago
Martín Fernández
bc9b43aa64
[Android] add support for likebook mars/muses ( #4818 )
6 years ago
Frans de Jonge
b1075fba60
Bump luajit-launcher for 7z 19.00 ( #4742 )
...
https://github.com/koreader/android-luajit-launcher/pull/128
6 years ago
Martín Fernández
b1e2123a2c
bump android-luajit-launcher: ignore intents for schemes other than file
6 years ago
Frans de Jonge
42346d8197
[Android] Bump luajit-launcher for build flavors ( #4719 )
...
See https://github.com/koreader/android-luajit-launcher/pull/126
6 years ago
Martín Fernández
97c6c1244f
add support for likebook mimas e-ink updates ( #4686 )
6 years ago
Frans de Jonge
76028513ea
[Android] Bump luajit-launcher for basic download & notification support ( #4647 )
...
https://github.com/koreader/android-luajit-launcher/pull/122
For https://github.com/koreader/koreader/pull/4639
6 years ago
Frans de Jonge
365a5ad876
[chore] Deprecate Android OTA code ( #4636 )
...
Fixes #4632 .
6 years ago
Frans de Jonge
388871a2c3
[fix, Android] Bump luajit-launcher to unbreak fullscreen toggle in api14-15 ( #4619 )
...
* add support for older energy ereaders https://github.com/koreader/android-luajit-launcher/pull/116
* README: slight tweaks https://github.com/koreader/android-luajit-launcher/pull/117
* [chore] Fix README codacy issues https://github.com/koreader/android-luajit-launcher/pull/118
* fix codacy issues, part one: unused imports and minor fixes https://github.com/koreader/android-luajit-launcher/pull/120
* unbreak fullscreen toggle in api14-15 https://github.com/koreader/android-luajit-launcher/pull/119
6 years ago
Frans de Jonge
35e5c24cb8
[Android] Bump luajit-launcher for os.execute quote problem half-fix ( #4598 )
...
There is at least one very obvious issue remaining (i.e., one quotes arguments to enclose spaces) but it's not caused by this PR.
Fixes #4586 .
6 years ago
Frans de Jonge
8026ffbddb
[Android, fix] Fullscreen, bigger aspect ratio ( #4589 )
...
Fixes #4584
Includes https://github.com/koreader/android-luajit-launcher/pull/113
6 years ago
Frans de Jonge
0b2f586d28
[Android] Bump luajit-launcher for Boyue Likebook Plus ( #4573 )
...
Includes https://github.com/koreader/android-luajit-launcher/pull/112
References https://github.com/koreader/koreader/issues/4551#issuecomment-461743510
Also log time elapsed installing
6 years ago
Frans de Jonge
154c1cd1c4
[Android] Miscellaneous fixes: refactor & Prime HD support ( #4559 )
...
* Refactor https://github.com/koreader/android-luajit-launcher/pull/104
* fix support for inkbook prime hd https://github.com/koreader/android-luajit-launcher/pull/111
References https://github.com/koreader/koreader/issues/4551#issuecomment-461526228
6 years ago
Frans de Jonge
5d21990b0e
[Android] Add E Ink support for Inkbook Prime HD & exit after crash ( #4552 )
...
* add eink support for Inkbook Prime HD (https://github.com/koreader/android-luajit-launcher/pull/110 ) @pazos (references #4551 )
* [fix] Exit after crashing to avoid unknown states (https://github.com/koreader/android-luajit-launcher/pull/109 ) @pazos
6 years ago
Frans de Jonge
81a2423982
[Android, feat] Set APK version to a sane automated value ( #4546 )
...
Includes "set android versionCode and android versionName at buildtime" (<https://github.com/koreader/android-luajit-launcher/pull/106 >)
* versionCode uses the number of Git commits, because Google doesn't like values larger than `2100000000`
* versionName uses our existing version string
References #2040 .
6 years ago
Frans de Jonge
2709fb2432
[chore] Bump third-party libraries ( #4545 )
...
* LuaJIT 20190110 in luajit-launcher & base
* HB v2.3.1
* glib 2.58.3
* FBInk v1.10.1
https://github.com/koreader/koreader-base/pull/801
5a17ca7521
6 years ago
Frans de Jonge
b0570460cb
[fix, Android] Bump luajit-launcher to keep all the binaries in ./bin ( #4535 )
...
I forgot to push this local change in #4532 .
* [fix] Keep all the binaries in ./bin https://github.com/koreader/android-luajit-launcher/pull/102
6 years ago
Frans de Jonge
b68cdc202d
[Android] Add release/debug APK switch ( #4532 )
...
References #2040 .
Includes https://github.com/koreader/android-luajit-launcher/pull/99
6 years ago
Frans de Jonge
4874751020
[Android] Bump base & luajit-launcher for basic E Ink refresh support ( #4529 )
...
Prerequisite for #4517 .
* Add basic support for RK30xx eink devices https://github.com/koreader/android-luajit-launcher/pull/96
* Add basic support for full eink updates https://github.com/koreader/koreader-base/pull/798
6 years ago
Frans de Jonge
e592468f38
[Android] Bump luajit-launcher ( #4500 )
...
* Disable wakelocks by default (https://github.com/koreader/android-luajit-launcher/pull/95 )
6 years ago
Frans de Jonge
6ec3143f2f
[fix, Android] Bump luajit-launcher to silence warning on Android 9 ( #4494 )
...
* https://github.com/koreader/android-luajit-launcher/pull/93
Fixes #4348 .
6 years ago
Frans de Jonge
166e3f9421
[Android, fix] Bump luajit-launcher ( #4491 )
...
For https://github.com/koreader/android-luajit-launcher/pull/92
Cf. #4478 , #4489 .
6 years ago
Frans de Jonge
81e160692d
[Android] Bump luajit-launcher for #4478 ( #4489 )
6 years ago
Martín Fernández
2093bf6d94
use getIntent from luajit-launcher
6 years ago
Martín Fernández
2009ffa12f
android: keep screen awake toggle (using wakelocks) & bump luajit-launcher
6 years ago
Martín Fernández
dbea29b139
do not print intent file path if file == nil
6 years ago
Frans de Jonge
db404537bf
[fix, Android] Android 2.3 getScreenSize crash ( #4356 )
...
* [fix] Android 2.3 getSceenSize https://github.com/koreader/android-luajit-launcher/pull/87
Also includes:
* 7z: update to 18.05 https://github.com/koreader/android-luajit-launcher/pull/88
If nothing else, from 18.03:
> The speed for single-thread LZMA/LZMA2 decoding was increased by 30% in x64 version and by 3% in x86 version.
6 years ago
NiLuJe
c14eae335a
Bump base & Android launcher ( #4335 )
...
* Bump luajit-launcher (luajit)
* Bump base (libjpeg-turbo 2.0.1)
6 years ago
NiLuJe
5871132c25
UI Behavior tweaks ( #3983 )
...
* Switch all initial highlights to "fast" update
i.e., everything that does an invert
Plus a few other things that refresh small UI elements onTap
Re #3130
* Tweak refreshtype for a number of widgets:
* Fix iconbutton dimen
* Make touchmenu flash on close & initial menu popup. Full-screen on close.
* Use flashing updates when opening/closing dictionary popup. Full-screen on close.
* Switch FileManager to partial.
It's mostly text, and we want flash promotion there.
* Make configdialog & menu flash on exit
* Make FLWidget flash on close
* virtualkeyboard: flash on layout change & popup.
* Potentially not that great workaround to ensure we actually see the
highlights in the FM's chevrons
* Flash when closing BookStatus Widget
* Optimize away a quirk of the dual "fast" update in touchmenu
* Promote updates to flashing slightly more agressively.
* Document what each refreshtype actually does.
With a few guidelines on their optimal usecases.
* Switch remaining scheduleIn(0.0) to nextTick()
* Tighter scheduling timers
Shaving a hundred ms off UI callbacks...
* Cache FFI C Library namespace
* Ask MuPDF to convert pixmaps to BGR on Kobo
Fix #3949
* Mention koxtoolchain in the README
re #3972
* Kindle: Handle *all* fonts via EXT_FONT_DIR instead of bind mounts insanity
* Make black flashes in UI elements user-configurable
(All or nothing).
* Jot down some random KOA2 sysfs path
6 years ago
Frans de Jonge
975a5834d7
[Android] Update icon to new logo ( #3882 )
...
Includes
https://github.com/koreader/android-luajit-launcher/pull/83
References
koreader/koreader-icons#1
koreader/koreader#3881
koreader/koreader#3858
koreader/koreader#2000
7 years ago
Frans de Jonge
6c3ace9940
[Android] Makefile: only use VERSION, not REVISION ( #3811 )
...
Fixes always reinstalling resource package.
See https://github.com/koreader/koreader/pull/3723#issuecomment-376508917
7 years ago
Frans de Jonge
4c1c8b8c2e
[Android] bump for setFullscreen() without delay as well ( #3721 )
7 years ago
Frans de Jonge
aadb81eb48
[feat] Add Android clipboard definition ( #3479 )
...
References https://github.com/koreader/koreader/issues/3441
7 years ago
Frans de Jonge
e928276d73
[Android] Update luajit-launcher 7z to 18.00 ( #3617 )
...
See https://github.com/koreader/android-luajit-launcher/pull/79
7 years ago
Frans de Jonge
51f2fa1845
[fix, Android] android-luajit-launcher: update 7z URL/commit hash ( #3604 )
...
Fixes Android nightly builds, see https://github.com/koreader/koreader/issues/3100#issuecomment-357499189
7 years ago
Huang Xin
a44b39fda6
[build] Darwin build of Android port ( #3520 )
7 years ago
poire-z
af48c7c2b7
Android: Change screenOrientation to sensorPortrait ( #3474 )
7 years ago
Frans de Jonge
575fc82081
Bump android-luajit-launcher
7 years ago
Frans de Jonge
8b36566c6a
[Android] Bump luajit-launcher (more lib loading debug info) ( #3401 )
7 years ago
Frans de Jonge
e0bc0a1649
Bump android-luajit-launcher (contains x86 nightly build fix) ( #3384 )
7 years ago
Huang Xin
c22b8393d7
[android] fix hide nav bar on activity create ( #3357 )
7 years ago
Frans de Jonge
b4bb32254a
kodev: Add $ANDROID_ARCH to enable x86 build ( #3353 )
...
You'll still have to call it with `ANDROID_ARCH=x86 ./kodev build/release/run android`.
Don't forget to `./mk-luajit.sh clean` in luajit-launcher when changing architectures.
* Bump android-luajit-launcher
This includes the fix for Android 8. Fixes #3126 .
* Bump base
7 years ago
Frans de Jonge
ac7119c433
[fix] Android screen blackout on first light change ( #3303 )
7 years ago
Frans de Jonge
94c0e01b7f
[fix, Android] restore patch.lua and fix odd anonymous function issue
...
See https://github.com/koreader/koreader/issues/3214#issuecomment-332218408 and https://github.com/koreader/koreader/issues/3118#issuecomment-332633481
7 years ago
Huang Xin
a4e1a3ba5e
reflect changes in koreader/android-luajit-launcher#62 ( #3254 )
7 years ago
Frans de Jonge
87cf2864d9
Bump Android stuff ( #3251 )
...
https://github.com/koreader/koreader-base/pull/516
https://github.com/koreader/android-luajit-launcher/pull/62
7 years ago
Frans de Jonge
4360837e3b
[Android] Update to NDK 15 ( #3233 )
...
Also improve SDK installation for ease of setting up development system.
This also puts in place most of the missing pieces to finish the intent in #3064 .
7 years ago
Frans de Jonge
110c882bba
Bump android-luajit-launcher (fixes nightly build) ( #3229 )
7 years ago
Frans de Jonge
70e6aa9093
Bump android-luajit-launcher ( #3227 )
...
Part of the spirit of #3064 . Making it easier to test different things.
7 years ago
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
```
8 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)
8 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.
9 years ago
Qingping Hou
ff273158af
bump luajit-launcher
9 years ago
Qingping Hou
8621720d19
bump base and luajitlauncher
9 years ago
Qingping Hou
55fa046d49
android: set android log tag to KOReader
9 years ago
chrox
3a9cb659d1
add OTA update on Android
9 years ago
Qingping Hou
427abd1cf6
bump base for android fix
9 years ago
Qingping Hou
65455cee23
bump luajit-launcher
9 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
10 years ago
chrox
402806d32b
Dictionary on Android
...
Stardict dictionary files should be copied to
/sdcard/koreader/data/dict/ directory.
10 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.
10 years ago
chrox
c7d4df806a
fix loading shared library on Android
...
This should fix #1447 and maybe also #1416 .
10 years ago
chrox
3cc722e368
fix #1416
10 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