summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-10-05 16:23:27 +0100
committerAnton Hansson <hansson@google.com>2020-10-05 16:23:27 +0100
commit3258a479d3eef3af5da6aeec87cdf74405cc1cb6 (patch)
tree8ed5af5a144ae04b3cfa5b890dc472860fef40f7
parentf1df6bf33ae6688dc4d3dfc7cee0db2b8f97f6c6 (diff)
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 Merged-In: If608be48276f0a7f76afd714656267ed379ce062
-rw-r--r--StubLibraries.bp10
1 files changed, 10 insertions, 0 deletions
diff --git a/StubLibraries.bp b/StubLibraries.bp
index 9e087f020246..fc42633461e5 100644
--- a/StubLibraries.bp
+++ b/StubLibraries.bp
@@ -140,6 +140,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",
@@ -202,6 +207,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",