vendor/aosp: AOSP keyboard swype compatibility
*also differentiate libs based on device for arm/arm64
diff --git a/common.mk b/common.mk
index 6b31035..13f8800 100644
--- a/common.mk
+++ b/common.mk
@@ -103,6 +103,15 @@
vendor/aosp/overlay/common \
vendor/aosp/overlay/dictionaries
+# Proprietary latinime libs needed for Keyboard swyping
+ifneq ($(filter arm64,$(TARGET_ARCH)),)
+PRODUCT_COPY_FILES += \
+ vendor/aosp/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so
+else
+PRODUCT_COPY_FILES += \
+ vendor/aosp/prebuilt/common/lib64/libjni_latinime.so:system/lib64/libjni_latinime.so
+endif
+
# by default, do not update the recovery with system updates
PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
diff --git a/overlay/common/packages/inputmethods/LatinIME/java/res/values/gesture-input.xml b/overlay/common/packages/inputmethods/LatinIME/java/res/values/gesture-input.xml
new file mode 100644
index 0000000..453b326
--- /dev/null
+++ b/overlay/common/packages/inputmethods/LatinIME/java/res/values/gesture-input.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2015, The Pure Nexus Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+ <bool name="config_gesture_input_enabled_by_build_config">true</bool>
+</resources>
diff --git a/prebuilt/common/lib/libjni_latinime.so b/prebuilt/common/lib/libjni_latinime.so
new file mode 100644
index 0000000..9396eda
--- /dev/null
+++ b/prebuilt/common/lib/libjni_latinime.so
Binary files differ
diff --git a/prebuilt/common/lib64/libjni_latinime.so b/prebuilt/common/lib64/libjni_latinime.so
new file mode 100644
index 0000000..171f9c1
--- /dev/null
+++ b/prebuilt/common/lib64/libjni_latinime.so
Binary files differ