Add static_libs support to android_app bp2build converter.
With this change we can allow list WifiDirectDemo, as its dependencies happen to have manual BUILD file conversions. Test: ./build/bazel/scripts/run_presubmits.sh Change-Id: I68b4c2b129fe750913f013384c87a5332fdcc9b6
This commit is contained in:
@@ -66,7 +66,7 @@ func TestAndroidAppAllSupportedFields(t *testing.T) {
|
||||
"resb/res.png": "",
|
||||
"manifest/AndroidManifest.xml": "",
|
||||
},
|
||||
blueprint: `
|
||||
blueprint: simpleModuleDoNotConvertBp2build("android_app", "static_lib_dep") + `
|
||||
android_app {
|
||||
name: "TestApp",
|
||||
srcs: ["app.java"],
|
||||
@@ -74,6 +74,7 @@ android_app {
|
||||
package_name: "com.google",
|
||||
resource_dirs: ["resa", "resb"],
|
||||
manifest: "manifest/AndroidManifest.xml",
|
||||
static_libs: ["static_lib_dep"]
|
||||
}
|
||||
`,
|
||||
expectedBazelTargets: []string{
|
||||
@@ -85,6 +86,7 @@ android_app {
|
||||
"resb/res.png",
|
||||
]`,
|
||||
"custom_package": `"com.google"`,
|
||||
"deps": `[":static_lib_dep"]`,
|
||||
}),
|
||||
}})
|
||||
}
|
||||
|
Reference in New Issue
Block a user