From 1e296c10cf6007fbd45c072e9472b9ca7e5a16db Mon Sep 17 00:00:00 2001 From: Pedro Loureiro Date: Tue, 9 Mar 2021 18:35:52 +0000 Subject: [PATCH] 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: I827a5b21dd52448d4f68da6743a1a1632d99573d --- Android.bp | 12 + lint-baseline-common-deps-lib.xml | 48 +++ lint-baseline-go-res-lib.xml | 576 ++++++++++++++++++++++++++++++ lint-baseline-launcher3.xml | 576 ++++++++++++++++++++++++++++++ lint-baseline-res-lib.xml | 48 +++ 5 files changed, 1260 insertions(+) create mode 100644 lint-baseline-common-deps-lib.xml create mode 100644 lint-baseline-go-res-lib.xml create mode 100644 lint-baseline-launcher3.xml create mode 100644 lint-baseline-res-lib.xml diff --git a/Android.bp b/Android.bp index df0a96fe4e..7e6a565f46 100644 --- a/Android.bp +++ b/Android.bp @@ -115,6 +115,9 @@ android_library { manifest: "AndroidManifest-common.xml", sdk_version: "current", min_sdk_version: "26", + lint: { + baseline_filename: "lint-baseline-res-lib.xml", + }, } // @@ -127,6 +130,9 @@ android_library { sdk_version: "current", min_sdk_version: "26", manifest: "AndroidManifest-common.xml", + lint: { + baseline_filename: "lint-baseline-common-deps-lib.xml", + }, } // @@ -171,6 +177,9 @@ android_app { additional_manifests: [ "AndroidManifest-common.xml", ], + lint: { + baseline_filename: "lint-baseline-launcher3.xml", + }, } // Library with all the dependencies for building quickstep @@ -236,5 +245,8 @@ android_library { "AndroidManifest-common.xml", ], min_sdk_version: "29", + lint: { + baseline_filename: "lint-baseline-go-res-lib.xml", + }, } diff --git a/lint-baseline-common-deps-lib.xml b/lint-baseline-common-deps-lib.xml new file mode 100644 index 0000000000..e52f8fbc70 --- /dev/null +++ b/lint-baseline-common-deps-lib.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/lint-baseline-go-res-lib.xml b/lint-baseline-go-res-lib.xml new file mode 100644 index 0000000000..c5669f2a61 --- /dev/null +++ b/lint-baseline-go-res-lib.xml @@ -0,0 +1,576 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lint-baseline-launcher3.xml b/lint-baseline-launcher3.xml new file mode 100644 index 0000000000..469ad942d9 --- /dev/null +++ b/lint-baseline-launcher3.xml @@ -0,0 +1,576 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lint-baseline-res-lib.xml b/lint-baseline-res-lib.xml new file mode 100644 index 0000000000..e52f8fbc70 --- /dev/null +++ b/lint-baseline-res-lib.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + +