From 1dcf9e45c1859da296b5a08d2f14fe57ece1c3da Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 19 Feb 2025 17:23:34 -0800 Subject: Build proguard zips in soong-only builds This builds the zips but doesn't dist them, I'll do that in a followup. Bug: 395160816 Test: Diffed proguard-dict.zip proguard-usage.zip and proguard-dict-mapping.textproto between soong and make Change-Id: Ic112427e4a2fdaf92a1d0a96d0f1c100b57be37a --- java/java.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'java/java.go') diff --git a/java/java.go b/java/java.go index b9109ee94..505612031 100644 --- a/java/java.go +++ b/java/java.go @@ -1172,6 +1172,16 @@ func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) { buildComplianceMetadata(ctx) j.createApiXmlFile(ctx) + + if j.dexer.proguardDictionary.Valid() { + android.SetProvider(ctx, ProguardProvider, ProguardInfo{ + ModuleName: ctx.ModuleName(), + Class: "JAVA_LIBRARIES", + ProguardDictionary: j.dexer.proguardDictionary.Path(), + ProguardUsageZip: j.dexer.proguardUsageZip.Path(), + ClassesJar: j.implementationAndResourcesJar, + }) + } } func (j *Library) javaLibraryModuleInfoJSON(ctx android.ModuleContext) *android.ModuleInfoJSON { -- cgit v1.2.3-59-g8ed1b