diff options
author | mert <mert.tumer@collabora.com> | 2020-02-25 00:14:13 +0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-02-25 00:16:51 +0100 |
commit | 04dc25bfe09c52424d4a58073886353ecea14f08 (patch) | |
tree | 1a55af2f64a0390de636f03ca0c183318d6c016e | |
parent | 7d4580733f27314a2ddf1290f6e92b0b07c96a52 (diff) |
android: reduce the dictionary files
we copy dictionary files more than necessary
only the required ones are included
Change-Id: I200a95b2593109ff10e7214476fe6ddd2e792ae5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89384
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r-- | android/lib/build.gradle | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/android/lib/build.gradle b/android/lib/build.gradle index 46771f320..3f8a61d79 100644 --- a/android/lib/build.gradle +++ b/android/lib/build.gradle @@ -127,9 +127,21 @@ task copyUnpackAssets(type: Copy) { } into('share') { from "${liboInstdir}/share" - // extensions - for the dictionaries for hunspell // liblangtag data is needed for locales like en-CH - includes = ['extensions/dict-de/**', 'extensions/dict-en/**', 'extensions/dict-es/**', 'extensions/dict-pt-BR/**', 'liblangtag/**'] + include 'liblangtag/**' + } + + into('share') { + from "${liboInstdir}/share" + // extensions - for the dictionaries for hunspell + includes = ['extensions/dict-de/**', 'extensions/dict-en/**', 'extensions/dict-es/**', 'extensions/dict-pt-BR/**'] + exclude { FileTreeElement details -> + !(details.file.isDirectory() || + details.file.name.endsWith('.xcu') || + details.file.name.endsWith('.dic') || + details.file.name.endsWith('.aff') || + details.file.name.endsWith('.xml')) + } } } |