summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2021-02-03 18:34:00 +0000
committerPaul Duffin <paulduffin@google.com>2021-02-05 13:33:25 +0000
commitdd63d6d7bdae32a1bf89a1ce8ade15ee10afd6cc (patch)
tree43800443a8b2ad66fdc78fcdbb790acd9bf56a25 /sdk/java_sdk_test.go
parentb89336487e22a3671b5e095c279fb33970ea2d39 (diff)
Improve module filtering in hiddenapi stubFlagsRule()
Previously, it ignored any module that was not a platform apex variant however that required every module that was referenced from the boot jars to have a platform variant which is not the case when building from prebuilts. This change switches it to explicitly check that the variant is for either the appropriate apex or the platform depending on what is configured in the BootJars or UpdatableBootJars. It partially duplicates some logic from the getBootImageJar() function. It intentionally does not refactor the getBootImageJar() to allow for reuse because coupling the hiddenapi and dexpreopt logic would make refactoring either of them more difficult. Any duplicated code will be deduped once they have both been refactored. Bug: 178361284 Test: m droid Change-Id: I4b4e0dc8ee40c1ba1713d7ef72df13d175e84af6
Diffstat (limited to 'sdk/java_sdk_test.go')
0 files changed, 0 insertions, 0 deletions