diff --git a/android/prebuilt.go b/android/prebuilt.go index 8559df923..0ee1201a7 100644 --- a/android/prebuilt.go +++ b/android/prebuilt.go @@ -195,6 +195,10 @@ func (p *Prebuilt) usePrebuilt(ctx TopDownMutatorContext, source Module) bool { return source == nil || !source.Enabled() } +func (p *Prebuilt) SourceExists() bool { + return p.properties.SourceExists +} + func (p *Prebuilt) checkSingleSourceProperties() { if !p.srcProps.IsValid() || p.srcField.Name == "" { panic(fmt.Errorf("invalid single source prebuilt %+v", p)) @@ -215,7 +219,3 @@ func (p *Prebuilt) getSingleSourceFieldValue() string { } return value.String() } - -func (p *Prebuilt) SourceExists() bool { - return p.properties.SourceExists -}