From c9718fd9b1081df4a0169a7849af2cb658a6717c Mon Sep 17 00:00:00 2001 From: David Black Date: Thu, 16 Jan 2014 15:20:42 +0000 Subject: [PATCH 1/2] fix LatinIME: latest version, multiple apks etc. --- metadata/com.android.inputmethod.latin.txt | 67 +++++++--- .../custom_rules.xml_1.patch | 126 ++++++++++++++++++ 2 files changed, 171 insertions(+), 22 deletions(-) create mode 100644 metadata/com.android.inputmethod.latin/custom_rules.xml_1.patch diff --git a/metadata/com.android.inputmethod.latin.txt b/metadata/com.android.inputmethod.latin.txt index bc19cd3354..35121a5bbf 100644 --- a/metadata/com.android.inputmethod.latin.txt +++ b/metadata/com.android.inputmethod.latin.txt @@ -9,40 +9,63 @@ The current version comes with English, Spanish, Russian, Brazilian, Italian, German, French, dictionaries; there are twenty more language word lists in the repository but they'd need to be compiled. -Remember, you can use these very dictionary files for [[org.pocketworkstation.pckeyboard]], -either built into the main apk or as addon packs. - The version name corresponds to the Android version. . Repo Type:git Repo:https://android.googlesource.com/platform/packages/inputmethods/LatinIME -Build:4.2.1,1 - disable=Results in an apk with '${package.name}' as the package ID - commit=android-4.2.1_r1 +Build:4.4.2-mips,4421 + commit=android-sdk-4.4.2_r1 subdir=java - target=android-17 + target=android-19 + srclibs=Inputmethodcommon@android-4.4.2_r1 extlibs=android/android-support-v4r13.jar - srclibs=Inputmethodcommon@android-4.2.1_r1 - patch=build.xml_1.patch - prebuild=sed -i '19 i android:versionName="4.2.1" android:versionCode="1"' AndroidManifest.xml && \ - cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ - build=$$NDK$$/ndk-build -e "APP_ABI=all" -C ../native && mv ../native/libs/armeabi libs/ + patch=custom_rules.xml_1.patch + prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-mips\nversion.code=4421' >> ant.properties && \ + cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ + build=$$NDK$$/ndk-build -e "APP_ABI=mips" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/ + +Build:4.4.2-x86,4422 + commit=android-sdk-4.4.2_r1 + subdir=java + target=android-19 + srclibs=Inputmethodcommon@android-4.4.2_r1 + extlibs=android/android-support-v4r13.jar + patch=custom_rules.xml_1.patch + prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-x86\nversion.code=4422' >> ant.properties && \ + cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ + build=$$NDK$$/ndk-build -e "APP_ABI=x86" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/ + +Build:4.4.2-arm,4423 + commit=android-sdk-4.4.2_r1 + subdir=java + target=android-19 + srclibs=Inputmethodcommon@android-4.4.2_r1 + extlibs=android/android-support-v4r13.jar + patch=custom_rules.xml_1.patch + prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-arm\nversion.code=4423' >> ant.properties && \ + cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ + build=$$NDK$$/ndk-build -e "APP_ABI=armeabi" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/ + +Build:4.4.2-arm7,4424 + commit=android-sdk-4.4.2_r1 + subdir=java + target=android-19 + srclibs=Inputmethodcommon@android-4.4.2_r1 + extlibs=android/android-support-v4r13.jar + patch=custom_rules.xml_1.patch + prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-arm7\nversion.code=4424' >> ant.properties && \ + cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ + build=$$NDK$$/ndk-build -e "APP_ABI=armeabi-v7a" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/ Maintainer Notes: -This version uses the prebuilt dictionaries in the repo; -you could have a lot of fun building your own. - -Use the ant.properties to change the package name if you wish: it works fine. - -4.3 or 4.4 don't build with NDK 9: -jni/src/suggest/core/layout/proximity_info_utils.h:41:88: instantiated from here -/home/gerry/android-ndk-r9c/sources/cxx-stl/stlport/stlport/stl/_function_base.h:141:8: error: base class 'struct std::unary_function, int const>' has a non-virtual destructor [-Werror=effc++] +Note that, like other AOSP apps, there are now special tags with 'sdk' in them; +not sure what the difference is. . Auto Update Mode:None Update Check Mode:None -Current Version:4.2.1 -Current Version Code:1 +Current Version:4.4.2 +Current Version Code:4420 diff --git a/metadata/com.android.inputmethod.latin/custom_rules.xml_1.patch b/metadata/com.android.inputmethod.latin/custom_rules.xml_1.patch new file mode 100644 index 0000000000..b91894ccbf --- /dev/null +++ b/metadata/com.android.inputmethod.latin/custom_rules.xml_1.patch @@ -0,0 +1,126 @@ +diff --git a/java/custom_rules.xml b/java/custom_rules.xml +new file mode 100644 +index 0000000..25fc1eb +--- /dev/null ++++ b/java/custom_rules.xml +@@ -0,0 +1,120 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ From 65296c51308fa0f7acf0300c64a1b1b02723e95f Mon Sep 17 00:00:00 2001 From: David Black Date: Thu, 16 Jan 2014 16:12:19 +0000 Subject: [PATCH 2/2] more descriptions for latin ime --- metadata/com.android.inputmethod.latin.txt | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/metadata/com.android.inputmethod.latin.txt b/metadata/com.android.inputmethod.latin.txt index 35121a5bbf..7910ec4d72 100644 --- a/metadata/com.android.inputmethod.latin.txt +++ b/metadata/com.android.inputmethod.latin.txt @@ -6,23 +6,27 @@ Issue Tracker:http://code.google.com/p/android/issues/list?can=2&q=keyboard&cols Summary:Stock keyboard Description: The current version comes with English, Spanish, Russian, Brazilian, Italian, -German, French, dictionaries; there are twenty more language word lists +German, French, dictionaries; there are more language word lists in the repository but they'd need to be compiled. +There is the ability to input Emoji characters. -The version name corresponds to the Android version. +Note that you can't install this if you have a ROM that already has LatinIME. +The build recipe contains a package name change variable, but on Android 4.3 +it still couldn't be installed as a user app; you'd have to +remove the original from /system/app via root, before installing this. . Repo Type:git Repo:https://android.googlesource.com/platform/packages/inputmethods/LatinIME -Build:4.4.2-mips,4421 +Build:4.4.2-MIPS,4421 commit=android-sdk-4.4.2_r1 subdir=java target=android-19 srclibs=Inputmethodcommon@android-4.4.2_r1 extlibs=android/android-support-v4r13.jar patch=custom_rules.xml_1.patch - prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-mips\nversion.code=4421' >> ant.properties && \ + prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-MIPS\nversion.code=4421' >> ant.properties && \ cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ build=$$NDK$$/ndk-build -e "APP_ABI=mips" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/ @@ -37,25 +41,25 @@ Build:4.4.2-x86,4422 cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ build=$$NDK$$/ndk-build -e "APP_ABI=x86" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/ -Build:4.4.2-arm,4423 +Build:4.4.2-ARM,4423 commit=android-sdk-4.4.2_r1 subdir=java target=android-19 srclibs=Inputmethodcommon@android-4.4.2_r1 extlibs=android/android-support-v4r13.jar patch=custom_rules.xml_1.patch - prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-arm\nversion.code=4423' >> ant.properties && \ + prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-ARM\nversion.code=4423' >> ant.properties && \ cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ build=$$NDK$$/ndk-build -e "APP_ABI=armeabi" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/ -Build:4.4.2-arm7,4424 +Build:4.4.2-ARMv7,4424 commit=android-sdk-4.4.2_r1 subdir=java target=android-19 srclibs=Inputmethodcommon@android-4.4.2_r1 extlibs=android/android-support-v4r13.jar patch=custom_rules.xml_1.patch - prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-arm7\nversion.code=4424' >> ant.properties && \ + prebuild=echo -e 'package.name=com.android.inputmethod.latin\nversion.name=4.4.2-ARMv7\nversion.code=4424' >> ant.properties && \ cp -r $$Inputmethodcommon$$/java/com/android/inputmethodcommon src/com/android/ build=$$NDK$$/ndk-build -e "APP_ABI=armeabi-v7a" -e "APP_CFLAGS += -w" -C ../native && mv ../native/libs/* libs/