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
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>