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: I1d1db259c95d73522a90658b08b96e9d2e9910c6
diff --git a/Android.bp b/Android.bp
index a623101..a0ca937 100644
--- a/Android.bp
+++ b/Android.bp
@@ -110,6 +110,9 @@
],
sdk_version: "system_30",
visibility: ["//visibility:private"],
+ lint: {
+ baseline_filename: "lint-baseline-api-30-shims.xml",
+ },
}
// Shims for APIs being added to the current development version of Android. These APIs are not
@@ -210,6 +213,9 @@
"//packages/modules/NetworkStack/tests/unit",
"//packages/modules/NetworkStack/tests/integration",
],
+ lint: {
+ baseline_filename: "lint-baseline-current-lib.xml",
+ },
}
android_library {
@@ -228,6 +234,9 @@
"//packages/modules/NetworkStack/tests/unit",
"//packages/modules/NetworkStack/tests/integration",
],
+ lint: {
+ baseline_filename: "lint-baseline-stable-lib.xml",
+ },
}
filegroup {