|
|
@ -25,6 +25,9 @@ import org.jetbrains.compose.desktop.application.internal.currentTarget |
|
|
|
import org.jetbrains.compose.desktop.preview.internal.initializePreview |
|
|
|
import org.jetbrains.compose.desktop.preview.internal.initializePreview |
|
|
|
import org.jetbrains.compose.experimental.dsl.ExperimentalExtension |
|
|
|
import org.jetbrains.compose.experimental.dsl.ExperimentalExtension |
|
|
|
import org.jetbrains.compose.experimental.internal.configureExperimental |
|
|
|
import org.jetbrains.compose.experimental.internal.configureExperimental |
|
|
|
|
|
|
|
import org.jetbrains.compose.internal.COMPOSE_PLUGIN_ID |
|
|
|
|
|
|
|
import org.jetbrains.compose.internal.KOTLIN_JS_PLUGIN_ID |
|
|
|
|
|
|
|
import org.jetbrains.compose.internal.KOTLIN_MPP_PLUGIN_ID |
|
|
|
import org.jetbrains.compose.web.WebExtension |
|
|
|
import org.jetbrains.compose.web.WebExtension |
|
|
|
import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler |
|
|
|
import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler |
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
|
|
@ -134,6 +137,17 @@ class ComposePlugin : Plugin<Project> { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkAndWarnAboutUsingJsPlugin(project) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun checkAndWarnAboutUsingJsPlugin(project: Project) { |
|
|
|
|
|
|
|
val msg = "'$COMPOSE_PLUGIN_ID' plugin is not compatible with '$KOTLIN_JS_PLUGIN_ID' plugin. " + |
|
|
|
|
|
|
|
"Use '$KOTLIN_MPP_PLUGIN_ID' instead" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
project.plugins.withId(KOTLIN_JS_PLUGIN_ID) { |
|
|
|
|
|
|
|
project.logger.error(msg) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class RedirectAndroidVariants : ComponentMetadataRule { |
|
|
|
class RedirectAndroidVariants : ComponentMetadataRule { |
|
|
|