summaryrefslogtreecommitdiff
path: root/java/sdk_library.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-02-14 11:30:32 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-14 11:30:32 -0800
commit83cc13dc2ffdb2e1b77cb56e9d7dfb7b251a27ac (patch)
treec93dae512f34862da2db7d446f06bb8db3508262 /java/sdk_library.go
parent76c144a81ece23fef09c02d18fdf95aca52c0bf9 (diff)
parentdf0b83966161d767714909dff032648c0d83d4c8 (diff)
Merge "Convert CheckMinSdkVersion to use providers." into main
Diffstat (limited to 'java/sdk_library.go')
-rw-r--r--java/sdk_library.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go
index fafb44801..cf31b5095 100644
--- a/java/sdk_library.go
+++ b/java/sdk_library.go
@@ -931,6 +931,8 @@ type commonSdkLibraryAndImportModule interface {
RootLibraryName() string
}
+var _ android.ApexModule = (*SdkLibrary)(nil)
+
func (m *SdkLibrary) RootLibraryName() string {
return m.BaseModuleName()
}
@@ -2153,13 +2155,10 @@ func (m SdkLibraryImportDepIsInSameApexChecker) OutgoingDepIsInSameApex(tag blue
}
// Implements android.ApexModule
-func (module *SdkLibraryImport) ShouldSupportSdkVersion(ctx android.BaseModuleContext,
- sdkVersion android.ApiLevel) error {
- // we don't check prebuilt modules for sdk_version
- return nil
+func (m *SdkLibraryImport) MinSdkVersionSupported(ctx android.BaseModuleContext) android.ApiLevel {
+ return android.MinApiLevel
}
-// Implements android.ApexModule
func (module *SdkLibraryImport) UniqueApexVariations() bool {
return module.uniqueApexVariations()
}