diff options
author | 2025-02-14 11:30:32 -0800 | |
---|---|---|
committer | 2025-02-14 11:30:32 -0800 | |
commit | 83cc13dc2ffdb2e1b77cb56e9d7dfb7b251a27ac (patch) | |
tree | c93dae512f34862da2db7d446f06bb8db3508262 /android/module.go | |
parent | 76c144a81ece23fef09c02d18fdf95aca52c0bf9 (diff) | |
parent | df0b83966161d767714909dff032648c0d83d4c8 (diff) |
Merge "Convert CheckMinSdkVersion to use providers." into main
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go index 55dd119e0..0ffb6cb53 100644 --- a/android/module.go +++ b/android/module.go @@ -1912,6 +1912,8 @@ type CommonModuleInfo struct { SkipInstall bool IsStubsModule bool Host bool + MinSdkVersionSupported ApiLevel + ModuleWithMinSdkVersionCheck bool } type ApiLevelOrPlatform struct { @@ -2292,7 +2294,13 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext) commonData.CanHaveApexVariants = am.CanHaveApexVariants() commonData.NotAvailableForPlatform = am.NotAvailableForPlatform() commonData.NotInPlatform = am.NotInPlatform() + commonData.MinSdkVersionSupported = am.MinSdkVersionSupported(ctx) } + + if _, ok := m.module.(ModuleWithMinSdkVersionCheck); ok { + commonData.ModuleWithMinSdkVersionCheck = true + } + if st, ok := m.module.(StubsAvailableModule); ok { commonData.IsStubsModule = st.IsStubsModule() } |