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 1
1
package com.squareup.workflow1.ui.compose
2
2
3
3
import androidx.compose.runtime.Composable
4
+ import androidx.compose.runtime.Stable
4
5
import com.squareup.workflow1.ui.Screen
5
6
import com.squareup.workflow1.ui.ViewEnvironment
6
7
import com.squareup.workflow1.ui.ViewRegistry
@@ -73,6 +74,7 @@ import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
73
74
* will be wrapped with the [CompositionRoot]. See the documentation on [CompositionRoot] for
74
75
* more information.
75
76
*/
77
+ @Stable
76
78
@WorkflowUiExperimentalApi
77
79
public interface ComposeScreen : Screen {
78
80
Original file line number Diff line number Diff line change @@ -4,9 +4,13 @@ plugins {
4
4
}
5
5
6
6
dependencies {
7
+ val composeBom = platform(libs.androidx.compose.bom)
8
+ implementation(composeBom)
9
+
7
10
api(libs.kotlin.jdk6)
8
11
api(libs.kotlinx.coroutines.core)
9
12
api(libs.squareup.okio)
13
+ api(libs.androidx.compose.runtime)
10
14
11
15
testImplementation(libs.junit)
12
16
testImplementation(libs.kotlin.test.core)
Original file line number Diff line number Diff line change 1
1
package com.squareup.workflow1.ui
2
2
3
+ import androidx.compose.runtime.Stable
4
+
3
5
/* *
4
6
* Marker interface implemented by renderings that map to a UI system's 2d view class.
5
7
*/
8
+
9
+ @Stable
6
10
@WorkflowUiExperimentalApi
7
11
public interface Screen
You can’t perform that action at this time.
0 commit comments