Browse Source

gradle-plugins/compose: Don't eagerly evaluate web platform

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
pull/642/head
Harsh Shandilya 4 years ago committed by Alexey Tsvetkov
parent
commit
c1aa3a33ca
  1. 2
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt

2
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt

@ -116,7 +116,7 @@ class ComposePlugin : Plugin<Project> {
val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime") val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime")
val ui get() = composeDependency("org.jetbrains.compose.ui:ui") val ui get() = composeDependency("org.jetbrains.compose.ui:ui")
val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended") val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended")
val web: WebDependencies = val web: WebDependencies get() =
if (ComposeBuildConfig.isComposeWithWeb) WebDependencies if (ComposeBuildConfig.isComposeWithWeb) WebDependencies
else error("This version of Compose plugin does not support 'compose.web.*' dependencies") else error("This version of Compose plugin does not support 'compose.web.*' dependencies")
} }

Loading…
Cancel
Save