Snap for 7809322 from bee6271909 to sc-d2-release

Change-Id: Ida2d8d6f66f9d93f6c8bffe9f59626311b369b5c
This commit is contained in:
Android Build Coastguard Worker 2021-10-09 21:00:43 +00:00
commit dbb23ac878
1 changed files with 12 additions and 0 deletions

View File

@ -486,6 +486,18 @@ type AndroidLibrary struct {
exportedStaticPackages android.Paths
}
var _ android.OutputFileProducer = (*AndroidLibrary)(nil)
// For OutputFileProducer interface
func (a *AndroidLibrary) OutputFiles(tag string) (android.Paths, error) {
switch tag {
case ".aar":
return []android.Path{a.aarFile}, nil
default:
return a.Library.OutputFiles(tag)
}
}
func (a *AndroidLibrary) ExportedProguardFlagFiles() android.Paths {
return a.exportedProguardFlagFiles
}