Verify APIs are compatible with last released api by default

Previously, the checking of the current API for compatibility with the
previously released API was only enabled for a white list of targets
which included api-stubs-docs and system-api-stubs-docs. This change
replaces the white list of targets to check with a black list of targets
not to check so that the checks are performed by default.

The black list currently consists only of android.car-system-stubs-docs.

Bug: 134485888
Bug: 123222452
Test: m checkapi with an incompatible conscrypt API
Change-Id: I3b48b6cfb61e1f39d74fc48d9d2c0415f886d959
This commit is contained in:
Paul Duffin 2020-01-06 15:11:48 +00:00
parent 17cf0ab3bc
commit a465e435c2

View file

@ -613,7 +613,7 @@ func (dstubs *Droidstubs) AndroidMkEntries() []android.AndroidMkEntries {
fmt.Fprintln(w, dstubs.Name()+"-check-last-released-api:",
dstubs.checkLastReleasedApiTimestamp.String())
if dstubs.Name() == "api-stubs-docs" || dstubs.Name() == "system-api-stubs-docs" {
if dstubs.Name() != "android.car-system-stubs-docs" {
fmt.Fprintln(w, ".PHONY: checkapi")
fmt.Fprintln(w, "checkapi:",
dstubs.checkLastReleasedApiTimestamp.String())