Merge "SdkSpec is fully using ApiLevel"

This commit is contained in:
Jiyong Park
2021-04-14 13:27:05 +00:00
committed by Gerrit Code Review
14 changed files with 145 additions and 123 deletions

View File

@@ -1512,7 +1512,7 @@ func (module *SdkLibrary) sdkJars(ctx android.BaseModuleContext, sdkVersion andr
// force override sdk_version to module_current so that the closest possible API
// surface could be found in selectHeaderJarsForSdkVersion
if module.defaultsToStubs() && !sdkVersion.Specified() {
sdkVersion = android.SdkSpecFrom("module_current")
sdkVersion = android.SdkSpecFrom(ctx, "module_current")
}
// Only provide access to the implementation library if it is actually built.