platform_build_soong/sdk
Paul Duffin 1267d875b6 java_sdk_library: Make dex stub jars available for hiddenapi
The hidden API processing needs access to dex jars for the API stubs in
order to determine which dex members are part of an API surface. The
dex stubs used for the monolithic file are provided by normal
java_library modules for legacy reasons. However, the APEXes that
contribute to the bootclasspath, and so need to perform hidden API
processing, typically provide stubs created by a java_sdk_library.

This change adds support to java_sdk_library/_import to make the dex
stub jars available when requested, that involves:
1. Adding compile_dex property to java_sdk_library_import and
   propagating it down the the java_import modules for the stubs. That
   is already handled for java_sdk_library.
2. Propagating the java_sdk_library compile_dex property to the
   java_sdk_library_import in the generated snapshot.
3. Refactoring and wiring to make the dex stubs jar available to other
   parts of Soong.

Bug: 179354495
Test: m nothing
Change-Id: I5895d4f2ba0b684870862b9429b2364865e4afc6
2021-04-16 18:48:20 +01:00
..
Android.bp Add platform_compat_config to sdk 2021-03-22 19:13:40 +00:00
boot_image_sdk_test.go Add TestBasicSdkWithBootImage 2021-03-22 19:13:40 +00:00
bp.go Handle property structs and BpPropertySets as values to AddProperty. 2020-09-25 00:33:04 +01:00
bp_test.go Replace AssertPanic with AssertPanicMessageContains 2021-03-20 12:08:51 +00:00
cc_sdk_test.go Merge ""current" is implicitly added to stubs.versions" 2021-04-01 04:53:55 +00:00
compat_config_sdk_test.go Filter duplicate modules in platform_compat_config_singleton 2021-03-25 12:53:25 +00:00
exports.go Extract sdk registration code into function for reuse 2021-03-09 23:03:45 +00:00
exports_test.go Migrate sdk tests away from checkAndroidBpContents 2021-04-16 18:48:20 +01:00
java_sdk_test.go java_sdk_library: Make dex stub jars available for hiddenapi 2021-04-16 18:48:20 +01:00
sdk.go Improve sdk snapshot testing 2021-03-25 12:50:18 +00:00
sdk_test.go Migrate sdk package to a per test build directory 2021-03-18 01:48:25 +00:00
testing.go Remove varargs from RunTest(t *testing.T) 2021-03-31 16:03:59 +01:00
update.go Export OsTypeList through a function. 2021-04-05 07:35:06 +00:00