Merge "Add {.aar} support for android_library" am: db3ff57368
am: 7b3130a459
am: 7181c70efb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1826617 Change-Id: I7edde41fad13fcc6b9d3c89c66ec604bf9b29fea
This commit is contained in:
12
java/aar.go
12
java/aar.go
@@ -486,6 +486,18 @@ type AndroidLibrary struct {
|
|||||||
exportedStaticPackages android.Paths
|
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 {
|
func (a *AndroidLibrary) ExportedProguardFlagFiles() android.Paths {
|
||||||
return a.exportedProguardFlagFiles
|
return a.exportedProguardFlagFiles
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user