From d8ada29395b017d4fab1c844d8b1cc37619aa545 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov <654232+AlexeyTsvetkov@users.noreply.github.com> Date: Tue, 3 Aug 2021 18:34:49 +0300 Subject: [PATCH] Add compose.preview dependency shortcut (#989) Useful for MPP modules, that don't depend on compose.desktop.currentOs --- .../src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt index 39c111c808..981b0647a5 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt @@ -119,6 +119,7 @@ class ComposePlugin : Plugin { val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime") val ui get() = composeDependency("org.jetbrains.compose.ui:ui") val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling") + val preview get() = composeDependency("org.jetbrains.compose.ui:ui-tooling-preview") val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended") val web: WebDependencies get() = if (ComposeBuildConfig.isComposeWithWeb) WebDependencies