Updated compose to 1.6.0
This commit is contained in:
parent
52f699d13e
commit
fb3b7fabae
@ -13,7 +13,7 @@ plugins {
|
|||||||
kotlin("jvm") version "1.9.20"
|
kotlin("jvm") version "1.9.20"
|
||||||
kotlin("plugin.serialization") version "1.9.20"
|
kotlin("plugin.serialization") version "1.9.20"
|
||||||
id("com.google.devtools.ksp") version "1.9.20-1.0.14"
|
id("com.google.devtools.ksp") version "1.9.20-1.0.14"
|
||||||
id("org.jetbrains.compose") version "1.5.11"
|
id("org.jetbrains.compose") version "1.6.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remember to update Constants.APP_VERSION when changing this version
|
// Remember to update Constants.APP_VERSION when changing this version
|
||||||
|
@ -71,11 +71,18 @@ import org.eclipse.jgit.submodule.SubmoduleStatusType
|
|||||||
import org.jetbrains.compose.animatedimage.Blank
|
import org.jetbrains.compose.animatedimage.Blank
|
||||||
import org.jetbrains.compose.animatedimage.animate
|
import org.jetbrains.compose.animatedimage.animate
|
||||||
import org.jetbrains.compose.animatedimage.loadAnimatedImage
|
import org.jetbrains.compose.animatedimage.loadAnimatedImage
|
||||||
import org.jetbrains.compose.resources.loadOrNull
|
|
||||||
import java.io.FileInputStream
|
import java.io.FileInputStream
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
|
|
||||||
private const val MAX_MOVES_COUNT = 5
|
private const val MAX_MOVES_COUNT = 5
|
||||||
|
@Composable
|
||||||
|
private fun <T> loadOrNull(key: Any, action: suspend () -> T?): T? {
|
||||||
|
var result: T? by remember(key) { mutableStateOf(null) }
|
||||||
|
LaunchedEffect(Unit) {
|
||||||
|
result = action()
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun Diff(
|
fun Diff(
|
||||||
|
Loading…
Reference in New Issue
Block a user