platform_build_soong/sdk
Paul Duffin e840995ac3 java_sdk_library: Use dist_stem when generating sdk snapshot file names
The API finalization process for platform releases copies various files
from the apistubs/ dist directory into prebuilts/sdk/<n>/...  Having
them use the same name in both places makes that process simpler. For
most modules the name of the file is derived from the name of the
module by appending a suffix but unfortunately, for some modules that
does not work. e.g. the conscrypt.txt file is produced by the
conscrypt.module.public.api module. The dist_stem property was added to
java_sdk_library to allow the stem name of the file to differ from the
module name.

The API finalization process for extension APIs does something similar
as it extracts various files from the snapshots and copies them into
the appropriate extension API specific directory in
prebuilts/sdk/extensions/<n>. Instead of copying files from the
apistubs/ dist directory (which is not built for trains) it copies them
from sdk snapshots that are built as part of the train.

Previously, the sdk snapshot used to derive the name of the files
within the snapshot from the name of the module, it ignored the
dist_stem property. This change causes it to use the dist_stem property
to make it consistent with the apistubs/ dist directory naming.

The file name is created in
sdkLibrarySdkMemberProperties.AddPropertyToSet() which does not have
access to the dist_stem property. So, it has to be supplied in the
sdkLibrarySdkMemberProperties instance in the new Stem property.

Bug: 248258460
Test: m nothing
      BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh --build-release=latest
      # Ran the previous command before and after and make sure that the
      # conscrypt, art and icu sdk snapshots use the dist_stem value but
      # none of the other snapshots are affected.
Change-Id: Ied52003de63dcdb86a252a39bb8781f85d51a6ff
2022-09-26 18:32:58 +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 java_sdk_library: Use dist_stem when generating sdk snapshot file names 2022-09-26 18:32:58 +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 Add sdk:"keep" tag support 2022-09-26 18:28:56 +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 Add sdk:"keep" tag support 2022-09-26 18:28:56 +01:00