Compose metrics 사용 시 주의사항

Doach Gosum·2024년 5월 20일
  • subProject {
    ...
    }
    형식으로 정의된 건 root gradle에 넣어야 함

  • 개별 모듈에
    freeCompilerArgs += listOf(
    "-P", "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=project.buildDir.absolutePath/composereports","P","plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination={project.buildDir.absolutePath}/compose_reports", "-P", "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination={project.buildDir.absolutePath}/compose_metrics"
    )
    를 정의해서 사용 가능

  • 이떄 생성되는 metrics 파일은 개별 모듈의 build 경로에 존재함

profile
기본 그리고 간결함

0개의 댓글