Browse Source

Disable lint check 'PrivateResource'

Removes the in commit cedd929f10 added string attribute 'tools:ignore'. These
would require an adjustment to our CI which we want to avoid.

So instead the lint check 'PrivateResousce' is globally deactivated.

See: commit cedd929f10, #2110

Signed-off-by: Tim Krüger <t@timkrueger.me>
Tim Krüger 3 years ago
parent
commit
b4efc86b8e
2 changed files with 5 additions and 5 deletions
  1. 1 1
      app/build.gradle
  2. 4 4
      app/src/main/res/values/strings.xml

+ 1 - 1
app/build.gradle

@@ -138,7 +138,7 @@ android {
 
 
     lint {
     lint {
         abortOnError false
         abortOnError false
-        disable 'MissingTranslation'
+        disable 'MissingTranslation','PrivateResource'
         htmlOutput file("$project.buildDir/reports/lint/lint.html")
         htmlOutput file("$project.buildDir/reports/lint/lint.html")
         htmlReport true
         htmlReport true
     }
     }

+ 4 - 4
app/src/main/res/values/strings.xml

@@ -20,7 +20,7 @@
   ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
   ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
   -->
   -->
 
 
-<resources xmlns:tools="http://schemas.android.com/tools">
+<resources>
     <!-- Common -->
     <!-- Common -->
     <string name="nc_yes">Yes</string>
     <string name="nc_yes">Yes</string>
     <string name="nc_no">No</string>
     <string name="nc_no">No</string>
@@ -328,9 +328,9 @@
     <string name="nc_message_failed_to_send">Failed to send message:</string>
     <string name="nc_message_failed_to_send">Failed to send message:</string>
     <string name="nc_remote_audio_off">Remote audio off</string>
     <string name="nc_remote_audio_off">Remote audio off</string>
     <string name="nc_add_attachment">Add attachment</string>
     <string name="nc_add_attachment">Add attachment</string>
-    <string name="emoji_category_recent" tools:ignore="PrivateResource">Recent</string>
-    <string name="emoji_backspace" tools:ignore="PrivateResource">Backspace</string>
-    <string name="emoji_search" tools:ignore="PrivateResource">Search emoji</string>
+    <string name="emoji_category_recent">Recent</string>
+    <string name="emoji_backspace">Backspace</string>
+    <string name="emoji_search">Search emoji</string>
 
 
     <!-- Content descriptions -->
     <!-- Content descriptions -->
     <string name="nc_description_send_message_button">Send message</string>
     <string name="nc_description_send_message_button">Send message</string>