Merge "Add support for running Android lint on java and android modules." am: a553358b34 am: 05394377ba

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1324098

Change-Id: Iae0b83aef382b116bedefa896e72d0c244046c61
This commit is contained in:
Colin Cross
2020-06-18 01:44:53 +00:00
committed by Automerger Merge Worker
11 changed files with 710 additions and 0 deletions

View File

@@ -1224,6 +1224,21 @@ func DroidstubsHostFactory() android.Module {
return module
}
func (d *Droidstubs) OutputFiles(tag string) (android.Paths, error) {
switch tag {
case "":
return android.Paths{d.stubsSrcJar}, nil
case ".docs.zip":
return android.Paths{d.docZip}, nil
case ".annotations.zip":
return android.Paths{d.annotationsZip}, nil
case ".api_versions.xml":
return android.Paths{d.apiVersionsXml}, nil
default:
return nil, fmt.Errorf("unsupported module reference tag %q", tag)
}
}
func (d *Droidstubs) ApiFilePath() android.Path {
return d.apiFilePath
}