From 08dca38eb0978582125669dda49ba91c0b4ca36a Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 21 Jul 2020 20:31:17 -0700 Subject: Build transitive lint reports for apex modules Build and export transitive lint report zips for apex modules. Bug: 153485543 Test: m TARGET_BUILD_APPS=com.google.android.wifi lint-check dist Change-Id: I5a1805440452301a7e2c4ca91482b989638b54fb --- java/java.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'java/java.go') diff --git a/java/java.go b/java/java.go index 367b09cbb..ef9613df0 100644 --- a/java/java.go +++ b/java/java.go @@ -1707,6 +1707,9 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) { j.linter.compileSdkVersion = lintSDKVersionString(j.sdkVersion()) j.linter.javaLanguageLevel = flags.javaVersion.String() j.linter.kotlinLanguageLevel = "1.3" + if j.ApexName() != "" && ctx.Config().UnbundledBuildApps() { + j.linter.buildModuleReportZip = true + } j.linter.lint(ctx) } @@ -2789,6 +2792,10 @@ func (a *DexImport) JacocoReportClassesFile() android.Path { return nil } +func (a *DexImport) LintDepSets() LintDepSets { + return LintDepSets{} +} + func (j *DexImport) IsInstallable() bool { return true } -- cgit v1.2.3-59-g8ed1b