Skip to content

Commit 217a7d2

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

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
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: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
plugins {
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+
617
dependencies {
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)
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)