From da127923c35fa4f73a130dd71d057a8666e91143 Mon Sep 17 00:00:00 2001 From: bachinger Date: Thu, 16 Jun 2022 11:50:36 +0000 Subject: [PATCH] Add lint base xml file for string.xml files Fixing lint errors in the string.xml files makes no sense because these are overridden with the next automated string import. Adding a lint-baseline.xml instead for the ui module. See https://issuetracker.google.com/208178382 #minor-release PiperOrigin-RevId: 455354304 (cherry picked from commit 495480a66adacff26fb0c9c10f4d44191656bbd0) --- library/ui/build.gradle | 6 ++++ library/ui/lint-baseline.xml | 62 ++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 library/ui/lint-baseline.xml diff --git a/library/ui/build.gradle b/library/ui/build.gradle index a798592a75..7b21db436e 100644 --- a/library/ui/build.gradle +++ b/library/ui/build.gradle @@ -15,6 +15,12 @@ apply from: "$gradle.ext.exoplayerSettingsDir/common_library_config.gradle" android.buildTypes.debug.testCoverageEnabled true +android { + lint { + baseline = file("lint-baseline.xml") + } +} + dependencies { implementation project(modulePrefix + 'library-common') api 'androidx.media:media:' + androidxMediaVersion diff --git a/library/ui/lint-baseline.xml b/library/ui/lint-baseline.xml new file mode 100644 index 0000000000..0b6a29a68c --- /dev/null +++ b/library/ui/lint-baseline.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + +