源於開源的注音倉頡輸入法前端,
基於著名的RIME輸入法框架,
使用JNI的C語言和安卓的Java語言書寫,
旨在保護漢語各地方言母語,
音碼形碼通用的輸入法平臺。
Clone the project, pay attention it will take a while for large submodule boost and make sure your disk is enough to hold the source(about 1.5GB).bash cd $your_folder git clone --recursive https://github.com/osfans/trime.git trime
If you want to test the application, run the command:bash cd $trime_folder make debug
Or you can build signed application for release and make sure you create a file named gradle.properties which contains:bash storePassword=myStorePassword keyPassword=mykeyPassword keyAlias=myKeyAlias storeFile=myStoreFileLocation
for signing information. And run the command:bash cd $trime_folder make release
The following guide is for the specific platform prebuild setting:
- Arch Linux
bash yaourt -S android-{ndk,sdk,sdk-build-tools,sdk-platform-tools,platform} gradle make release
Use the package manager to install the dev environment and Android SDK NDK.
Install Android SDK
and NDK
(You'd better install it by Android Studio or manually instead of by Homebrew).
Install Homebrew and set
Homebrew mirror of it if your network is slow.
bash brew install automake cmake opencc boost python gradle doxygen
Set the path environment in ~/.bashrc if you use bash like this
bash # Android export ANDROID_HOME="your_android_sdk" export ANDROID_NDK="your_android_ndk" export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK