Igor Demin 1 year ago committed by GitHub
parent
commit
46e8549a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/AnimatedImage/library/src/commonMain/kotlin/org/jetbrains/compose/animatedimage/AnimatedImage.kt
  2. 2
      components/gradle.properties

2
components/AnimatedImage/library/src/commonMain/kotlin/org/jetbrains/compose/animatedimage/AnimatedImage.kt

@ -1,5 +1,6 @@
package org.jetbrains.compose.animatedimage package org.jetbrains.compose.animatedimage
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.ImageBitmap import androidx.compose.ui.graphics.ImageBitmap
/** /**
@ -23,6 +24,7 @@ expect suspend fun loadResourceAnimatedImage(path: String): AnimatedImage
* Animates an [AnimatedImage] by returning an [ImageBitmap] for each frame of the image. * Animates an [AnimatedImage] by returning an [ImageBitmap] for each frame of the image.
* The caller will be recomposed with each new frame that has been rendered. * The caller will be recomposed with each new frame that has been rendered.
*/ */
@Composable
expect fun AnimatedImage.animate(): ImageBitmap expect fun AnimatedImage.animate(): ImageBitmap
private val BlankBitmap = ImageBitmap(1, 1) private val BlankBitmap = ImageBitmap(1, 1)

2
components/gradle.properties

@ -5,7 +5,7 @@ kotlin.code.style=official
# __KOTLIN_COMPOSE_VERSION__ # __KOTLIN_COMPOSE_VERSION__
kotlin.version=1.9.0 kotlin.version=1.9.0
# __LATEST_COMPOSE_RELEASE_VERSION__ # __LATEST_COMPOSE_RELEASE_VERSION__
compose.version=1.5.0-dev1109 compose.version=1.5.0-dev1112
agp.version=7.3.1 agp.version=7.3.1
org.jetbrains.compose.experimental.jscanvas.enabled=true org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true org.jetbrains.compose.experimental.macos.enabled=true

Loading…
Cancel
Save