summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-03-19 16:03:11 -0700
committerColin Cross <ccross@android.com>2019-03-19 23:33:47 +0000
commite560c4aabc9ef65ad10f6d795f56f2a1fbd8b3db (patch)
tree495f88e3db5e8aa9511a451a11bc2ec6f6c83353 /java/java.go
parent1b7a4b00742fe7bcd22ae04e1b9eae2c01b3677c (diff)
Support package_splits
Pass the package_splits list from the property to aapt2 as --split arguments, sign the extra outputs, install them, and add them as extra output files for SourceFileProducer. Bug: 127921149 Test: TestAppSplits Change-Id: Id94a53ae6a8a68ec81e98abba2fefc9c23feaa7a
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/java.go b/java/java.go
index dcd6dbe93..f088d8647 100644
--- a/java/java.go
+++ b/java/java.go
@@ -288,7 +288,8 @@ type Module struct {
proguardDictionary android.Path
// output file of the module, which may be a classes jar or a dex jar
- outputFile android.Path
+ outputFile android.Path
+ extraOutputFiles android.Paths
exportAidlIncludeDirs android.Paths
@@ -322,7 +323,7 @@ type Module struct {
}
func (j *Module) Srcs() android.Paths {
- return android.Paths{j.outputFile}
+ return append(android.Paths{j.outputFile}, j.extraOutputFiles...)
}
func (j *Module) DexJarFile() android.Path {