diff options
author | 2025-02-12 15:37:44 -0800 | |
---|---|---|
committer | 2025-02-12 15:37:44 -0800 | |
commit | af8c7f85fc003fafb6aaa99cb382c47eda79c7dc (patch) | |
tree | c6b53cf50daa09776e76bd6011846e605ea2eb09 /java/droidstubs.go | |
parent | 3a43e39fa226d2631960a14d330b4774c4c6fdf0 (diff) | |
parent | a43fb2565c538de1768e8260168c8fd14df3a447 (diff) |
Merge "Move dists to GenerateAndroidBuildActions" into main
Diffstat (limited to 'java/droidstubs.go')
-rw-r--r-- | java/droidstubs.go | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/java/droidstubs.go b/java/droidstubs.go index c8f798a9b..caad6883e 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -1429,6 +1429,16 @@ func (d *Droidstubs) GenerateAndroidBuildActions(ctx android.ModuleContext) { d.setOutputFiles(ctx) d.setPhonyRules(ctx) + + if d.apiLintTimestamp != nil { + if d.apiLintReport != nil { + ctx.DistForGoalsWithFilename( + []string{fmt.Sprintf("%s-api-lint", d.Name()), "droidcore"}, + d.apiLintReport, + fmt.Sprintf("apilint/%s-lint-report.txt", d.Name()), + ) + } + } } func setDroidInfo(ctx android.ModuleContext, d *Droidstubs, info *StubsInfo, typ StubsType) { @@ -1524,18 +1534,6 @@ var ( } ) -func (d *Droidstubs) MakeVars(ctx android.MakeVarsModuleContext) { - if d.apiLintTimestamp != nil { - if d.apiLintReport != nil { - ctx.DistForGoalsWithFilename( - []string{fmt.Sprintf("%s-api-lint", d.Name()), "droidcore"}, - d.apiLintReport, - fmt.Sprintf("apilint/%s-lint-report.txt", d.Name()), - ) - } - } -} - func StubsDefaultsFactory() android.Module { module := &DocDefaults{} |