diff options
Diffstat (limited to 'java/hiddenapi.go')
| -rw-r--r-- | java/hiddenapi.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/hiddenapi.go b/java/hiddenapi.go index 104cd767b..01e2c5ec2 100644 --- a/java/hiddenapi.go +++ b/java/hiddenapi.go @@ -15,6 +15,8 @@ package java import ( + "path/filepath" + "github.com/google/blueprint" "android/soong/android" @@ -173,3 +175,14 @@ func hiddenAPIEncodeDex(ctx android.ModuleContext, output android.WritablePath, TransformZipAlign(ctx, output, tmpOutput) } } + +type hiddenAPIPath struct { + path string +} + +var _ android.Path = (*hiddenAPIPath)(nil) + +func (p *hiddenAPIPath) String() string { return p.path } +func (p *hiddenAPIPath) Ext() string { return filepath.Ext(p.path) } +func (p *hiddenAPIPath) Base() string { return filepath.Base(p.path) } +func (p *hiddenAPIPath) Rel() string { return p.path } |