mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 15:17:05 +05:30
chore: enable Compose Compiler metrics
This commit is contained in:
parent
b1a32496ba
commit
0d668ac3aa
2 changed files with 38 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
||||||
*/
|
*/
|
||||||
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
||||||
|
|
||||||
|
import org.gradle.kotlin.dsl.withType
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.msfjarvis.claw.android-application")
|
id("dev.msfjarvis.claw.android-application")
|
||||||
id("dev.msfjarvis.claw.rename-artifacts")
|
id("dev.msfjarvis.claw.rename-artifacts")
|
||||||
|
@ -23,6 +26,22 @@ 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/",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.msfjarvis.claw.android"
|
namespace = "dev.msfjarvis.claw.android"
|
||||||
defaultConfig { applicationId = "dev.msfjarvis.claw.android" }
|
defaultConfig { applicationId = "dev.msfjarvis.claw.android" }
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
*/
|
*/
|
||||||
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
||||||
|
|
||||||
|
import org.gradle.kotlin.dsl.withType
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.msfjarvis.claw.kotlin-android")
|
id("dev.msfjarvis.claw.kotlin-android")
|
||||||
id("dev.msfjarvis.claw.android-library")
|
id("dev.msfjarvis.claw.android-library")
|
||||||
|
@ -17,6 +20,22 @@ anvil { generateDaggerFactories.set(true) }
|
||||||
|
|
||||||
androidComponents { beforeVariants { it.enableUnitTest = false } }
|
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/",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(platform(libs.androidx.compose.bom))
|
implementation(platform(libs.androidx.compose.bom))
|
||||||
api(libs.napier)
|
api(libs.napier)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue