pom2bp: add jar deps to -nodeps modules

The dependency type in the pom file is not always accurate, just
add all jar and aar dependencies to both the -nodeps and final
module.

Test: cd prebuilts/sdk/current/androidx && pom2bp -regen Android.bp && mma
Change-Id: I1784b8ebf3485db19405cb353c9bb5fb3ae837d8
This commit is contained in:
Colin Cross
2019-04-10 11:07:15 -07:00
parent cb4e0551a2
commit 1aa7f26a22

View File

@@ -328,6 +328,9 @@ var bpTemplate = template.Must(template.New("bp").Parse(`
{{- if .IsAar}} {{- if .IsAar}}
min_sdk_version: "{{.MinSdkVersion}}", min_sdk_version: "{{.MinSdkVersion}}",
static_libs: [ static_libs: [
{{- range .BpJarDeps}}
"{{.}}",
{{- end}}
{{- range .BpAarDeps}} {{- range .BpAarDeps}}
"{{.}}", "{{.}}",
{{- end}} {{- end}}