Add support for running Android lint on java and android modules.
Add a rule that runs Android lint on each java and android module and produces reports in xml, html and text formats. Bug: 153485543 Test: m out/soong/.intermediates/packages/apps/Settings/Settings-core/android_common/lint-report.html Change-Id: I5a530975b73ba767fef45b257d4f9ec901a19fcb
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user