Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7adb6242 authored by Ivan Lozano's avatar Ivan Lozano Committed by Gerrit Code Review
Browse files

Merge "rust: Don't produce apex variants if apex_exclude" into main

parents 8d7b58e5 24cf036b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1756,6 +1756,16 @@ func (mod *Module) HostToolPath() android.OptionalPath {

var _ android.ApexModule = (*Module)(nil)

// If a module is marked for exclusion from apexes, don't provide apex variants.
// TODO(b/362509506): remove this once stubs are properly supported by rust_ffi targets.
func (m *Module) CanHaveApexVariants() bool {
	if m.ApexExclude() {
		return false
	} else {
		return m.ApexModuleBase.CanHaveApexVariants()
	}
}

func (mod *Module) MinSdkVersion() string {
	return String(mod.Properties.Min_sdk_version)
}