Update dependency org.jetbrains.compose.runtime:runtime to v1.6.0 (#317)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-02-27 18:22:55 +00:00
committed by GitHub
parent 9473e0bd7f
commit 0db876c40f
2 changed files with 1 additions and 11 deletions

View File

@ -10,7 +10,7 @@ kotlinx-coroutines-core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0"
androidx-compose-compiler = "androidx.compose.compiler:compiler:1.5.10"
compose-compiler = "org.jetbrains.compose.compiler:compiler:1.5.8.1"
compose-runtime = "org.jetbrains.compose.runtime:runtime:1.5.12"
compose-runtime = "org.jetbrains.compose.runtime:runtime:1.6.0"
maven-publish-gradlePlugin = "com.vanniktech:gradle-maven-publish-plugin:0.27.0"
dokka-gradlePlugin = "org.jetbrains.dokka:dokka-gradle-plugin:1.9.10"

View File

@ -10,7 +10,6 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilerPluginSupportPlugin
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet.Companion.COMMON_MAIN_SOURCE_SET_NAME
import org.jetbrains.kotlin.gradle.plugin.SubpluginArtifact
import org.jetbrains.kotlin.gradle.plugin.SubpluginOption
@ -88,15 +87,6 @@ class MosaicPlugin : KotlinCompilerPluginSupportPlugin {
}
override fun applyToCompilation(kotlinCompilation: KotlinCompilation<*>): Provider<List<SubpluginOption>> {
if (kotlinCompilation.target.platformType == KotlinPlatformType.js) {
// This enables a workaround for Compose lambda generation to function correctly in JS.
// Note: We cannot use SubpluginOption to do this because it targets the Compose plugin.
kotlinCompilation.compilerOptions.options.freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:generateDecoys=true",
)
}
return kotlinCompilation.target.project.provider { emptyList() }
}