Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
40 changes: 38 additions & 2 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK 17
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17
java-version: 21

- name: Setup Android SDK
uses: android-actions/setup-android@v2
Expand All @@ -50,3 +50,39 @@ jobs:

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

stability_check:
name: Compose Stability Check
runs-on: ubuntu-latest

if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 21

- name: Setup Android SDK
uses: android-actions/setup-android@v2

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true

- 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: 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
21 changes: 21 additions & 0 deletions app/stability/app.stability
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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 :app:stabilityDump

@Composable
public fun com.ninecraft.booket.di.CrossFadeNavDecorator.Decoration(targetState: com.slack.circuit.foundation.NavigatorDefaults.DefaultDecorator.DefaultAnimatedState<T of com.ninecraft.booket.di.CrossFadeNavDecorator>, innerContent: @[Composable] androidx.compose.runtime.internal.ComposableFunction1<T of com.ninecraft.booket.di.CrossFadeNavDecorator, kotlin.Unit>): kotlin.Unit
skippable: false
restartable: true
params:
- targetState: RUNTIME (requires runtime check)
- innerContent: STABLE (composable function type)

@Composable
public fun com.ninecraft.booket.di.CrossFadeNavDecorator.updateTransition(args: kotlinx.collections.immutable.ImmutableList<T of com.ninecraft.booket.di.CrossFadeNavDecorator>): androidx.compose.animation.core.Transition<com.slack.circuit.foundation.NavigatorDefaults.DefaultDecorator.DefaultAnimatedState<T of com.ninecraft.booket.di.CrossFadeNavDecorator>>
skippable: true
restartable: true
params:
- args: STABLE (known stable type)

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:

Loading
Loading