platform_build_soong/sdk
Paul Duffin 593b3c9fb0 Ensure prebuilt modules have same visibility as source modules
Exports visibility and package mutator registration functions so they
can be used in sdk testing. Updates sdk test to support visibility and
package modules.

Adds EffectiveVisibility(...)[]string function to make the effective
visibility rules available to sdk snapshot creation.

Extracts compositeRule.Strings() []string from compositeRule.String()
method so that it can be used by above func.

Adds visibility property to sdk snapshot and prebuilt modules along
with a test to ensure it works properly.

Adds dir parameter to CheckSnapshot so that it can check the snapshot
generated for a non-root package. That is required in order to ensure
that visibility of :__subpackages__ on a source module in package
<pkg> is resolved to an effective visibility of
//<pkg>:__subpackages__ on its corresponding prebuilt.

Test: m conscrypt-module-sdk
Bug: 143678475
Change-Id: Icaacac5b9c04726d28e6fec93e49715ac45df7f4
2019-12-09 13:32:28 +00:00
..
bp.go Add model to represent generated snapshot .bp file 2019-12-02 12:59:38 +00:00
cc_sdk_test.go Ensure prebuilt modules have same visibility as source modules 2019-12-09 13:32:28 +00:00
java_sdk_test.go Ensure prebuilt modules have same visibility as source modules 2019-12-09 13:32:28 +00:00
sdk.go Support header and implementation jars in sdk 2019-12-06 16:13:58 +00:00
sdk_test.go Ensure prebuilt modules have same visibility as source modules 2019-12-09 13:32:28 +00:00
testing.go Ensure prebuilt modules have same visibility as source modules 2019-12-09 13:32:28 +00:00
update.go Ensure prebuilt modules have same visibility as source modules 2019-12-09 13:32:28 +00:00