Merge "Add next BuildRelease for use by SDK finalization" into main am: e6413730b7

Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2845916

Change-Id: I9a0f4b74c01b92664a695fbd913d0469e4e57251
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-11-24 17:38:14 +00:00
committed by Automerger Merge Worker

View File

@@ -708,6 +708,10 @@ class BuildRelease:
preferHandling: PreferHandling = \ preferHandling: PreferHandling = \
PreferHandling.USE_SOURCE_CONFIG_VAR_PROPERTY PreferHandling.USE_SOURCE_CONFIG_VAR_PROPERTY
# Whether the generated snapshots should include flagged APIs. Defaults to
# false because flagged APIs are not suitable for use outside Android.
include_flagged_apis: bool = False
def __post_init__(self): def __post_init__(self):
# The following use object.__setattr__ as this object is frozen and # The following use object.__setattr__ as this object is frozen and
# attempting to set the fields directly would cause an exception to be # attempting to set the fields directly would cause an exception to be
@@ -809,6 +813,15 @@ UpsideDownCake = BuildRelease(
# Insert additional BuildRelease definitions for following releases here, # Insert additional BuildRelease definitions for following releases here,
# before LATEST. # before LATEST.
# A build release for the latest build excluding flagged apis.
NEXT = BuildRelease(
name="next",
creator=create_latest_sdk_snapshots,
# There are no build release specific environment variables to pass to
# Soong.
soong_env={},
)
# The build release for the latest build supported by this build, i.e. the # The build release for the latest build supported by this build, i.e. the
# current build. This must be the last BuildRelease defined in this script. # current build. This must be the last BuildRelease defined in this script.
LATEST = BuildRelease( LATEST = BuildRelease(
@@ -817,6 +830,9 @@ LATEST = BuildRelease(
# There are no build release specific environment variables to pass to # There are no build release specific environment variables to pass to
# Soong. # Soong.
soong_env={}, soong_env={},
# Latest must include flagged APIs because it may be dropped into the main
# Android branches.
include_flagged_apis=True,
) )