[Libreoffice-commits] online.git: android/lib

mert (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 24 23:17:09 UTC 2020


 android/lib/build.gradle |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

New commits:
commit 04dc25bfe09c52424d4a58073886353ecea14f08
Author:     mert <mert.tumer at collabora.com>
AuthorDate: Tue Feb 25 00:14:13 2020 +0300
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Feb 25 00:16:51 2020 +0100

    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 at collabora.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

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'))
+        }
     }
 }
 


More information about the Libreoffice-commits mailing list