Add min_sdk_version to android_library_import modules

am: 479884c93d

Change-Id: Ie0406567bbf45fd42932c1bc57feffa1f103a400
This commit is contained in:
Colin Cross 2018-07-10 16:01:24 -07:00 committed by android-build-merger
commit 9405da836c

View file

@ -336,7 +336,8 @@ func AndroidLibraryFactory() android.Module {
type AARImportProperties struct {
Aars []string
Sdk_version *string
Sdk_version *string
Min_sdk_version *string
Static_libs []string
Libs []string
@ -362,6 +363,9 @@ func (a *AARImport) sdkVersion() string {
}
func (a *AARImport) minSdkVersion() string {
if a.properties.Min_sdk_version != nil {
return *a.properties.Min_sdk_version
}
return a.sdkVersion()
}