diff options
author | 2025-02-12 18:27:03 +0000 | |
---|---|---|
committer | 2025-02-13 19:43:22 +0000 | |
commit | df0b83966161d767714909dff032648c0d83d4c8 (patch) | |
tree | 8fbc01fd9a303604a99c73bd2a1f2a878e3f3088 /java/sdk_library.go | |
parent | cbf8ee89a8d292ec0b4ba5052bd58c13289abb4f (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.go')
-rw-r--r-- | java/sdk_library.go | 9 |
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() } |