Skip to content

Commit

Permalink
Add material3, mark it as Experiemental
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 committed Nov 12, 2021
1 parent d6fea59 commit 46cc61a
Show file tree
Hide file tree
Showing 3 changed files with 9 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 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 46cc61a

Please sign in to comment.