Allow other module types in androidx

1. Update pom2bp to support "host_support" device module.
2. Allow other module type in support library

(The intention is to support the room annotation processor)

Test: m

Bug: 137918883

Change-Id: I9a8fbcff903cc395d5dc38430774202ce389d6bc
This commit is contained in:
Tony Mak
2019-07-18 21:36:44 +01:00
parent f0976d6530
commit bd7c2f9a1d
2 changed files with 35 additions and 4 deletions

View File

@@ -52,8 +52,6 @@ func supportLibrariesMakeVarsProvider(ctx android.MakeVarsContext) {
supportAars = append(supportAars, name)
case *Library, *Import:
supportJars = append(supportJars, name)
default:
ctx.ModuleErrorf(module, "unknown module type %t", module)
}
})