pom2bp: move misplaced {{end}}
manifest property should only be added to aar imports and not jar imports. Bug: 110848854 Test: cd prebuilts/sdk/current/support && pom2bp -regen Android.bp Change-Id: Ifaab81582c87f0af4419f90c3928d0d5d52cec33
This commit is contained in:
@@ -281,8 +281,8 @@ var bpTemplate = template.Must(template.New("bp").Parse(`
|
|||||||
{{if .IsAar}}android_library{{else}}java_library_static{{end}} {
|
{{if .IsAar}}android_library{{else}}java_library_static{{end}} {
|
||||||
name: "{{.BpName}}",
|
name: "{{.BpName}}",
|
||||||
sdk_version: "{{.SdkVersion}}",{{if .IsAar}}
|
sdk_version: "{{.SdkVersion}}",{{if .IsAar}}
|
||||||
min_sdk_version: "{{.MinSdkVersion}}",{{end}}
|
min_sdk_version: "{{.MinSdkVersion}}",
|
||||||
manifest: "manifests/{{.BpName}}/AndroidManifest.xml",
|
manifest: "manifests/{{.BpName}}/AndroidManifest.xml",{{end}}
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"{{.BpName}}-nodeps",{{range .BpJarDeps}}
|
"{{.BpName}}-nodeps",{{range .BpJarDeps}}
|
||||||
"{{.}}",{{end}}{{range .BpAarDeps}}
|
"{{.}}",{{end}}{{range .BpAarDeps}}
|
||||||
|
Reference in New Issue
Block a user