Add last released API check to checkapi for public Android API
Test: make droid Bug: 123222452 Change-Id: I2b0b6c9196bfb963bd6085554ff6fdcc9cb53942
This commit is contained in:
parent
d15d614214
commit
e3fe481c5a
|
@ -381,6 +381,15 @@ func (ddoc *Droiddoc) AndroidMk() android.AndroidMkData {
|
|||
fmt.Fprintln(w, ".PHONY:", ddoc.Name()+"-check-last-released-api")
|
||||
fmt.Fprintln(w, ddoc.Name()+"-check-last-released-api:",
|
||||
ddoc.checkLastReleasedApiTimestamp.String())
|
||||
|
||||
if ddoc.Name() == "api-stubs-docs" {
|
||||
fmt.Fprintln(w, ".PHONY: checkapi")
|
||||
fmt.Fprintln(w, "checkapi:",
|
||||
ddoc.checkLastReleasedApiTimestamp.String())
|
||||
|
||||
fmt.Fprintln(w, ".PHONY: droidcore")
|
||||
fmt.Fprintln(w, "droidcore: checkapi")
|
||||
}
|
||||
}
|
||||
apiFilePrefix := "INTERNAL_PLATFORM_"
|
||||
if String(ddoc.properties.Api_tag_name) != "" {
|
||||
|
@ -459,6 +468,15 @@ func (dstubs *Droidstubs) AndroidMk() android.AndroidMkData {
|
|||
fmt.Fprintln(w, ".PHONY:", dstubs.Name()+"-check-last-released-api")
|
||||
fmt.Fprintln(w, dstubs.Name()+"-check-last-released-api:",
|
||||
dstubs.checkLastReleasedApiTimestamp.String())
|
||||
|
||||
if dstubs.Name() == "api-stubs-docs" {
|
||||
fmt.Fprintln(w, ".PHONY: checkapi")
|
||||
fmt.Fprintln(w, "checkapi:",
|
||||
dstubs.checkLastReleasedApiTimestamp.String())
|
||||
|
||||
fmt.Fprintln(w, ".PHONY: droidcore")
|
||||
fmt.Fprintln(w, "droidcore: checkapi")
|
||||
}
|
||||
}
|
||||
if dstubs.checkNullabilityWarningsTimestamp != nil {
|
||||
fmt.Fprintln(w, ".PHONY:", dstubs.Name()+"-check-nullability-warnings")
|
||||
|
|
Loading…
Reference in New Issue