From e560c4aabc9ef65ad10f6d795f56f2a1fbd8b3db Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 19 Mar 2019 16:03:11 -0700 Subject: 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 --- java/java.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'java/java.go') 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 { -- cgit v1.2.3-59-g8ed1b