Merge "Revert "Revert "R8/D8 should use sdk_version prop to determine API surface stability."""

This commit is contained in:
Treehugger Robot
2023-02-23 21:39:49 +00:00
committed by Gerrit Code Review
4 changed files with 38 additions and 15 deletions

View File

@@ -1487,7 +1487,14 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
}
// Dex compilation
var dexOutputFile android.OutputPath
dexOutputFile = j.dexer.compileDex(ctx, flags, j.MinSdkVersion(ctx), implementationAndResourcesJar, jarName)
params := &compileDexParams{
flags: flags,
sdkVersion: j.SdkVersion(ctx),
minSdkVersion: j.MinSdkVersion(ctx),
classesJar: implementationAndResourcesJar,
jarName: jarName,
}
dexOutputFile = j.dexer.compileDex(ctx, params)
if ctx.Failed() {
return
}