Merge "Declare proguard_dictionary as implicit output of r8"

This commit is contained in:
Treehugger Robot
2018-05-17 05:24:05 +00:00
committed by Gerrit Code Review

View File

@@ -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, " "),