8cbc5d269b
The old representation consisted of a list of libraries (UsesLibraries), a list of optional libraries (OptionalUsesLibraries) and a mapping from library name to its build/install paths (LibraryPaths). The separation into lists and map was necessary because of special handling of compatibility libraries, which is now unified with normal libraries. The new representation is a mapping from target SDK version to a tree structure ClassLoaderContext. Each node of the tree represents a library and contains library name, build/install paths and a slice of subcontexts for dependencies. The same library may occur in the tree multiple times in case it is a dependency of multiple libraries. The order in which libraries are added matters (the resulting tree shape may be different). Test results have to be updated, as the resulting <uses-library> list is reodered (previously it was a sorted list of map keys, and now it is formed by a depth-first preorder traversal of the class loader tree). Test: lunch aosp_cf_x86_phone-userdebug && m Bug: 132357300 Bug: 168686456 Change-Id: I11be8cd2967f004fd58753d7c5fb99fed179cd63 |
||
---|---|---|
.. | ||
config | ||
aapt2.go | ||
aar.go | ||
Android.bp | ||
android_manifest.go | ||
android_resources.go | ||
androidmk.go | ||
androidmk_test.go | ||
app.go | ||
app_builder.go | ||
app_test.go | ||
boot_jars.go | ||
builder.go | ||
device_host_converter.go | ||
device_host_converter_test.go | ||
dex.go | ||
dexpreopt.go | ||
dexpreopt_bootjars.go | ||
dexpreopt_bootjars_test.go | ||
dexpreopt_config.go | ||
dexpreopt_test.go | ||
droiddoc.go | ||
gen.go | ||
genrule.go | ||
hiddenapi.go | ||
hiddenapi_singleton.go | ||
hiddenapi_singleton_test.go | ||
jacoco.go | ||
jacoco_test.go | ||
java.go | ||
java_resources.go | ||
java_test.go | ||
jdeps.go | ||
jdeps_test.go | ||
kotlin.go | ||
kotlin_test.go | ||
legacy_core_platform_api_usage.go | ||
lint.go | ||
lint_defaults.txt | ||
OWNERS | ||
platform_compat_config.go | ||
plugin.go | ||
plugin_test.go | ||
prebuilt_apis.go | ||
proto.go | ||
robolectric.go | ||
sdk.go | ||
sdk_library.go | ||
sdk_test.go | ||
support_libraries.go | ||
sysprop.go | ||
system_modules.go | ||
testing.go | ||
tradefed.go |