Merge changes from topic "bp2build-ignore-test-apex-tags"

* changes:
  Ignore test apexes from bp2build generated tags
  Ignore test apexes from bp2build generated tags
This commit is contained in:
Spandan Das
2023-05-01 16:05:38 +00:00
committed by Gerrit Code Review
14 changed files with 71 additions and 17 deletions

View File

@@ -462,6 +462,14 @@ const (
AvailableToGkiApex = "com.android.gki.*"
)
var (
AvailableToRecognziedWildcards = []string{
AvailableToPlatform,
AvailableToAnyApex,
AvailableToGkiApex,
}
)
// CheckAvailableForApex provides the default algorithm for checking the apex availability. When the
// availability is empty, it defaults to ["//apex_available:platform"] which means "available to the
// platform but not available to any APEX". When the list is not empty, `what` is matched against
@@ -925,3 +933,9 @@ func CheckMinSdkVersion(ctx ModuleContext, minSdkVersion ApiLevel, walk WalkPayl
return true
})
}
// Implemented by apexBundle.
type ApexTestInterface interface {
// Return true if the apex bundle is an apex_test
IsTestApex() bool
}