/LatinIME-Android-Studio

Gradle build configuration for Android LatinIME

Gradle build for LatinIME (Android Keyboard)

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.

Current status

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.

How to build LatinIME APK

  1. Checkout this build configuration:

     git clone https://github.com/iwo/LatinIME-Android-Studio.git .
    
  2. Checkout LatinIME sources to LatinIME subdirectory:

     git clone https://github.com/CyanogenMod/android_packages_inputmethods_LatinIME.git LatinIME
    
  3. Checkout frameworks/opt/inputmethodcommon into inputmethodcommon:

     git clone https://github.com/CyanogenMod/android_frameworks_opt_inputmethodcommon.git inputmethodcommon
    
  4. Import project into Android Studio

  5. Copy prebuild libjni_latinime.so to app/src/main/jniLibs/armeabi/libjni_latinime.so

  6. Remove LatinIME/java/res/values/strings-emoji-descriptions.xml (or fix encoding of the comments)

Enjoy your new Android Keyboard!