From 08f869c6f9161404e32c2f83cd9dda6f2225768d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 14 Aug 2025 14:31:22 +0200 Subject: [PATCH] Build release with build tools from SDK 36 and add a not to not forget last time we update the value of COMPILE_SDK --- plugins/src/main/kotlin/Versions.kt | 2 ++ tools/release/release.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/src/main/kotlin/Versions.kt b/plugins/src/main/kotlin/Versions.kt index 03ce6b6d82..9cfd2a4a3d 100644 --- a/plugins/src/main/kotlin/Versions.kt +++ b/plugins/src/main/kotlin/Versions.kt @@ -38,6 +38,8 @@ object Versions { const val VERSION_CODE = (2000 + versionYear) * 10_000 + versionMonth * 100 + versionReleaseNumber val VERSION_NAME = "$versionYear.${versionMonth.toString().padStart(2, '0')}.$versionReleaseNumber" + // When updating COMPILE_SDK, please do not forget to update the value for `buildToolsVersion` + // in the file `tools/release/release.sh` const val COMPILE_SDK = 36 const val TARGET_SDK = 36 diff --git a/tools/release/release.sh b/tools/release/release.sh index 4120a1da06..30d4cea205 100755 --- a/tools/release/release.sh +++ b/tools/release/release.sh @@ -64,7 +64,7 @@ fi # Read minSdkVersion from file plugins/src/main/kotlin/Versions.kt minSdkVersion=$(grep "MIN_SDK_FOSS =" ./plugins/src/main/kotlin/Versions.kt |cut -d '=' -f 2 |xargs) -buildToolsVersion="35.0.0" +buildToolsVersion="36.0.0" buildToolsPath="${androidHome}/build-tools/${buildToolsVersion}" if [[ ! -d ${buildToolsPath} ]]; then