File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
src/main/java/com/compose/performance/stability Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,10 @@ composeCompiler {
6969 // This settings enables strong-skipping mode for all module in this project.
7070 // As an effect, Compose can skip a composable even if it's unstable by comparing it's instance equality (===).
7171 // TODO Codelab task: Enable Strong Skipping Mode
72- enableStrongSkippingMode = false
72+ enableStrongSkippingMode = true
7373
7474 // TODO Codelab task: Enable Stability Configuration file
75+ stabilityConfigurationFile = project.rootDir.resolve(" stability_config.conf" )
7576}
7677
7778dependencies {
Original file line number Diff line number Diff line change 1515 */
1616package com.compose.performance.stability
1717
18+ import androidx.compose.runtime.Immutable
1819import androidx.compose.runtime.getValue
1920import androidx.compose.runtime.mutableStateOf
2021import androidx.compose.runtime.neverEqualPolicy
@@ -32,6 +33,7 @@ import kotlinx.coroutines.flow.onEach
3233import kotlinx.coroutines.flow.stateIn
3334
3435// TODO Codelab task: make this class Stable
36+ @Immutable
3537data class StabilityItem (
3638 val id : Int ,
3739 val type : StabilityItemType ,
Original file line number Diff line number Diff line change 11// TODO Codelab task: Make a java.time.LocalDate class stable.
2+
3+ java.time.LocalDate
You can’t perform that action at this time.
0 commit comments