diff options
author | 2024-05-24 01:03:20 +0000 | |
---|---|---|
committer | 2024-05-24 01:03:20 +0000 | |
commit | d6638ef5e95815ca0618b17a54bbfdda5290be04 (patch) | |
tree | 87cc98bf51629bb2906ba0122a8a0449fe0a7b6c /java/base.go | |
parent | 873384423668f851822975686dfef6786edf0856 (diff) | |
parent | d02bd377dad293a207651e035d14a21cb8ba7c73 (diff) |
Merge "Propagate DirectlyInAnyApex to transitive dependencies" into main am: d02bd377da
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3098497
Change-Id: I0e06d50acfe4713728649c81dd66a0343108ab73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/base.go')
-rw-r--r-- | java/base.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/java/base.go b/java/base.go index d04e97cb1..b9e236cf0 100644 --- a/java/base.go +++ b/java/base.go @@ -716,11 +716,7 @@ func (j *Module) shouldInstrumentInApex(ctx android.BaseModuleContext) bool { apexInfo, _ := android.ModuleProvider(ctx, android.ApexInfoProvider) isJacocoAgent := ctx.ModuleName() == "jacocoagent" - isApexVariantSdkLibImplLib := j.SdkLibraryName() != nil && - strings.HasSuffix(j.Name(), ".impl") && - len(apexInfo.InApexVariants) > 0 - - if (j.DirectlyInAnyApex() || isApexVariantSdkLibImplLib) && !isJacocoAgent && !apexInfo.IsForPlatform() { + if j.DirectlyInAnyApex() && !isJacocoAgent && !apexInfo.IsForPlatform() { if !inList(ctx.ModuleName(), config.InstrumentFrameworkModules) { return true } else if ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") { |