platform_build_soong/sdk
Paul Duffin 4e7d1c43e2 Add apexes property to sdk
Specifying an apex in the apexes propety will cause all the
*classpath_fragments that are contents of the APEX to be automatically
added as members of the sdk and appear in the snapshot.

The purpose of this change is to dedup the APEX and sdk definitions and
try and avoid some of the issues that we have been finding while
attempting to build against the prebuilts.

Two tests, one each for bootclasspath_fragment and
systemserverclasspath_fragment, have been refactored to compare the
output when adding the *fragment to the sdk directly of via the APEX.
That ensures switching to use the APEX will not change the sdk snapshot
unless it was previously missing a *fragment.

There was also a slight difference in where the hidden API flags were
copied from. That should have no impact on the output as the flags are
identical.

The sdk snapshot generation needed some tweaks to avoid generating a
prebuilt for the APEX.

Bug: 232401814
Test: m nothing
Change-Id: I7aaf16a3a0ab4bebf97765d1484215cc008dc4b8
2022-07-06 15:58:43 +00:00
..
Android.bp Support handling build releases in sdk snapshot 2021-10-01 17:17:34 +01:00
bootclasspath_fragment_sdk_test.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
bp.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
bp_test.go Replace AssertPanic with AssertPanicMessageContains 2021-03-20 12:08:51 +00:00
build_release.go Use Tiramisu instead of T in supported_build_releases 2022-02-10 13:06:54 +00:00
build_release_test.go Use Tiramisu instead of T in supported_build_releases 2022-02-10 13:06:54 +00:00
cc_sdk_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
compat_config_sdk_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
exports.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
exports_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
java_sdk_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
license_sdk_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
member_trait.go Removes usages of SdkMemberTrait/TypeRegistry outside android/sdk.go 2021-09-23 11:37:57 +01:00
member_trait_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
member_type.go Removes usages of SdkMemberTrait/TypeRegistry outside android/sdk.go 2021-09-23 11:37:57 +01:00
sdk.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
sdk_test.go bootclasspath_fragment: Require at least one hidden_api package property 2022-05-27 16:27:50 +01:00
systemserverclasspath_fragment_sdk_test.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
testing.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
update.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00