From 557b1b20925d803b0c8423ea22441ecc2bda7a84 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Wed, 8 Jul 2026 15:12:54 -0700 Subject: [PATCH] Follow Rahul's advice on setup --- app/build.gradle.kts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bcc1720bf..2ba230387 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -65,13 +65,6 @@ android { namespace = "com.google.samples.apps.nowinandroid" } -// Ensure Baseline Profile is fresh for release builds. -baselineProfile { - variants.getByName("release") { - automaticGenerationDuringBuild = true - } -} - dependencies { implementation(projects.feature.interests.api) implementation(projects.feature.interests.impl) @@ -150,6 +143,11 @@ baselineProfile { // Make use of Dex Layout Optimizations via Startup Profiles dexLayoutOptimization = true + + // Ensure Baseline Profile is fresh for release builds. + variants.create("release") { + automaticGenerationDuringBuild = true + } } dependencyGuard {