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

New commits:
commit 806ee5b22413ae3cc5d65687adf0a879c8e24ded
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Thu Dec 14 13:48:57 2023 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Dec 14 13:54:56 2023 +0100

    android lint: Dont' fail on TypographyEllipsis warning
    
    After new translations got added in
    
        commit 40f850279d912786f7943d97ec6db73ee2bb874f
        Author: Weblate <nore...@documentfoundation.org>
        Date:   Wed Dec 13 15:33:50 2023 +0100
    
            android-viewer translated using Weblate (Welsh)
    
    , the android build started failing like this:
    
        > Task :lintReportStrippedUIEditingDebug
        Wrote HTML report to 
file:///home/michi/development/git/libreoffice-WORKTREE-android/android/source/build/reports/lint-results-strippedUIEditingDebug.html
    
        > Task :lintStrippedUIEditingDebug FAILED
        Lint found 3 errors, 0 warnings (232 errors, 3 warnings filtered by 
baseline lint-baseline.xml). First failure:
    
        
/home/michi/development/git/libreoffice-WORKTREE-android/android/source/res/values-hy/strings.xml:36:
 Error: Replace "..." with ellipsis character (…, &#8230;) ? 
[TypographyEllipsis]
            <string name="action_save_as">Պահել որպես...</string>
                                          ~~~~~~~~~~~~~~
    
        The full lint text report is located at:
          
/home/michi/development/git/libreoffice-WORKTREE-android/android/source/build/intermediates/lint_intermediate_text_report/strippedUIEditingDebug/lint-results-strippedUIEditingDebug.txt
    
        FAILURE: Build failed with an exception.
    
    Downgrade that type of lint check to severity informational
    to not cause the build to fail.
    (Changes to address these will need to be done in Weblate,
    which is now the source of truth for translations.)
    
    Change-Id: Ibc82f96d29c8ac76f98db0259e1ee3cae4a986f6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160772
    Tested-by: Michael Weghorn <m.wegh...@posteo.de>
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/android/source/build.gradle b/android/source/build.gradle
index 0160aa8ffe87..ce7bba57633b 100644
--- a/android/source/build.gradle
+++ b/android/source/build.gradle
@@ -90,9 +90,9 @@ android {
     }
     lint {
         warningsAsErrors true
-        // don't error-out on missing translations or external updates (new 
gradle plugin,
-        // library versions or target API become available)
-        informational 'AndroidGradlePluginVersion', 'GradleDependency', 
'MissingTranslation', 'NewerVersionAvailable', 'OldTargetApi'
+        // 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'
         // 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