From 0decfb1f8a22d8d0420a4c344f39ae301c1e3c4e Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 19 Feb 2020 11:35:09 +0000 Subject: [PATCH] Enable compat checking & lint for system_services api These were previously turned off as there were no previous releases to compare it to. Check in empty files as comparison. Whitelist current lint problems for now (filed bugs to follow-up). Bug: 149818061 Bug: 149818284 Bug: 147559833 Test: m checkapi Change-Id: Ib4cbc84ac9a826f7b947c951c94f8f5578f4554d Merged-In: Ib4cbc84ac9a826f7b947c951c94f8f5578f4554d (cherry picked from commit daa9d884442284f654be37155f6fb50689380a63) --- services/Android.bp | 10 ++++++++++ services/api/lint-baseline.txt | 1 + 2 files changed, 11 insertions(+) create mode 100644 services/api/lint-baseline.txt diff --git a/services/Android.bp b/services/Android.bp index ccdfca0b765dc..cecadfd65c6da 100644 --- a/services/Android.bp +++ b/services/Android.bp @@ -126,6 +126,16 @@ droidstubs { api_file: "api/current.txt", removed_api_file: "api/removed.txt", }, + last_released: { + api_file: ":last-released-system-server-api", + removed_api_file: "api/removed.txt", + baseline_file: ":system-server-api-incompatibilities-with-last-released" + }, + api_lint: { + enabled: true, + new_since: ":last-released-system-server-api", + baseline_file: "api/lint-baseline.txt", + }, }, } diff --git a/services/api/lint-baseline.txt b/services/api/lint-baseline.txt new file mode 100644 index 0000000000000..9a97707763f11 --- /dev/null +++ b/services/api/lint-baseline.txt @@ -0,0 +1 @@ +// Baseline format: 1.0