From 51b888181de27032d2f9edc37ec7e3e507dba121 Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Thu, 5 Oct 2023 07:45:16 +0530 Subject: [PATCH] Revert "Add support for generating Compose compiler reports" This reverts commit 733a8bd3f4a79e07b182a7e79eccf750585ca257. --- build.gradle.kts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index dcff854fb..f6c298cb8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,6 @@ import com.diffplug.gradle.spotless.SpotlessExtension import org.jetbrains.compose.ComposeExtension -import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask plugins { // this is necessary to avoid the plugins to be loaded multiple times @@ -63,26 +62,4 @@ allprojects { val compose = extensions.getByName("compose") as ComposeExtension compose.kotlinCompilerPlugin.set(libs.versions.compose.compiler) } - - tasks.withType>().configureEach { - compilerOptions { - // Treat all Kotlin warnings as errors - allWarningsAsErrors = true - - if (project.providers.gradleProperty("twine.enableComposeCompilerReports").isPresent) { - freeCompilerArgs.addAll( - "-P", - "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + - layout.buildDirectory.asFile.get().absolutePath + - "/compose_metrics", - ) - freeCompilerArgs.addAll( - "-P", - "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + - layout.buildDirectory.asFile.get().absolutePath + - "/compose_metrics", - ) - } - } - } }