koreader / android-luajit-launcher

Android NativeActivity based launcher for LuaJIT, implementing the main loop within Lua land via FFI
MIT License
130 stars 83 forks source link

Nook Glowlight 4/4e/4 plus EInk refresh support (full-only) #460

Closed Codereamp closed 7 months ago

Codereamp commented 7 months ago

This commit overrides the previously closed with the following changes

The changes were tested on Nook Glowlight 4e (debug compilation to koreader-android-arm-debug-v2023.10-82-g5d2a44106_2023-12-29.apk)


This change is Reviewable

Codereamp commented 7 months ago

@pazos, I hope I did the new PR more or less correctly. Please, let me know if anything was wrong.

pazos commented 7 months ago

@pazos, I hope I did the new PR more or less correctly. Please, let me know if anything was wrong.

It looks quite good.

Just replace NGL4 for something a bit more specific (NOOK_GL4 is fine) and please leave the list sorted.

Also, this is going to be merged after the next release because a few things changed this month and is going to be way easier to triage if something went wrong with those.

Codereamp commented 7 months ago

Just replace NGL4 for something a bit more specific (NOOK_GL4 is fine) and please leave the list sorted.

Ok, I assume that you're talking also about the class name and the file name, in this case I suggest NookGL4, without underscore, I think it would fit more nicely as the prefix.

pazos commented 7 months ago

Just replace NGL4 for something a bit more specific (NOOK_GL4 is fine) and please leave the list sorted.

Ok, I assume that you're talking also about the class name and the file name, in this case I suggest NookGL4, without underscore, I think it would fit more nicely as the prefix.

The class is fine (and its file name is ok as long as it matches the name of the class). I was talking about the Device name on DeviceInfo.

Codereamp commented 7 months ago

@pazos, probably both wishes now addressed (NOOK_GL4 and sorted order). I see that app.codacy.com is super pedantic with its analysis :) let me know whether I should also adjust for its issues.

Codereamp commented 7 months ago

A minor question regarding compiling. During the whole process I wanted to avoid extra actions with file packaging during compiling (especially it was time saver when there were syntax errors) and in the full tree of the koreader project made a shell script in .. luajit-launcher sub-folder with the following text (multiply dots collapses the actual path to ndk)

export ANDROID_NDK_HOME=/home/........ /android-ndk-r23c
export ANDROID_NDK_ROOT=/home/......../android-ndk-r23c
make debug

With it I was able to compile much faster (sure when the primary compilation once made complete). There were drawbacks like different apk location and different name, but they were minor. Is this approach ok or somehow there already exist scripts for such faster compilation?

pazos commented 7 months ago

@pazos, probably both wishes now addressed (NOOK_GL4 and sorted order). I see that app.codacy.com is super pedantic with its analysis :) let me know whether I should also adjust for its issues.

Yes, please