Enable an apex to include a java_import.

With the addition of the compile_dex property to the
java_import module it becomes possible to include a
java_import module in an apex. This change allows the
dependency and adds a test.

Bug: 177228901
Test: m nothing
Test: new TestApexWithJavaImport
Change-Id: I9336dade1857109e2fd21f7d57e1dc4abc4a402c
This commit is contained in:
Bill Peckham
2021-01-11 10:58:54 -08:00
parent bae4749de2
commit a41a6963b4
3 changed files with 34 additions and 1 deletions

View File

@@ -2831,6 +2831,10 @@ func (a *Import) JacocoReportClassesFile() android.Path {
return nil
}
func (j *Import) LintDepSets() LintDepSets {
return LintDepSets{}
}
func (j *Import) DepsMutator(ctx android.BottomUpMutatorContext) {
ctx.AddVariationDependencies(nil, libTag, j.properties.Libs...)