Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2626efd authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove IDEInfo method from java_sdk_library" into main

parents a2cc45dd 6a1d0291
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -2481,19 +2481,3 @@ func (s *sdkLibrarySdkMemberProperties) AddToPropertySet(ctx android.SdkMemberCo
		propertySet.AddProperty("doctag_files", dests)
	}
}

// TODO(b/358613520): This can be removed when modules are no longer allowed to depend on the top-level library.
func (s *SdkLibrary) IDEInfo(ctx android.BaseModuleContext, dpInfo *android.IdeInfo) {
	s.Library.IDEInfo(ctx, dpInfo)
	if s.implLibraryModule != nil {
		dpInfo.Deps = append(dpInfo.Deps, s.implLibraryModule.Name())
	} else {
		// This java_sdk_library does not have an implementation (it sets `api_only` to true).
		// Examples of this are `art.module.intra.core.api` (IntraCore api surface).
		// Return the "public" stubs for these.
		stubPaths := s.findClosestScopePath(apiScopePublic)
		if len(stubPaths.stubsHeaderPath) > 0 {
			dpInfo.Jars = append(dpInfo.Jars, stubPaths.stubsHeaderPath[0].String())
		}
	}
}