From a2db18fb1e721c63d9ad3e87c33718749d50c25e Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 22 Jan 2020 17:11:15 +0000 Subject: java_sdk_library use prebuilt jars for numeric sdk_version Previously, when a library that used a numeric sdk version also referenced a java_sdk_library it would use the current version of its API. That was dangerous as there is an expectation that an app building against a numbered version will also be targeted at that version and so building against a later version of the API could hide runtime incompatibilities. This change will use prebuilt versions of the java_sdk_library's api when being built for a numbered sdk version. Bug: 148080325 Test: m droid Change-Id: I3fd416553950785a443c1702e495a96debc33331 --- java/testing.go | 1 + 1 file changed, 1 insertion(+) (limited to 'java/testing.go') diff --git a/java/testing.go b/java/testing.go index e746e2d33..ecf0126e8 100644 --- a/java/testing.go +++ b/java/testing.go @@ -61,6 +61,7 @@ func TestConfig(buildDir string, env map[string]string, bp string, fs map[string "prebuilts/sdk/29/public/android.jar": nil, "prebuilts/sdk/29/public/framework.aidl": nil, "prebuilts/sdk/29/system/android.jar": nil, + "prebuilts/sdk/29/system/foo.jar": nil, "prebuilts/sdk/current/core/android.jar": nil, "prebuilts/sdk/current/public/android.jar": nil, "prebuilts/sdk/current/public/framework.aidl": nil, -- cgit v1.2.3-59-g8ed1b