aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-03-14 22:40:29 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-14 22:40:29 +0000
commite0c51f0238dd024cb65b8978ca98c54127b37d83 (patch)
treea82e85e3c55256a0c07e1b2f05cfc74aa349bb73
parent68d627553ea953b7c5c5ce788712a184a01871a5 (diff)
parent934260e5093be631748285937940185e89a6f33b (diff)
downloadndk-r26-release.tar.gz
Merge "Merge cherrypicks of ['android-review.googlesource.com/2954813'] into ndk-r26-release." into ndk-r26-releasendk-r26dndk-r26-release
-rwxr-xr-xndk/checkbuild.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ndk/checkbuild.py b/ndk/checkbuild.py
index 9cd4a4ca4..7b91a3d4b 100755
--- a/ndk/checkbuild.py
+++ b/ndk/checkbuild.py
@@ -1981,11 +1981,21 @@ class SourceProperties(ndk.builds.Module):
version = get_version_string(self.context.build_number)
if ndk.config.beta > 0:
version += "-beta{}".format(ndk.config.beta)
+
+ # This file is read by the release tooling to populate the SDK manifest. Some of
+ # these properties (Pkg.Desc and Pkg.Revision) will populate fields that the SDK
+ # manager UI in Android Studio will use as the display name and categorization,
+ # so the formats of those should not change.
+ #
+ # The rest is up to us. We can add new fields that can be used in the release
+ # configs. Pkg.ReleaseName, for example, is used to populate that portion of the
+ # name of the zip file produced by the release.
path.write_text(
textwrap.dedent(
f"""\
Pkg.Desc = Android NDK
Pkg.Revision = {version}
+ Pkg.ReleaseName = {ndk.config.release}
"""
)
)