Merge "rust: Fix exported MinSdkVersion" am: 2a1291d01d am: 5a7edb74d1

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1944330

Change-Id: Icc3cd7cd6d2502d1d122d630c78e8df720b6f33d
This commit is contained in:
Ivan Lozano
2022-01-14 23:29:19 +00:00
committed by Automerger Merge Worker

View File

@@ -366,10 +366,6 @@ func (mod *Module) SdkVersion() string {
return ""
}
func (mod *Module) MinSdkVersion() string {
return ""
}
func (mod *Module) AlwaysSdk() bool {
return false
}
@@ -1497,15 +1493,13 @@ func (mod *Module) HostToolPath() android.OptionalPath {
var _ android.ApexModule = (*Module)(nil)
func (mod *Module) minSdkVersion() string {
func (mod *Module) MinSdkVersion() string {
return String(mod.Properties.Min_sdk_version)
}
var _ android.ApexModule = (*Module)(nil)
// Implements android.ApexModule
func (mod *Module) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVersion android.ApiLevel) error {
minSdkVersion := mod.minSdkVersion()
minSdkVersion := mod.MinSdkVersion()
if minSdkVersion == "apex_inherit" {
return nil
}