diff options
author | 2025-02-19 17:23:34 -0800 | |
---|---|---|
committer | 2025-02-20 22:27:18 -0800 | |
commit | 1dcf9e45c1859da296b5a08d2f14fe57ece1c3da (patch) | |
tree | e61aec252198846adc6fc3e3f38cf2657d66775c /java/app.go | |
parent | 9e735e2059264b853c8fd0bdc7ccc034e9a4d886 (diff) |
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
Diffstat (limited to 'java/app.go')
-rw-r--r-- | java/app.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/app.go b/java/app.go index 9b10bf3cd..7580db4c6 100644 --- a/java/app.go +++ b/java/app.go @@ -452,6 +452,16 @@ func (a *AndroidApp) GenerateAndroidBuildActions(ctx android.ModuleContext) { android.SetProvider(ctx, AppInfoProvider, appInfo) a.requiredModuleNames = a.getRequiredModuleNames(ctx) + + if a.dexer.proguardDictionary.Valid() { + android.SetProvider(ctx, ProguardProvider, ProguardInfo{ + ModuleName: ctx.ModuleName(), + Class: "APPS", + ProguardDictionary: a.dexer.proguardDictionary.Path(), + ProguardUsageZip: a.dexer.proguardUsageZip.Path(), + ClassesJar: a.implementationAndResourcesJar, + }) + } } func (a *AndroidApp) getRequiredModuleNames(ctx android.ModuleContext) []string { |