Merge "Allow the user to explicitly set the java Uncompress_dex property." into rvc-dev am: 6270b775de

Change-Id: If73110d3028a1accf0cf61e6baa3b265f443f763
This commit is contained in:
TreeHugger Robot
2020-05-27 04:58:51 +00:00
committed by Automerger Merge Worker
6 changed files with 84 additions and 14 deletions

View File

@@ -2866,6 +2866,32 @@ func TestUncompressDex(t *testing.T) {
uncompressedPlatform: true,
uncompressedUnbundled: true,
},
{
name: "normal_uncompress_dex_true",
bp: `
android_app {
name: "foo",
srcs: ["a.java"],
sdk_version: "current",
uncompress_dex: true,
}
`,
uncompressedPlatform: true,
uncompressedUnbundled: true,
},
{
name: "normal_uncompress_dex_false",
bp: `
android_app {
name: "foo",
srcs: ["a.java"],
sdk_version: "current",
uncompress_dex: false,
}
`,
uncompressedPlatform: false,
uncompressedUnbundled: false,
},
}
test := func(t *testing.T, bp string, want bool, unbundled bool) {