File tree Expand file tree Collapse file tree 3 files changed +22
-1
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 +22
-1
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 1
1
plugins {
2
- id(" kotlin-jvm" )
2
+ id(" com.android.library" )
3
+ id(" kotlin-android" )
4
+ id(" android-defaults" )
3
5
id(" published" )
4
6
}
5
7
8
+ android {
9
+ buildFeatures.compose = true
10
+ composeOptions {
11
+ kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
12
+ }
13
+ namespace = " com.squareup.workflow1.ui.compose"
14
+ testNamespace = " $namespace .test"
15
+ }
16
+
6
17
dependencies {
18
+ val composeBom = platform(libs.androidx.compose.bom)
19
+ implementation(composeBom)
20
+
7
21
api(libs.kotlin.jdk6)
8
22
api(libs.kotlinx.coroutines.core)
9
23
api(libs.squareup.okio)
24
+ api(libs.androidx.compose.runtime)
10
25
11
26
testImplementation(libs.junit)
12
27
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