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 {
kotlinOptions {
freeCompilerArgs +=
listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
rootProject.buildDir.absolutePath +
"/compose_metrics/",
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
rootProject.buildDir.absolutePath +
"/compose_metrics/",
)
freeCompilerArgs =
freeCompilerArgs +
listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
rootProject.buildDir.absolutePath +
"/compose_metrics/",
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
rootProject.buildDir.absolutePath +
"/compose_metrics/",
)
}
}

View file

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