diff options
Diffstat (limited to 'java/hiddenapi_modular.go')
-rw-r--r-- | java/hiddenapi_modular.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/hiddenapi_modular.go b/java/hiddenapi_modular.go index 60300afe1..de72b39aa 100644 --- a/java/hiddenapi_modular.go +++ b/java/hiddenapi_modular.go @@ -589,6 +589,19 @@ func (b bootDexJarByModule) bootDexJars() android.Paths { return paths } +// bootDexJarsWithoutCoverage returns the boot dex jar paths sorted by their keys without coverage +// libraries if present. +func (b bootDexJarByModule) bootDexJarsWithoutCoverage() android.Paths { + paths := android.Paths{} + for _, k := range android.SortedStringKeys(b) { + if k == "jacocoagent" { + continue + } + paths = append(paths, b[k]) + } + return paths +} + // HiddenAPIOutput encapsulates the output from the hidden API processing. type HiddenAPIOutput struct { HiddenAPIFlagOutput |