From 2eb59d44b97e11aed9575eae0d6de11366cf12be Mon Sep 17 00:00:00 2001 From: Rebecca Franks Date: Thu, 28 Aug 2025 10:11:11 +0100 Subject: [PATCH 1/2] Enable baseline profiles --- app/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 153b836d..a484a9f4 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -55,7 +55,7 @@ android { initWith(buildTypes.getByName("release")) matchingFallbacks += listOf("release") isDebuggable = false - baselineProfile.automaticGenerationDuringBuild = false + baselineProfile.automaticGenerationDuringBuild = true } release { isShrinkResources = true From cca6d9429d9d45bb63bb2ec444217e763f7c070a Mon Sep 17 00:00:00 2001 From: Rebecca Franks Date: Thu, 28 Aug 2025 11:13:36 +0100 Subject: [PATCH 2/2] Run tests on build.sh and build_presubmit.sh --- build.sh | 2 +- build_presubmit.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 2079933d..12dd6c6f 100755 --- a/build.sh +++ b/build.sh @@ -95,7 +95,7 @@ echo "INFO: Cleaning the project..." # Build the production release bundle without generating a baseline profile. echo "INFO: Building the production release bundle..." -./gradlew app:bundleRelease app:spdxSbomForRelease -x test -Pandroid.sdk.path=$ANDROID_HOME -PCI_BUILD=true +./gradlew app:bundleRelease app:spdxSbomForRelease -Pandroid.sdk.path=$ANDROID_HOME -PCI_BUILD=true # --- Artifact Collection --- echo "INFO: Preparing artifacts for Kokoro..." diff --git a/build_presubmit.sh b/build_presubmit.sh index 2db7195f..52f44081 100755 --- a/build_presubmit.sh +++ b/build_presubmit.sh @@ -96,7 +96,7 @@ echo "INFO: Cleaning the project..." # Build the production release bundle without generating a baseline profile. echo "INFO: Building the production release bundle..." -./gradlew app:bundleRelease app:spdxSbomForRelease -x test -x uploadCrashlyticsMappingFileRelease -Pandroid.sdk.path=$ANDROID_HOME -PCI_BUILD=true +./gradlew app:bundleRelease app:spdxSbomForRelease -x uploadCrashlyticsMappingFileRelease -Pandroid.sdk.path=$ANDROID_HOME -PCI_BUILD=true # --- Artifact Collection --- echo "INFO: Preparing artifacts for Kokoro..."