From a465e435c2f7fb01103f543e97b008ebd138f74a Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 6 Jan 2020 15:11:48 +0000 Subject: [PATCH] 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 --- java/androidmk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/androidmk.go b/java/androidmk.go index 11fea82d6..7b74293f5 100644 --- a/java/androidmk.go +++ b/java/androidmk.go @@ -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())