[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 :)
This commit is contained in:
Jonah Williams 2025-03-18 17:30:41 -07:00 committed by GitHub
parent 3d0efc2706
commit 403404ccd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
)