From 403404ccd1cee39b53c41228ba48d1fca8e2489b Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Tue, 18 Mar 2025 17:30:41 -0700 Subject: [PATCH] [gradle] fix local engine property name (#165444) I would recommend changing the propety mock so that the properties are given as strings and not constants, otherwise you can run into problems like this where the mock does exactly what you want :) --- .../gradle/src/main/kotlin/FlutterPluginUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt b/packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt index 3887be4bae..96bdef7c69 100644 --- a/packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt +++ b/packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt @@ -16,7 +16,7 @@ object FlutterPluginUtils { // Gradle properties. internal const val PROP_SHOULD_SHRINK_RESOURCES = "shrink" internal const val PROP_SPLIT_PER_ABI = "split-per-abi" - internal const val PROP_LOCAL_ENGINE_REPO = "localEngineRepo" + internal const val PROP_LOCAL_ENGINE_REPO = "local-engine-repo" internal const val PROP_IS_VERBOSE = "verbose" internal const val PROP_IS_FAST_START = "fast-start" internal const val PROP_TARGET = "target" @@ -157,7 +157,7 @@ object FlutterPluginUtils { if (buildGradle.exists() && buildGradleKts.exists()) { logger.error( """ - Both build.gradle and build.gradle.kts exist, so + Both build.gradle and build.gradle.kts exist, so build.gradle.kts is ignored. This is likely a mistake. """.trimIndent() )