Browse Source
Since kotlin 1.5.30, kotlinx.serialization plugin is forced to run its transformations before any other plugin. This made compose and kotlinx.serialization compatible, therefore no need to warn about their simultaneous usage. Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>pull/1187/head
Oleksandr Karpovich
3 years ago
committed by
GitHub
2 changed files with 0 additions and 21 deletions
@ -1,18 +0,0 @@
|
||||
package org.jetbrains.compose.internal |
||||
|
||||
import org.gradle.api.Project |
||||
|
||||
internal fun Project.checkAndWarnAboutComposeWithSerialization() { |
||||
project.plugins.withId("org.jetbrains.kotlin.plugin.serialization") { |
||||
val warningMessage = """ |
||||
|
||||
>>> COMPOSE WARNING |
||||
>>> Project `${project.name}` has `compose` and `kotlinx.serialization` plugins applied! |
||||
>>> Consider using these plugins in separate modules to avoid compilation errors |
||||
>>> Check more details here: https://github.com/JetBrains/compose-jb/issues/738 |
||||
|
||||
""".trimIndent() |
||||
|
||||
logger.warn(warningMessage) |
||||
} |
||||
} |
Loading…
Reference in new issue