Skip to content

Commit 61328f0

Browse files
committed
Mark ui-backhandler as @ExperimentalComposeLibrary, and add comments
1 parent 93e0416 commit 61328f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ abstract class ComposePlugin : Plugin<Project> {
6161
}
6262
}
6363

64+
// Please sort them in the order of stable, experimental, and deprecated,
65+
// and keep them in alphabetical order.
66+
// Thus make it easier to find a missing dependency.
6467
@Suppress("DEPRECATION")
6568
class Dependencies(project: Project) {
6669
val animation = composeDependency("org.jetbrains.compose.animation:animation")
@@ -78,11 +81,13 @@ abstract class ComposePlugin : Plugin<Project> {
7881
val runtime = composeDependency("org.jetbrains.compose.runtime:runtime")
7982
val runtimeSaveable = composeDependency("org.jetbrains.compose.runtime:runtime-saveable")
8083
val ui = composeDependency("org.jetbrains.compose.ui:ui")
81-
val uiBackHandler = composeDependency("org.jetbrains.compose.ui:ui-backhandler")
8284
val uiTest = composeDependency("org.jetbrains.compose.ui:ui-test")
8385
val uiTooling = composeDependency("org.jetbrains.compose.ui:ui-tooling")
8486
val uiUtil = composeDependency("org.jetbrains.compose.ui:ui-util")
8587

88+
@ExperimentalComposeLibrary
89+
val uiBackHandler = composeDependency("org.jetbrains.compose.ui:ui-backhandler")
90+
8691
@Deprecated("Use desktop.uiTestJUnit4", replaceWith = ReplaceWith("desktop.uiTestJUnit4"))
8792
val uiTestJUnit4 = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")
8893

0 commit comments

Comments
 (0)