From 0b5a1a89af43e5c6eda000f453fdf4061a0988a7 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Wed, 3 Feb 2021 20:35:13 -0800 Subject: [LSC] Add LOCAL_LICENSE_KINDS to frameworks/opt/setupwizard Added SPDX-license-identifier-Apache-2.0 to: library/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I75126f991d5d337575d5b2343e2ba3d61ef3e7da --- library/Android.bp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/library/Android.bp b/library/Android.bp index 61cd83a..f3dc9b2 100644 --- a/library/Android.bp +++ b/library/Android.bp @@ -2,6 +2,23 @@ // Build the platform version of setup wizard library. // +package { + default_applicable_licenses: ["frameworks_opt_setupwizard_library_license"], +} + +// Added automatically by a large-scale-change +// http://go/android-license-faq +license { + name: "frameworks_opt_setupwizard_library_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "LICENSE", + ], +} + android_library { name: "setup-wizard-lib", -- cgit v1.2.3 From 35433f960997dadd4723e0299669447f4a6b6e61 Mon Sep 17 00:00:00 2001 From: Pedro Loureiro Date: Thu, 25 Feb 2021 15:31:55 +0000 Subject: 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: I508595cc357d19a90164f9573e4ee1f1f2e3f6d8 --- library/Android.bp | 6 +++++ library/lint-baseline-gingerbread-lib.xml | 37 +++++++++++++++++++++++++++++++ library/lint-baseline-lib.xml | 15 +++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 library/lint-baseline-gingerbread-lib.xml create mode 100644 library/lint-baseline-lib.xml diff --git a/library/Android.bp b/library/Android.bp index f3dc9b2..eaccc8e 100644 --- a/library/Android.bp +++ b/library/Android.bp @@ -22,6 +22,9 @@ license { android_library { name: "setup-wizard-lib", + lint: { + baseline_filename: "lint-baseline-lib.xml", + }, libs: ["androidx.annotation_annotation"], manifest: "main/AndroidManifest.xml", resource_dirs: [ @@ -43,6 +46,9 @@ android_library { android_library { name: "setup-wizard-lib-gingerbread-compat", + lint: { + baseline_filename: "lint-baseline-gingerbread-lib.xml", + }, manifest: "main/AndroidManifest.xml", resource_dirs: [ "main/res", diff --git a/library/lint-baseline-gingerbread-lib.xml b/library/lint-baseline-gingerbread-lib.xml new file mode 100644 index 0000000..3f25063 --- /dev/null +++ b/library/lint-baseline-gingerbread-lib.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/library/lint-baseline-lib.xml b/library/lint-baseline-lib.xml new file mode 100644 index 0000000..13e3085 --- /dev/null +++ b/library/lint-baseline-lib.xml @@ -0,0 +1,15 @@ + + + + + + + + -- cgit v1.2.3 From 4e202a0b5f919c4d833eb6b96ebb127ce1070e64 Mon Sep 17 00:00:00 2001 From: Pedro Loureiro Date: Thu, 25 Feb 2021 15:31:55 +0000 Subject: 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: I508595cc357d19a90164f9573e4ee1f1f2e3f6d8 Merged-In: I508595cc357d19a90164f9573e4ee1f1f2e3f6d8 --- library/Android.bp | 6 +++++ library/lint-baseline-gingerbread-lib.xml | 37 +++++++++++++++++++++++++++++++ library/lint-baseline-lib.xml | 15 +++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 library/lint-baseline-gingerbread-lib.xml create mode 100644 library/lint-baseline-lib.xml diff --git a/library/Android.bp b/library/Android.bp index f3dc9b2..eaccc8e 100644 --- a/library/Android.bp +++ b/library/Android.bp @@ -22,6 +22,9 @@ license { android_library { name: "setup-wizard-lib", + lint: { + baseline_filename: "lint-baseline-lib.xml", + }, libs: ["androidx.annotation_annotation"], manifest: "main/AndroidManifest.xml", resource_dirs: [ @@ -43,6 +46,9 @@ android_library { android_library { name: "setup-wizard-lib-gingerbread-compat", + lint: { + baseline_filename: "lint-baseline-gingerbread-lib.xml", + }, manifest: "main/AndroidManifest.xml", resource_dirs: [ "main/res", diff --git a/library/lint-baseline-gingerbread-lib.xml b/library/lint-baseline-gingerbread-lib.xml new file mode 100644 index 0000000..3f25063 --- /dev/null +++ b/library/lint-baseline-gingerbread-lib.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/library/lint-baseline-lib.xml b/library/lint-baseline-lib.xml new file mode 100644 index 0000000..13e3085 --- /dev/null +++ b/library/lint-baseline-lib.xml @@ -0,0 +1,15 @@ + + + + + + + + -- cgit v1.2.3