diff options
| author | 2019-02-21 05:03:00 +0000 | |
|---|---|---|
| committer | 2019-02-21 05:03:00 +0000 | |
| commit | ab898dc4a4645166c469e5409d2f42282a72d777 (patch) | |
| tree | 0f0f62f25cb4a546543d4faddd084fb18df8d09b /java/hiddenapi.go | |
| parent | acdd6940719125104dfd2f692990c99682f95f05 (diff) | |
Revert "Make RuleBuilder methods take Paths"
This reverts commit acdd6940719125104dfd2f692990c99682f95f05.
Reason for revert: broke ndk build
Change-Id: I5655e48c15eb8f5f0267afdd853fbc25765b8623
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 } |