summaryrefslogtreecommitdiff
path: root/java/sdk_library_internal.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-02-12 18:27:03 +0000
committer Yu Liu <yudiliu@google.com> 2025-02-13 19:43:22 +0000
commitdf0b83966161d767714909dff032648c0d83d4c8 (patch)
tree8fbc01fd9a303604a99c73bd2a1f2a878e3f3088 /java/sdk_library_internal.go
parentcbf8ee89a8d292ec0b4ba5052bd58c13289abb4f (diff)
Convert CheckMinSdkVersion to use providers.
Next step is to convert it to use ModuleProxy once IsDepInSameApex is converted to use providers. Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: I20cb052666fa95eb964e63e3302ac892d3324183
Diffstat (limited to 'java/sdk_library_internal.go')
-rw-r--r--java/sdk_library_internal.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/java/sdk_library_internal.go b/java/sdk_library_internal.go
index db9cd24ce..578969223 100644
--- a/java/sdk_library_internal.go
+++ b/java/sdk_library_internal.go
@@ -807,10 +807,8 @@ func (module *sdkLibraryXml) DepsMutator(ctx android.BottomUpMutatorContext) {
var _ android.ApexModule = (*sdkLibraryXml)(nil)
// Implements android.ApexModule
-func (module *sdkLibraryXml) ShouldSupportSdkVersion(ctx android.BaseModuleContext,
- sdkVersion android.ApiLevel) error {
- // sdkLibraryXml doesn't need to be checked separately because java_sdk_library is checked
- return nil
+func (m *sdkLibraryXml) MinSdkVersionSupported(ctx android.BaseModuleContext) android.ApiLevel {
+ return android.MinApiLevel
}
// File path to the runtime implementation library