Merge "Let APEX build against preferred java_sdk_library_import"

This commit is contained in:
Paul Duffin
2020-06-16 09:37:53 +00:00
committed by Gerrit Code Review
3 changed files with 248 additions and 38 deletions

View File

@@ -1975,7 +1975,7 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
case javaLibTag:
switch child.(type) {
case *java.Library, *java.SdkLibrary, *java.DexImport:
case *java.Library, *java.SdkLibrary, *java.DexImport, *java.SdkLibraryImport:
af := apexFileForJavaLibrary(ctx, child.(javaDependency), child.(android.Module))
if !af.Ok() {
ctx.PropertyErrorf("java_libs", "%q is not configured to be compiled into dex", depName)