Merge "Declare proguard_dictionary as implicit output of r8"
am: 8265a8b81f
Change-Id: I201e616913985f5924c67056760a1cc29207551b
This commit is contained in:
14
java/dex.go
14
java/dex.go
@@ -238,14 +238,16 @@ func (j *Module) compileDex(ctx android.ModuleContext, flags javaBuilderFlags,
|
|||||||
if useR8 {
|
if useR8 {
|
||||||
// TODO(ccross): if this is an instrumentation test of an obfuscated app, use the
|
// TODO(ccross): if this is an instrumentation test of an obfuscated app, use the
|
||||||
// dictionary of the app and move the app from libraryjars to injars.
|
// dictionary of the app and move the app from libraryjars to injars.
|
||||||
j.proguardDictionary = android.PathForModuleOut(ctx, "proguard_dictionary")
|
proguardDictionary := android.PathForModuleOut(ctx, "proguard_dictionary")
|
||||||
|
j.proguardDictionary = proguardDictionary
|
||||||
r8Flags, r8Deps := j.r8Flags(ctx, flags)
|
r8Flags, r8Deps := j.r8Flags(ctx, flags)
|
||||||
ctx.Build(pctx, android.BuildParams{
|
ctx.Build(pctx, android.BuildParams{
|
||||||
Rule: r8,
|
Rule: r8,
|
||||||
Description: "r8",
|
Description: "r8",
|
||||||
Output: javalibJar,
|
Output: javalibJar,
|
||||||
Input: classesJar,
|
ImplicitOutput: proguardDictionary,
|
||||||
Implicits: r8Deps,
|
Input: classesJar,
|
||||||
|
Implicits: r8Deps,
|
||||||
Args: map[string]string{
|
Args: map[string]string{
|
||||||
"dxFlags": strings.Join(dxFlags, " "),
|
"dxFlags": strings.Join(dxFlags, " "),
|
||||||
"r8Flags": strings.Join(r8Flags, " "),
|
"r8Flags": strings.Join(r8Flags, " "),
|
||||||
|
Reference in New Issue
Block a user