File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
compose/src/main/java/com/squareup/workflow1/ui/compose
src/main/java/com/squareup/workflow1/ui Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11package com.squareup.workflow1.ui.compose
22
33import androidx.compose.runtime.Composable
4+ import androidx.compose.runtime.Stable
45import com.squareup.workflow1.ui.Screen
56import com.squareup.workflow1.ui.ViewEnvironment
67import 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
7779public interface ComposeScreen : Screen {
7880
Original file line number Diff line number Diff line change @@ -4,9 +4,13 @@ plugins {
44}
55
66dependencies {
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)
Original file line number Diff line number Diff line change 11package 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
711public interface Screen
You can’t perform that action at this time.
0 commit comments