From 433cb7da3266f8211f84005b66504394af45ca3b Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Wed, 28 Aug 2024 13:03:19 +0000 Subject: [PATCH 1/2] Remove redundant dependency-analysis autoapply option Fixes the warning: > Configure project : dependency.analysis.autoapply is set to false, but this is now the only behavior, and the flag has no effect. You should remove it from your build scripts. Signed-off-by: Joe Groocock --- gradle.properties | 3 --- 1 file changed, 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 1e150e2eeb..e787539483 100644 --- a/gradle.properties +++ b/gradle.properties @@ -46,6 +46,3 @@ android.experimental.enableTestFixtures=true # Create BuildConfig files as bytecode to avoid Java compilation phase android.enableBuildConfigAsBytecode=true - -# By default, the plugin applies itself to all subprojects, but we don't want that as it would cause issues with builds using local AARs -dependency.analysis.autoapply=false From d5e796486441e1d6d2f9cad19d5a74f365621dbf Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Wed, 28 Aug 2024 13:06:36 +0000 Subject: [PATCH 2/2] Fix deprecation warning in KoverExtension > Task :plugins:compileKotlin w: file:///.../plugins/src/main/kotlin/extension/KoverExtension.kt:70:109 'capitalized(): String' is deprecated. This was never intended as a public API. Signed-off-by: Joe Groocock --- plugins/src/main/kotlin/extension/KoverExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/src/main/kotlin/extension/KoverExtension.kt b/plugins/src/main/kotlin/extension/KoverExtension.kt index cac5cec137..ba84fe37c2 100644 --- a/plugins/src/main/kotlin/extension/KoverExtension.kt +++ b/plugins/src/main/kotlin/extension/KoverExtension.kt @@ -58,7 +58,7 @@ fun Project.setupKover() { task("koverVerifyAll") { group = "verification" description = "Verifies the code coverage of all subprojects." - val dependencies = listOf(":app:koverVerifyGplayDebug") + koverVariants.map { ":app:koverVerify${it.capitalized()}" } + val dependencies = listOf(":app:koverVerifyGplayDebug") + koverVariants.map { ":app:koverVerify${it.replaceFirstChar(Char::titlecase)}" } dependsOn(dependencies) }