Develop LatinIME in Android Studio without a need to download and build whole AOSP.
Currently building LatinIME requires downloading and building whole Android sources. This requires tens of gigabytes of disk space and takes couple hours to complete. The aim of this project is to allow development of LatingIME using Android Studio, Android SDK and NDK.
This is still a work in progress. Currently building the Java part of the app works fine but you still need to build native libraries separately or extract them from existing APK. Building host tools (used to generate dictionaries) still requires some more work.
-
Checkout this build configuration:
git clone https://github.com/iwo/LatinIME-Android-Studio.git .
-
Checkout LatinIME sources to
LatinIME
subdirectory:git clone https://github.com/CyanogenMod/android_packages_inputmethods_LatinIME.git LatinIME
-
Checkout
frameworks/opt/inputmethodcommon
intoinputmethodcommon
:git clone https://github.com/CyanogenMod/android_frameworks_opt_inputmethodcommon.git inputmethodcommon
-
Import project into Android Studio
-
Copy prebuild libjni_latinime.so to
app/src/main/jniLibs/armeabi/libjni_latinime.so
-
Remove
LatinIME/java/res/values/strings-emoji-descriptions.xml
(or fix encoding of the comments)
Enjoy your new Android Keyboard!