Automatically propagate jarjar rules for aconfig libraries

Test: treehugger
Bug: 310504781
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:97c03a6dc659102ff40793759fb3f0f18164a85b)
Merged-In: I639d12ff33175b7bed7e7d0595a40dd9b0d99367
Change-Id: I639d12ff33175b7bed7e7d0595a40dd9b0d99367
This commit is contained in:
Joe Onorato
2024-02-05 22:46:00 +00:00
committed by Android Build Cherrypicker Worker
parent bb0d5866c5
commit 349ae8dd6b
6 changed files with 270 additions and 7 deletions

View File

@@ -107,3 +107,8 @@ func (module *GeneratedJavaLibraryModule) GenerateAndroidBuildActions(ctx androi
module.Library.properties.Generated_srcjars = append(module.Library.properties.Generated_srcjars, srcJarPath)
module.Library.GenerateAndroidBuildActions(ctx)
}
// Add a rule to the jarjar renaming rules. See RepackageProviderData.
func (module *GeneratedJavaLibraryModule) AddJarJarRenameRule(original string, renamed string) {
module.addJarJarRenameRule(original, renamed)
}