Replace aapt support with aapt2

Use aapt2 instead of aapt to compile Android app resources.
Also generate all files into srcjars instead of individual
sources.

Test: m checkbuild
Change-Id: I5a67991a0daf0017e8159b46fcff7d5564a91468
This commit is contained in:
Colin Cross
2017-11-22 16:19:37 -08:00
parent 0875c52de7
commit 3bc7ffa59b
10 changed files with 498 additions and 198 deletions

View File

@@ -428,6 +428,18 @@ func (p WritablePaths) Strings() []string {
return ret
}
// Paths returns the WritablePaths as a Paths
func (p WritablePaths) Paths() Paths {
if p == nil {
return nil
}
ret := make(Paths, len(p))
for i, path := range p {
ret[i] = path
}
return ret
}
type basePath struct {
path string
config Config