|
|
|
|
@ -46,6 +46,7 @@ internal fun Project.configureAndroidCompose(
|
|
|
|
|
extensions.configure<ComposeCompilerGradlePluginExtension> {
|
|
|
|
|
fun Provider<String>.onlyIfTrue() = flatMap { provider { it.takeIf(String::toBoolean) } }
|
|
|
|
|
fun Provider<*>.relativeToRootProject(dir: String) = map {
|
|
|
|
|
@Suppress("UnstableApiUsage")
|
|
|
|
|
isolated.rootProject.projectDirectory
|
|
|
|
|
.dir("build")
|
|
|
|
|
.dir(projectDir.toRelativeString(rootDir))
|
|
|
|
|
@ -59,6 +60,7 @@ internal fun Project.configureAndroidCompose(
|
|
|
|
|
.relativeToRootProject("compose-reports")
|
|
|
|
|
.let(reportsDestination::set)
|
|
|
|
|
|
|
|
|
|
@Suppress("UnstableApiUsage")
|
|
|
|
|
stabilityConfigurationFiles
|
|
|
|
|
.add(isolated.rootProject.projectDirectory.file("compose_compiler_config.conf"))
|
|
|
|
|
}
|
|
|
|
|
|