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