From df0b83966161d767714909dff032648c0d83d4c8 Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Wed, 12 Feb 2025 18:27:03 +0000 Subject: 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 --- java/aar.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'java/aar.go') diff --git a/java/aar.go b/java/aar.go index 95387a358..f7c5c13de 100644 --- a/java/aar.go +++ b/java/aar.go @@ -1638,9 +1638,8 @@ func (m AARImportDepInSameApexChecker) OutgoingDepIsInSameApex(tag blueprint.Dep } // Implements android.ApexModule -func (a *AARImport) ShouldSupportSdkVersion(ctx android.BaseModuleContext, - sdkVersion android.ApiLevel) error { - return nil +func (a *AARImport) MinSdkVersionSupported(ctx android.BaseModuleContext) android.ApiLevel { + return android.MinApiLevel } var _ android.PrebuiltInterface = (*AARImport)(nil) -- cgit v1.2.3-59-g8ed1b