summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author satayev <satayev@google.com> 2021-11-29 17:25:52 +0000
committer satayev <satayev@google.com> 2021-12-01 17:51:22 +0000
commit0a420e771a2201c99f570cf48bd09a6bd837cce2 (patch)
treed953a4b75c1666f2a2065c753b01e29836874da8 /java/java.go
parent0ee2f913ef7ab1948e3225adf6ae1befaf0820dd (diff)
Introduce max_sdk_version device property.
Artifacts that go into apexes should only be active on certain SDK versions. There is now a need to upper bound the range to support expressiong statements like "this jar should only run on platforms 30-31". Bug: 190818041 Test: presubmit Change-Id: I6985ebb671841cdd9f0f37f916267ac5ed76e4f4
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 2f9e03a80..e8a8236f7 100644
--- a/java/java.go
+++ b/java/java.go
@@ -545,6 +545,7 @@ func setUncompressDex(ctx android.ModuleContext, dexpreopter *dexpreopter, dexer
func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) {
j.sdkVersion = j.SdkVersion(ctx)
j.minSdkVersion = j.MinSdkVersion(ctx)
+ j.maxSdkVersion = j.MaxSdkVersion(ctx)
apexInfo := ctx.Provider(android.ApexInfoProvider).(android.ApexInfo)
if !apexInfo.IsForPlatform() {