summaryrefslogtreecommitdiff
path: root/java/base.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2023-02-23 18:05:05 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-02-23 18:05:05 +0000
commitc404cc79e9df9718428f980b0623cda6cdb26d7c (patch)
treed5fa17c78a6ac19c1becd619fb9a26bd2537c6b2 /java/base.go
parent7eb9243fa78189000da9d5beeabaea3b8b2c0fd5 (diff)
Revert "Revert "R8/D8 should use sdk_version prop to determine API surface stability.""
This reverts commit 7eb9243fa78189000da9d5beeabaea3b8b2c0fd5. Reason for revert: The original change was reverted since it was suspected to cause missing libc++.so errors. It was a red herring, and the root cause has been fixed now b/264588525 Change-Id: Ib9110c41bacf220b91f24de11589f63235895e56
Diffstat (limited to 'java/base.go')
-rw-r--r--java/base.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/java/base.go b/java/base.go
index 55d77dc4a..6e42aef33 100644
--- a/java/base.go
+++ b/java/base.go
@@ -1488,7 +1488,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
}