bczhc / rime-android

Rime distribution for Android, only for physical keyboards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RimeAndroid

Build

Create config.properties in the root project, with its content like this (just an example on my machine):

ndk.targets = arm64-v8a-29,x86-29,armeabi-v7a-21,x86_64-29
librime-lib-dir = /home/bczhc/bin/librime-libs
librime-include-dir = /home/bczhc/open-source/trime/app/src/main/jni/librime/src

Directory structure of librime-lib-dir:

librime-libs/
├── arm64-v8a
│   └── librime.so
├── armeabi-v7a
│   └── librime.so
├── x86
│   └── librime.so
└── x86_64
    └── librime.so

You can follow this gist for the build of these libraries.

For librime-include-dir, ensure rime_api.h exists under the location:

~ ❯ ls /home/bczhc/open-source/trime/app/src/main/jni/librime/src/                                                           11:34:18
CMakeLists.txt  rime  rime_api.cc  rime_api.h  rime_levers_api.h

Then do ./gradlew asD for debug build and ./gradlew asR for release build.

Known Issues

  • May crash for unknown reasons. (Not that serious, or I'll fix it...)
  • Candidates won't show on Android14. (I tested Xiaomi 14 Ultra). 🤬

About

Rime distribution for Android, only for physical keyboards


Languages

Language:Kotlin 65.0%Language:Rust 26.0%Language:Dockerfile 4.8%Language:Java 2.4%Language:Ruby 1.8%