Make hidden API handle jacoco-stubs consistently am: 098c878838
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1707571 Change-Id: I5b1116f5fadda22142f3bf40f2782c9cf8afc10c
This commit is contained in:
@@ -99,7 +99,12 @@ func hiddenAPIComputeMonolithicStubLibModules(config android.Config) map[android
|
|||||||
systemStubModules = append(systemStubModules, config.ProductHiddenAPIStubsSystem()...)
|
systemStubModules = append(systemStubModules, config.ProductHiddenAPIStubsSystem()...)
|
||||||
testStubModules = append(testStubModules, config.ProductHiddenAPIStubsTest()...)
|
testStubModules = append(testStubModules, config.ProductHiddenAPIStubsTest()...)
|
||||||
if config.IsEnvTrue("EMMA_INSTRUMENT") {
|
if config.IsEnvTrue("EMMA_INSTRUMENT") {
|
||||||
|
// Add jacoco-stubs to public, system and test. It doesn't make any real difference as public
|
||||||
|
// allows everyone access but it is needed to ensure consistent flags between the
|
||||||
|
// bootclasspath fragment generated flags and the platform_bootclasspath generated flags.
|
||||||
publicStubModules = append(publicStubModules, "jacoco-stubs")
|
publicStubModules = append(publicStubModules, "jacoco-stubs")
|
||||||
|
systemStubModules = append(systemStubModules, "jacoco-stubs")
|
||||||
|
testStubModules = append(testStubModules, "jacoco-stubs")
|
||||||
}
|
}
|
||||||
|
|
||||||
m := map[android.SdkKind][]string{}
|
m := map[android.SdkKind][]string{}
|
||||||
|
Reference in New Issue
Block a user