Skip to content

Commit

Permalink
Add stability task end state
Browse files Browse the repository at this point in the history
  • Loading branch information
mlykotom committed May 14, 2024
1 parent bcc38f7 commit bb8cdbc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PerformanceCodelab/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ composeCompiler {
// This settings enables strong-skipping mode for all module in this project.
// As an effect, Compose can skip a composable even if it's unstable by comparing it's instance equality (===).
// TODO Codelab task: Enable Strong Skipping Mode
enableStrongSkippingMode = false
enableStrongSkippingMode = true

// TODO Codelab task: Enable Stability Configuration file
stabilityConfigurationFile = project.rootDir.resolve("stability_config.conf")
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.compose.performance.stability

import androidx.compose.runtime.Immutable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.neverEqualPolicy
Expand All @@ -32,6 +33,7 @@ import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.stateIn

// TODO Codelab task: make this class Stable
@Immutable
data class StabilityItem(
val id: Int,
val type: StabilityItemType,
Expand Down
2 changes: 2 additions & 0 deletions PerformanceCodelab/stability_config.conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// TODO Codelab task: Make a java.time.LocalDate class stable.

java.time.LocalDate

0 comments on commit bb8cdbc

Please sign in to comment.