anssih / finqwerty

Keyboard layouts for Android phones with physical keyboards
Apache License 2.0
19 stars 11 forks source link

[Consulting Request] How to build the apk with only one keyboard layout? #25

Open anmuelle opened 7 months ago

anmuelle commented 7 months ago

Hi guys,

that's a very useful app, that you've developed. Very much appreciated.

I'm a software developer, but never did mobile/android app dev.

I'd like to build my own local version of finqwerty, that comes only with one single keyboard layout, I'd like to define on my own. I think I got how those layout/keymapping definition files work, but even if I try to change a single one and re-build the apk locally with Android Studio, I still get the orignal layout file packaged (without my changes).

Could you please give a quick hint about:

Thanks a lot and all the best, Andreas

rschr commented 5 months ago

The layout definitions are the .kcm files in finqwerty/finqwerty/src/main/res/raw. Also have a look at finqwerty/blob/master/generate_layouts.py – the GENERATED_LAYOUTS array defines which layouts are actually generated in the build. And finqwerty/finqwerty/src/main/res/xml/finqwerty_layouts.xml contains the list with the actual layout names that you'll see on the phone.