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 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 11plugins {
2- id(" kotlin-jvm" )
2+ id(" com.android.library" )
3+ id(" kotlin-android" )
4+ id(" android-defaults" )
35 id(" published" )
46}
57
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+
617dependencies {
18+ val composeBom = platform(libs.androidx.compose.bom)
19+ implementation(composeBom)
20+
721 api(libs.kotlin.jdk6)
822 api(libs.kotlinx.coroutines.core)
923 api(libs.squareup.okio)
24+ api(libs.androidx.compose.runtime)
1025
1126 testImplementation(libs.junit)
1227 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