Don't dexpreopt when compile_dex but not installable
Modules shouldn't be dexpreopted and possibly stripped when compile_dex is set but installable is not set. This matches the previous behavior when the dexpreopt rules were in Make. Bug: 121317615 Test: dexpreopt_test.go Change-Id: I6f80b7b37a990c475b91aa5d98a19a3baa85eb1b
This commit is contained in:
@@ -109,6 +109,16 @@ func TestDexpreoptEnabled(t *testing.T) {
|
||||
}`,
|
||||
enabled: false,
|
||||
},
|
||||
{
|
||||
name: "compile_dex",
|
||||
bp: `
|
||||
java_library {
|
||||
name: "foo",
|
||||
srcs: ["a.java"],
|
||||
compile_dex: true,
|
||||
}`,
|
||||
enabled: false,
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
Reference in New Issue
Block a user