diff options
author | 2024-12-10 16:36:26 +0000 | |
---|---|---|
committer | 2024-12-10 16:36:26 +0000 | |
commit | d29a1a83c251f570d438487aafe51680e3ece76f (patch) | |
tree | 5ef00e68d76f138b49cc6dfea7d67a27edbe7ec0 /android/apex.go | |
parent | 110e0a8ff28d44c041226715f83182e7bb6a9e23 (diff) | |
parent | 6a730045b5bfcfdc3e0709f4283ade8a541dc618 (diff) |
Merge changes I0bf0c186,I859cd636,Ie438d7a7,I30f82aea into main
* changes:
Add and use staticLibrary()
Convert WalkPayloadDeps from blueprint.Module to android.Module
Remove AlwaysRequireApexVariantTag
Move transition code to transition.go
Diffstat (limited to 'android/apex.go')
-rw-r--r-- | android/apex.go | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/android/apex.go b/android/apex.go index db9391204..f625bafcc 100644 --- a/android/apex.go +++ b/android/apex.go @@ -264,9 +264,6 @@ type ApexProperties struct { // Marker interface that identifies dependencies that are excluded from APEX contents. // -// Unless the tag also implements the AlwaysRequireApexVariantTag this will prevent an apex variant -// from being created for the module. -// // At the moment the sdk.sdkRequirementsMutator relies on the fact that the existing tags which // implement this interface do not define dependencies onto members of an sdk_snapshot. If that // changes then sdk.sdkRequirementsMutator will need fixing. @@ -277,17 +274,6 @@ type ExcludeFromApexContentsTag interface { ExcludeFromApexContents() } -// Marker interface that identifies dependencies that always requires an APEX variant to be created. -// -// It is possible for a dependency to require an apex variant but exclude the module from the APEX -// contents. See sdk.sdkMemberDependencyTag. -type AlwaysRequireApexVariantTag interface { - blueprint.DependencyTag - - // Return true if this tag requires that the target dependency has an apex variant. - AlwaysRequireApexVariant() bool -} - // Interface that identifies dependencies to skip Apex dependency check type SkipApexAllowedDependenciesCheck interface { // Returns true to skip the Apex dependency check, which limits the allowed dependency in build. @@ -778,7 +764,7 @@ func (d *ApexBundleDepsInfo) BuildDepsInfoLists(ctx ModuleContext, minSdkVersion // Function called while walking an APEX's payload dependencies. // // Return true if the `to` module should be visited, false otherwise. -type PayloadDepsCallback func(ctx BaseModuleContext, from blueprint.Module, to ApexModule, externalDep bool) bool +type PayloadDepsCallback func(ctx BaseModuleContext, from Module, to ApexModule, externalDep bool) bool type WalkPayloadDepsFunc func(ctx BaseModuleContext, do PayloadDepsCallback) // ModuleWithMinSdkVersionCheck represents a module that implements min_sdk_version checks @@ -806,7 +792,7 @@ func CheckMinSdkVersion(ctx ModuleContext, minSdkVersion ApiLevel, walk WalkPayl return } - walk(ctx, func(ctx BaseModuleContext, from blueprint.Module, to ApexModule, externalDep bool) bool { + walk(ctx, func(ctx BaseModuleContext, from Module, to ApexModule, externalDep bool) bool { if externalDep { // external deps are outside the payload boundary, which is "stable" // interface. We don't have to check min_sdk_version for external |