diff options
author | 2025-03-04 19:01:28 +0000 | |
---|---|---|
committer | 2025-03-07 23:16:47 +0000 | |
commit | ef9e63e775493bd73cb28917ad59e6b10e5506b5 (patch) | |
tree | ed7e9c2d65f85806a3ababb6bc8a1583465370a2 /apex/builder.go | |
parent | 8840812f9dfa3ba5ceecd75e582836a3c673d54b (diff) |
Rename CommonModuleInfoKey to be consistent with others.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: I1ce8bc782666586633ded9cfaf1b9590e3c0efde
Diffstat (limited to 'apex/builder.go')
-rw-r--r-- | apex/builder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apex/builder.go b/apex/builder.go index 2fc4902fb..6c500de8d 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -1111,7 +1111,7 @@ func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) { // Skip dependencies that are only available to APEXes; they are developed with updatability // in mind and don't need manual approval. - if android.OtherModuleProviderOrDefault(ctx, to, android.CommonModuleInfoKey).NotAvailableForPlatform { + if android.OtherModuleProviderOrDefault(ctx, to, android.CommonModuleInfoProvider).NotAvailableForPlatform { return !externalDep } @@ -1129,7 +1129,7 @@ func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) { depInfos[to.Name()] = info } else { toMinSdkVersion := "(no version)" - if info, ok := android.OtherModuleProvider(ctx, to, android.CommonModuleInfoKey); ok && + if info, ok := android.OtherModuleProvider(ctx, to, android.CommonModuleInfoProvider); ok && !info.MinSdkVersion.IsPlatform && info.MinSdkVersion.ApiLevel != nil { toMinSdkVersion = info.MinSdkVersion.ApiLevel.String() } |