Skip to content

Commit

Permalink
Add material3, mark some libraries as Experiemental (#1390)
Browse files Browse the repository at this point in the history
Checked it on the version 0.0.0-feature-material3-build460

Fixes #1335
  • Loading branch information
igordmn authored Nov 15, 2021
1 parent 97980ad commit db44cc8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tasks.register("publishComposeJb") {
":compose:foundation:foundation",
":compose:foundation:foundation-layout",
":compose:material:material",
":compose:material3:material3",
":compose:material:material-icons-core",
":compose:material:material-ripple",
":compose:runtime:runtime",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ class ComposePlugin : Plugin<Project> {
val animation get() = composeDependency("org.jetbrains.compose.animation:animation")
val foundation get() = composeDependency("org.jetbrains.compose.foundation:foundation")
val material get() = composeDependency("org.jetbrains.compose.material:material")
@ExperimentalComposeLibrary
val material3 get() = composeDependency("org.jetbrains.compose.material3:material3")
val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime")
val ui get() = composeDependency("org.jetbrains.compose.ui:ui")
@ExperimentalComposeLibrary
val uiTestJUnit4 get() = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")
val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling")
val preview get() = composeDependency("org.jetbrains.compose.ui:ui-tooling-preview")
Expand All @@ -186,6 +189,7 @@ class ComposePlugin : Plugin<Project> {
}

object DesktopComponentsDependencies {
@ExperimentalComposeLibrary
val splitPane = composeDependency("org.jetbrains.compose.components:components-splitpane")
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.jetbrains.compose

// We write explicitly about OptIn, because IDEA doesn't suggest it.
@RequiresOptIn("This library is experimental and can be unstable. Add @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class) annotation.")
annotation class ExperimentalComposeLibrary

0 comments on commit db44cc8

Please sign in to comment.