Skip to content

Commit dac67dd

Browse files
committed
Adds RuntimeConfigOptions.ALL
1 parent d32a97a commit dac67dd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

workflow-core/api/workflow-core.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public final class com/squareup/workflow1/RuntimeConfigOptions : java/lang/Enum
173173
}
174174

175175
public final class com/squareup/workflow1/RuntimeConfigOptions$Companion {
176+
public final fun getALL ()Ljava/util/Set;
176177
public final fun getDEFAULT_CONFIG ()Ljava/util/Set;
177178
public final fun getRENDER_PER_ACTION ()Ljava/util/Set;
178179
}

workflow-core/src/commonMain/kotlin/com/squareup/workflow1/RuntimeConfig.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,11 @@ public enum class RuntimeConfigOptions {
7676
public val RENDER_PER_ACTION: RuntimeConfig = emptySet()
7777

7878
public val DEFAULT_CONFIG: RuntimeConfig = RENDER_PER_ACTION
79+
80+
/**
81+
* Configuration that enables every [RuntimeConfig] option.
82+
*/
83+
@WorkflowExperimentalRuntime
84+
public val ALL: RuntimeConfig = entries.toSet()
7985
}
8086
}

0 commit comments

Comments
 (0)