Pass module to SdkMemberTypeDependencyTag.SdkMemberType
This change allows an SdkMemberTypeDependencyTag to select the SdkMemberType to use to add a dependency based on the module. Bug: 177892522 Test: m nothing Change-Id: I2d6e51b615636dc7cd41da65808ef851dd8ae6ac
This commit is contained in:
@@ -120,7 +120,7 @@ func (s *sdk) collectMembers(ctx android.ModuleContext) {
|
||||
ctx.WalkDeps(func(child android.Module, parent android.Module) bool {
|
||||
tag := ctx.OtherModuleDependencyTag(child)
|
||||
if memberTag, ok := tag.(android.SdkMemberTypeDependencyTag); ok {
|
||||
memberType := memberTag.SdkMemberType()
|
||||
memberType := memberTag.SdkMemberType(child)
|
||||
|
||||
// Make sure that the resolved module is allowed in the member list property.
|
||||
if !memberType.IsInstance(child) {
|
||||
|
Reference in New Issue
Block a user