android/source/build.gradle |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

New commits:
commit eaa8327c960591bf113f624be2fc81af00d08090
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Dec 15 08:35:45 2023 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Fri Dec 15 17:27:05 2023 +0100

    android lint: Ignore missing translations
    
    Translations are handled in Weblate now, so missing
    translations are tracked there.
    
    Therefore, ignore them in the lint check, since there's
    no added value in having them listed in the
    `android/source/lint-baseline.xml` file in addition any more.
    
    Change-Id: I82945c0eebe015ca9695813dd19613108884c648
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160816
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/android/source/build.gradle b/android/source/build.gradle
index ce7bba57633b..b89efc3d00fd 100644
--- a/android/source/build.gradle
+++ b/android/source/build.gradle
@@ -90,9 +90,13 @@ android {
     }
     lint {
         warningsAsErrors true
-        // don't error-out on missing translations or external updates (new 
translations,
-        // new gradle plugin, library versions or target API become available)
-        informational 'AndroidGradlePluginVersion', 'GradleDependency', 
'MissingTranslation', 'NewerVersionAvailable', 'OldTargetApi', 
'TypographyEllipsis'
+        // ignore missing translations, since these are tracked in Weblate 
already
+        ignore 'MissingTranslation'
+        // don't error-out on external updates (new gradle plugin, library 
versions
+        // or target API become available)
+        // don't error-out on TypographyEllipsis, since this can be introduced 
with
+        // new translations, and those are handled in Weblate
+        informational 'AndroidGradlePluginVersion', 'GradleDependency', 
'NewerVersionAvailable', 'OldTargetApi', 'TypographyEllipsis'
         // don't fail on pre-existing issues
         // These should be dealt with at some point, though.
         // To update lint-baseline.xml, just remove the file and run the build 
again.

Reply via email to