summaryrefslogtreecommitdiff
path: root/notification
diff options
context:
space:
mode:
authorPedro Loureiro <pedroql@google.com>2021-02-25 15:31:41 +0000
committerPedro Loureiro <pedroql@google.com>2021-04-12 10:13:02 +0000
commit898ccee319c5afd604586f7a9069bd8f043844bd (patch)
treeec9e41bcbb9c5a8f0d1ae2ed3b8f787a25cd3e5b /notification
parentb5e90cd6346abf582d6ed8025d39b3d1ea2f78f9 (diff)
downloadlibtextclassifier-898ccee319c5afd604586f7a9069bd8f043844bd.tar.gz
Add lint baseline to address NewApi errors
We are enabling a new lint check where the min sdk != compile sdk. It has produced a lot of errors and adding the baseline file(s) allows us to continue work without introducing more problems. Bug: 150847901 Test: m lint-check Change-Id: I98a4552b18780102f21a1a0ab3333248619c1948
Diffstat (limited to 'notification')
-rw-r--r--notification/lint-baseline.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/notification/lint-baseline.xml b/notification/lint-baseline.xml
new file mode 100644
index 0000000..f2530d7
--- /dev/null
+++ b/notification/lint-baseline.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0">
+
+ <issue
+ id="NewApi"
+ message="Call requires API level R (current min is 29): `android.app.Notification#getContextualActions`"
+ errorLine1=" boolean hasAppGeneratedContextualActions = !notification.getContextualActions().isEmpty();"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
+ <location
+ file="external/libtextclassifier/notification/src/com/android/textclassifier/notification/SmartSuggestionsHelper.java"
+ line="246"
+ column="62"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level R (current min is 29): `android.app.Notification#findRemoteInputActionPair`"
+ errorLine1=" notification.findRemoteInputActionPair(/* requiresFreeform */ true);"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
+ <location
+ file="external/libtextclassifier/notification/src/com/android/textclassifier/notification/SmartSuggestionsHelper.java"
+ line="249"
+ column="22"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level R (current min is 29): `android.app.Notification.MessagingStyle.Message#getMessagesFromBundleArray`"
+ errorLine1=" Message.getMessagesFromBundleArray("
+ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
+ <location
+ file="external/libtextclassifier/notification/src/com/android/textclassifier/notification/SmartSuggestionsHelper.java"
+ line="440"
+ column="17"/>
+ </issue>
+
+</issues>