Skip to content

Commit

Permalink
Revert "Add support for generating Compose compiler reports"
Browse files Browse the repository at this point in the history
This reverts commit 733a8bd.
  • Loading branch information
msasikanth committed Oct 5, 2023
1 parent b272e83 commit 51b8881
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -63,26 +62,4 @@ allprojects {
val compose = extensions.getByName("compose") as ComposeExtension
compose.kotlinCompilerPlugin.set(libs.versions.compose.compiler)
}

tasks.withType<KotlinCompilationTask<*>>().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",
)
}
}
}
}

0 comments on commit 51b8881

Please sign in to comment.