From f1691d2a2c23631c25291bc653d25a8f906b9c5d Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 29 Mar 2021 20:11:58 +0900 Subject: Move java.sdkSpec to the android package ... in preparation for making the handling of sdk versions consistent across java and cc modules. Bug: 175678607 Test: m Change-Id: I598f0454bce9b7320621022115412fbe97403945 --- apex/builder.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apex/builder.go') diff --git a/apex/builder.go b/apex/builder.go index da800d4dc..2df380b5a 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -950,6 +950,10 @@ func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) { if v := m.MinSdkVersion(); v != "" { toMinSdkVersion = v } + } else if m, ok := to.(interface{ MinSdkVersionString() string }); ok { + if v := m.MinSdkVersionString(); v != "" { + toMinSdkVersion = v + } } depInfos[to.Name()] = android.ApexModuleDepInfo{ -- cgit v1.2.3-59-g8ed1b