fix(gradle): address list reassignment lints

This commit is contained in:
Harsh Shandilya 2022-12-14 18:02:21 +05:30
parent dd019279ec
commit 1d2da7c2f8
No known key found for this signature in database
2 changed files with 24 additions and 22 deletions

View file

@ -28,17 +28,18 @@ whetstone {
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
kotlinOptions { kotlinOptions {
freeCompilerArgs += freeCompilerArgs =
listOf( freeCompilerArgs +
"-P", listOf(
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + "-P",
rootProject.buildDir.absolutePath + "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
"/compose_metrics/", rootProject.buildDir.absolutePath +
"-P", "/compose_metrics/",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + "-P",
rootProject.buildDir.absolutePath + "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
"/compose_metrics/", rootProject.buildDir.absolutePath +
) "/compose_metrics/",
)
} }
} }

View file

@ -22,17 +22,18 @@ androidComponents { beforeVariants { it.enableUnitTest = false } }
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
kotlinOptions { kotlinOptions {
freeCompilerArgs += freeCompilerArgs =
listOf( freeCompilerArgs +
"-P", listOf(
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + "-P",
rootProject.buildDir.absolutePath + "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
"/compose_metrics/", rootProject.buildDir.absolutePath +
"-P", "/compose_metrics/",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + "-P",
rootProject.buildDir.absolutePath + "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
"/compose_metrics/", rootProject.buildDir.absolutePath +
) "/compose_metrics/",
)
} }
} }