From 1d2da7c2f858a540363e20bccfaa4f15398c1df6 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 14 Dec 2022 18:02:21 +0530 Subject: [PATCH] fix(gradle): address list reassignment lints --- android/build.gradle.kts | 23 ++++++++++++----------- common/build.gradle.kts | 23 ++++++++++++----------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/android/build.gradle.kts b/android/build.gradle.kts index c92162cc..2cb79f04 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -28,17 +28,18 @@ whetstone { tasks.withType().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/", + ) } } diff --git a/common/build.gradle.kts b/common/build.gradle.kts index 5b3f872e..aedd652d 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -22,17 +22,18 @@ androidComponents { beforeVariants { it.enableUnitTest = false } } tasks.withType().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/", + ) } }