Skip to content

Commit 3a48211

Browse files
committed
[DNM] Enable Stability Flags on Screen and ComposeScreen
1 parent dc32e4c commit 3a48211

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

workflow-ui/compose/src/main/java/com/squareup/workflow1/ui/compose/ComposeScreen.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.squareup.workflow1.ui.compose
22

33
import androidx.compose.runtime.Composable
4+
import androidx.compose.runtime.Stable
45
import com.squareup.workflow1.ui.Screen
56
import com.squareup.workflow1.ui.ViewEnvironment
67
import com.squareup.workflow1.ui.ViewRegistry
@@ -73,6 +74,7 @@ import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
7374
* will be wrapped with the [CompositionRoot]. See the documentation on [CompositionRoot] for
7475
* more information.
7576
*/
77+
@Stable
7678
@WorkflowUiExperimentalApi
7779
public interface ComposeScreen : Screen {
7880

workflow-ui/core-common/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ plugins {
44
}
55

66
dependencies {
7+
val composeBom = platform(libs.androidx.compose.bom)
8+
implementation(composeBom)
9+
710
api(libs.kotlin.jdk6)
811
api(libs.kotlinx.coroutines.core)
912
api(libs.squareup.okio)
13+
api(libs.androidx.compose.runtime)
1014

1115
testImplementation(libs.junit)
1216
testImplementation(libs.kotlin.test.core)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package com.squareup.workflow1.ui
22

3+
import androidx.compose.runtime.Stable
4+
35
/**
46
* Marker interface implemented by renderings that map to a UI system's 2d view class.
57
*/
8+
9+
@Stable
610
@WorkflowUiExperimentalApi
711
public interface Screen

0 commit comments

Comments
 (0)