From 37e102ec70b292a914d545291ff994ce03aa46fb Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Mon, 5 Oct 2020 16:42:40 +0100 Subject: [PATCH] Add last_released checking for non-updatable API This makes the build fail when APIs are removed from the (non-updatable) framework.jar, and e.g. into a module. This is in general not safe, so is a reasonable default. When it needs overriding (when e.g. creating now modules), incompatibilities.txt can be used for that. Bug: 170105267 Test: m checkapi Change-Id: If608be48276f0a7f76afd714656267ed379ce062 --- StubLibraries.bp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/StubLibraries.bp b/StubLibraries.bp index a3a2094586794..0bb42af6260f3 100644 --- a/StubLibraries.bp +++ b/StubLibraries.bp @@ -143,6 +143,11 @@ droidstubs { api_file: "non-updatable-api/current.txt", removed_api_file: "non-updatable-api/removed.txt", }, + last_released: { + api_file: ":android-non-updatable.api.public.latest", + removed_api_file: ":android-non-updatable-removed.api.public.latest", + baseline_file: ":public-api-incompatibilities-with-last-released", + }, api_lint: { enabled: true, new_since: ":android-non-updatable.api.public.latest", @@ -205,6 +210,11 @@ droidstubs { api_file: "non-updatable-api/system-current.txt", removed_api_file: "non-updatable-api/system-removed.txt", }, + last_released: { + api_file: ":android-non-updatable.api.system.latest", + removed_api_file: ":android-non-updatable-removed.api.system.latest", + baseline_file: ":system-api-incompatibilities-with-last-released" + }, api_lint: { enabled: true, new_since: ":android-non-updatable.api.system.latest",