Merge "Add {.aar} support for android_library" am: db3ff57368
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1826617 Change-Id: I2404648a8bdea49d13f2c747a75b82002ee172b5
This commit is contained in:
12
java/aar.go
12
java/aar.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user