Merge "Always set targetSdkLevel to DefaultAppTargetSdk" into rvc-dev

This commit is contained in:
Nikita Ioffe 2020-05-20 10:39:07 +00:00 committed by Android (Google) Code Review
commit b029f03191

View file

@ -445,11 +445,11 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
}
targetSdkVersion := ctx.Config().DefaultAppTargetSdk()
// TODO(b/157078772): propagate min_sdk_version to apexer.
minSdkVersion := ctx.Config().DefaultAppTargetSdk()
if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
minSdkVersion = strconv.Itoa(a.minSdkVersion(ctx))
targetSdkVersion = strconv.Itoa(a.minSdkVersion(ctx))
}
if java.UseApiFingerprint(ctx) {