platform_build_soong/sdk
Paul Duffin 1938dba8b6 Exclude unsupported libraries from sdk snapshot
When an sdk snapshot is targeted at release X then it cannot include
bootclasspath fragment libraries which are not present in that build as
otherwise it causes build failures. It should also not include any
unsupported libraries, i.e. libraries that cannot work on that release.

This change causes sdk snapshot to exclude libraries that have a
    min_sdk_version > target build release

It also ensures that hidden API flags do not include any information
from excluded libraries.

Bug: 240406019
Test: BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh
      # Ran the previous command with and without this change to make
      # sure that this change excludes framework-connectivity-t library from the
      # tethering sdk snapshot for S, including from the hidden API flag files.
Change-Id: I57969b85a12e9e5a3fc76c055b260cec5d5f7d7f
2022-09-14 16:47:18 +01:00
..
Android.bp Support handling build releases in sdk snapshot 2021-10-01 17:17:34 +01:00
bootclasspath_fragment_sdk_test.go Exclude unsupported libraries from sdk snapshot 2022-09-14 16:47:18 +01: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 Add current build release 2022-08-19 17:39:49 +00:00
build_release_test.go Add current build release 2022-08-19 17:39:49 +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 Export any platform_compat_config used by apex to sdk snapshot 2022-07-20 14:18:24 +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 Exclude unsupported libraries from sdk snapshot 2022-09-14 16:47:18 +01:00
license_sdk_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
member_trait.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
member_trait_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
member_type.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
sdk.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
sdk_test.go Exclude unsupported libraries from sdk snapshot 2022-09-14 16:47:18 +01:00
systemserverclasspath_fragment_sdk_test.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
testing.go Add current build release 2022-08-19 17:39:49 +00:00
update.go Exclude unsupported libraries from sdk snapshot 2022-09-14 16:47:18 +01:00