Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,29 @@ jobs:

- name: Run build
run: ./gradlew buildDebug --stacktrace

stability_check:
name: Compose Stability Check
runs-on: macos-latest
needs: ci-build
steps:
- name: Check out code
uses: actions/checkout@v5

- name: Generate local.properties
run: echo '${{ secrets.LOCAL_PROPERTIES }}' | base64 -d > ./local.properties

- name: Generate keystore.properties
run: echo '${{ secrets.KEYSTORE_PROPERTIES }}' | base64 -d > ./keystore.properties

- name: Generate google-services.json
run: echo '${{ secrets.GOOGLE_SERVICES }}' | base64 -d > ./app/google-services.json

- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 21

- name: Compose Stability Check
run: ./gradlew stabilityCheck
Comment thread
coderabbitai[bot] marked this conversation as resolved.
4 changes: 4 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ android {
}
}

composeStabilityAnalyzer {
enabled.set(true)
}

ksp {
arg("circuit.codegen.mode", "hilt")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ internal class AndroidApplicationComposeConventionPlugin : Plugin<Project> {
applyPlugins(
Plugins.ANDROID_APPLICATION,
Plugins.KOTLIN_COMPOSE,
Plugins.COMPOSE_STABILITY_ANALYZER,
)

extensions.configure<ApplicationExtension> {
Expand Down
33 changes: 33 additions & 0 deletions core/common/stability/common.stability
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// This file was automatically generated by Compose Stability Analyzer
// https://github.com/skydoves/compose-stability-analyzer
//
// Do not edit this file directly. To update it, run:
// ./gradlew :common:stabilityDump

@Composable
public fun com.ninecraft.booket.core.common.utils.HighlightedText(fullText: kotlin.String, highlightText: kotlin.String, highlightColor: androidx.compose.ui.graphics.Color): androidx.compose.ui.text.AnnotatedString
skippable: true
restartable: true
params:
- fullText: STABLE (String is immutable)
- highlightText: STABLE (String is immutable)
- highlightColor: STABLE (marked @Stable or @Immutable)

@Composable
public fun com.ninecraft.booket.core.common.utils.UiText.DirectString.asString(): kotlin.String
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.common.utils.UiText.StringResource.asString(): kotlin.String
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.common.utils.UiText.asString(): kotlin.String
skippable: true
restartable: true
params:

316 changes: 316 additions & 0 deletions core/designsystem/stability/designsystem.stability
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
// This file was automatically generated by Compose Stability Analyzer
// https://github.com/skydoves/compose-stability-analyzer
//
// Do not edit this file directly. To update it, run:
// ./gradlew :designsystem:stabilityDump

@Composable
public fun com.ninecraft.booket.core.designsystem.component.NetworkImage(imageUrl: kotlin.String, contentDescription: kotlin.String, modifier: androidx.compose.ui.Modifier, placeholder: androidx.compose.ui.graphics.painter.Painter?, contentScale: androidx.compose.ui.layout.ContentScale): kotlin.Unit
skippable: false
restartable: true
params:
- imageUrl: STABLE (String is immutable)
- contentDescription: STABLE (String is immutable)
- modifier: STABLE (marked @Stable or @Immutable)
- placeholder: RUNTIME (requires runtime check)
- contentScale: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.NetworkImagePreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.RecordProgressBar(currentStep: com.ninecraft.booket.core.designsystem.RecordStep, modifier: androidx.compose.ui.Modifier): kotlin.Unit
skippable: true
restartable: true
params:
- currentStep: STABLE
- modifier: STABLE (marked @Stable or @Immutable)

@Composable
public fun com.ninecraft.booket.core.designsystem.component.ReedDivider(modifier: androidx.compose.ui.Modifier): kotlin.Unit
skippable: true
restartable: true
params:
- modifier: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.ReedDividerPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.ResourceImage(imageRes: kotlin.Int, contentDescription: kotlin.String, modifier: androidx.compose.ui.Modifier, placeholder: androidx.compose.ui.graphics.painter.Painter?, contentScale: androidx.compose.ui.layout.ContentScale): kotlin.Unit
skippable: false
restartable: true
params:
- imageRes: STABLE (primitive type)
- contentDescription: STABLE (String is immutable)
- modifier: STABLE (marked @Stable or @Immutable)
- placeholder: RUNTIME (requires runtime check)
- contentScale: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.ResourceImagePreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.<get-largeButtonStyle>(): com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.<get-largeRoundedButtonStyle>(): com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.<get-mediumButtonStyle>(): com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.<get-mediumRoundedButtonStyle>(): com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.<get-smallButtonStyle>(): com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.<get-smallRoundedButtonStyle>(): com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.ReedButton(onClick: kotlin.Function0<kotlin.Unit>, text: kotlin.String, sizeStyle: com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle, colorStyle: com.ninecraft.booket.core.designsystem.component.button.ReedButtonColorStyle, modifier: androidx.compose.ui.Modifier, enabled: kotlin.Boolean, leadingIcon: @[Composable] androidx.compose.runtime.internal.ComposableFunction0<kotlin.Unit>?, trailingIcon: @[Composable] androidx.compose.runtime.internal.ComposableFunction0<kotlin.Unit>?, multipleEventsCutterEnabled: kotlin.Boolean): kotlin.Unit
skippable: true
restartable: true
params:
- onClick: STABLE (function type)
- text: STABLE (String is immutable)
- sizeStyle: STABLE
- colorStyle: STABLE
- modifier: STABLE (marked @Stable or @Immutable)
- enabled: STABLE (primitive type)
- leadingIcon: STABLE (composable function type)
- trailingIcon: STABLE (composable function type)
- multipleEventsCutterEnabled: STABLE (primitive type)

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.ReedButtonColorStyle.borderStroke(): androidx.compose.foundation.BorderStroke?
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.ReedButtonColorStyle.containerColor(isPressed: kotlin.Boolean): androidx.compose.ui.graphics.Color
skippable: true
restartable: true
params:
- isPressed: STABLE (primitive type)

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.ReedButtonColorStyle.contentColor(): androidx.compose.ui.graphics.Color
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.ReedButtonColorStyle.disabledContainerColor(): androidx.compose.ui.graphics.Color
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.ReedButtonColorStyle.disabledContentColor(): androidx.compose.ui.graphics.Color
skippable: true
restartable: true
params:

@Composable
private fun com.ninecraft.booket.core.designsystem.component.button.ReedButtonDisabledPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
private fun com.ninecraft.booket.core.designsystem.component.button.ReedLargeButtonPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
private fun com.ninecraft.booket.core.designsystem.component.button.ReedMediumButtonPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
private fun com.ninecraft.booket.core.designsystem.component.button.ReedSmallButtonPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.button.ReedTextButton(onClick: kotlin.Function0<kotlin.Unit>, text: kotlin.String, sizeStyle: com.ninecraft.booket.core.designsystem.component.button.ButtonSizeStyle, colorStyle: com.ninecraft.booket.core.designsystem.component.button.ReedButtonColorStyle, modifier: androidx.compose.ui.Modifier, enabled: kotlin.Boolean, multipleEventsCutterEnabled: kotlin.Boolean): kotlin.Unit
skippable: true
restartable: true
params:
- onClick: STABLE (function type)
- text: STABLE (String is immutable)
- sizeStyle: STABLE
- colorStyle: STABLE
- modifier: STABLE (marked @Stable or @Immutable)
- enabled: STABLE (primitive type)
- multipleEventsCutterEnabled: STABLE (primitive type)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.button.ReedTextButtonPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.checkbox.CircleCheckBox(checked: kotlin.Boolean, onCheckedChange: kotlin.Function1<kotlin.Boolean, kotlin.Unit>, modifier: androidx.compose.ui.Modifier): kotlin.Unit
skippable: true
restartable: true
params:
- checked: STABLE (primitive type)
- onCheckedChange: STABLE (function type)
- modifier: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.checkbox.CircleCheckboxPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.checkbox.SquareCheckBox(checked: kotlin.Boolean, onCheckedChange: kotlin.Function1<kotlin.Boolean, kotlin.Unit>, modifier: androidx.compose.ui.Modifier): kotlin.Unit
skippable: true
restartable: true
params:
- checked: STABLE (primitive type)
- onCheckedChange: STABLE (function type)
- modifier: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.checkbox.SquareCheckboxPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.checkbox.TickOnlyCheckBox(checked: kotlin.Boolean, onCheckedChange: kotlin.Function1<kotlin.Boolean, kotlin.Unit>, modifier: androidx.compose.ui.Modifier): kotlin.Unit
skippable: true
restartable: true
params:
- checked: STABLE (primitive type)
- onCheckedChange: STABLE (function type)
- modifier: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.checkbox.TickOnlyCheckBoxPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.textfield.ReedRecordTextField(recordState: androidx.compose.foundation.text.input.TextFieldState, recordHintRes: kotlin.Int, modifier: androidx.compose.ui.Modifier, inputTransformation: androidx.compose.foundation.text.input.InputTransformation?, keyboardOptions: androidx.compose.foundation.text.KeyboardOptions, lineLimits: androidx.compose.foundation.text.input.TextFieldLineLimits, isError: kotlin.Boolean, errorMessage: kotlin.String, onClear: kotlin.Function0<kotlin.Unit>?, onNext: kotlin.Function0<kotlin.Unit>, backgroundColor: androidx.compose.ui.graphics.Color, textColor: androidx.compose.ui.graphics.Color, cornerShape: androidx.compose.foundation.shape.RoundedCornerShape, borderStroke: androidx.compose.foundation.BorderStroke): kotlin.Unit
skippable: false
restartable: true
params:
- recordState: STABLE (marked @Stable or @Immutable)
- recordHintRes: STABLE (primitive type)
- modifier: STABLE (marked @Stable or @Immutable)
- inputTransformation: STABLE (marked @Stable or @Immutable)
- keyboardOptions: STABLE (marked @Stable or @Immutable)
- lineLimits: STABLE (marked @Stable or @Immutable)
- isError: STABLE (primitive type)
- errorMessage: STABLE (String is immutable)
- onClear: STABLE (function type)
- onNext: STABLE (function type)
- backgroundColor: STABLE (marked @Stable or @Immutable)
- textColor: STABLE (marked @Stable or @Immutable)
- cornerShape: RUNTIME (requires runtime check)
- borderStroke: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.textfield.ReedRecordTextFieldPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.component.textfield.ReedTextField(queryState: androidx.compose.foundation.text.input.TextFieldState, queryHintRes: kotlin.Int, onSearch: kotlin.Function1<kotlin.String, kotlin.Unit>, onClear: kotlin.Function0<kotlin.Unit>, modifier: androidx.compose.ui.Modifier, backgroundColor: androidx.compose.ui.graphics.Color, textColor: androidx.compose.ui.graphics.Color, cornerShape: androidx.compose.foundation.shape.RoundedCornerShape, borderStroke: androidx.compose.foundation.BorderStroke?, searchIconTint: androidx.compose.ui.graphics.Color): kotlin.Unit
skippable: false
restartable: true
params:
- queryState: STABLE (marked @Stable or @Immutable)
- queryHintRes: STABLE (primitive type)
- onSearch: STABLE (function type)
- onClear: STABLE (function type)
- modifier: STABLE (marked @Stable or @Immutable)
- backgroundColor: STABLE (marked @Stable or @Immutable)
- textColor: STABLE (marked @Stable or @Immutable)
- cornerShape: RUNTIME (requires runtime check)
- borderStroke: STABLE (marked @Stable or @Immutable)
- searchIconTint: STABLE (marked @Stable or @Immutable)

@Composable
private fun com.ninecraft.booket.core.designsystem.component.textfield.ReedTextFieldPreview(): kotlin.Unit
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.theme.ReedTheme(content: @[Composable] androidx.compose.runtime.internal.ComposableFunction0<kotlin.Unit>): kotlin.Unit
skippable: true
restartable: true
params:
- content: STABLE (composable function type)

@Composable
public fun com.ninecraft.booket.core.designsystem.theme.ReedTheme.<get-border>(): com.ninecraft.booket.core.designsystem.theme.ReedBorder
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.theme.ReedTheme.<get-colors>(): com.ninecraft.booket.core.designsystem.theme.ReedColorScheme
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.theme.ReedTheme.<get-radius>(): com.ninecraft.booket.core.designsystem.theme.ReedRadius
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.theme.ReedTheme.<get-spacing>(): com.ninecraft.booket.core.designsystem.theme.ReedSpacing
skippable: true
restartable: true
params:

@Composable
public fun com.ninecraft.booket.core.designsystem.theme.ReedTheme.<get-typography>(): com.ninecraft.booket.core.designsystem.theme.ReedTypography
skippable: true
restartable: true
params:

Loading
Loading