|
|
|
@ -57,6 +57,7 @@ internal fun Project.configureAndroidCompose(
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
freeCompilerArgs += buildComposeMetricsParameters()
|
|
|
|
|
freeCompilerArgs += stabilityConfiguration()
|
|
|
|
|
freeCompilerArgs += strongSkippingConfiguration()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -84,6 +85,7 @@ private fun Project.buildComposeMetricsParameters(): List<String> {
|
|
|
|
|
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + reportsFolder.absolutePath
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return metricParameters.toList()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -91,3 +93,8 @@ private fun Project.stabilityConfiguration() = listOf(
|
|
|
|
|
"-P",
|
|
|
|
|
"plugin:androidx.compose.compiler.plugins.kotlin:stabilityConfigurationPath=${project.rootDir.absolutePath}/compose_compiler_config.conf",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
private fun Project.strongSkippingConfiguration() = listOf(
|
|
|
|
|
"-P",
|
|
|
|
|
"plugin:androidx.compose.compiler.plugins.kotlin:experimentalStrongSkipping=true",
|
|
|
|
|
)
|
|
|
|
|