summaryrefslogtreecommitdiff
path: root/sdk/sdk_test.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2025-02-06 01:38:16 +0000
committer Jihoon Kang <jihoonkang@google.com> 2025-02-06 18:50:10 +0000
commite6daf66f23b4a271940f1d8399374205312010ce (patch)
treec626737fe3a90926a4637aada186b0d15ef7392f /sdk/sdk_test.go
parentf3c0d67fa49d2d6fd338c52ad445aaefadfbc297 (diff)
Migrate api lint report dist rules to Soong
This change achieves the followings: 1. Fix the missing api lint report dist rules. Prior to https://r.android.com/3467664, the api lint report files were copied to the dist directory via the following dependency path: ``` droidcore -> checkapi -> <droidstubs name>-api-lint -> api lint report file ``` However, the aforementioned change removed the dependency path between droidcore and checkapi, and consequently the apilint/ subdirectory is not generated in the dist directory in ToT. This change fixes the broken behavior by adding "droidcore" as an additional dist goal for the api lint report file. 2. Migrate the api lint report dist rule from Androidmk to MakeVars(...). Change https://r.android.com/3476313 has added the support to dist files added via `MakeVars(...)` in Soong only build. This change utilizes this functionality to support disting the api lint report files in Soong only build. This change also breaks down the switch cases in getSoongOnlyDataFromMods to multiple conditionals, because a module can set more than one of the providers listed in the switch statement. Test: m droid dist --soong-only && ls -l out/dist/apilint Bug: 394365683 Change-Id: I32640312e92e13831486d66b658a04d96104170f
Diffstat (limited to 'sdk/sdk_test.go')
0 files changed, 0 insertions, 0 deletions