Skip to content

Update compottie to v2.2.1 (main)#1124

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-compottie
Open

Update compottie to v2.2.1 (main)#1124
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-compottie

Conversation

@renovate

@renovate renovate Bot commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
io.github.alexzhirkevich:compottie-dot 2.0.22.2.1 age confidence
io.github.alexzhirkevich:compottie 2.0.22.2.1 age confidence

Release Notes

alexzhirkevich/compottie (io.github.alexzhirkevich:compottie-dot)

v2.2.1

Compare Source

  • Added Compose 1.12.0-alpha01 compatibility release to the sonatype SNAPSHOT repository
    io.github.alexzhirkevich:compottie:2.2.1-compose-1.12-SNAPSHOT
dependencyResolutionManagement {
    repositories {
        mavenCentral()
        maven("https://central.sonatype.com/repository/maven-snapshots")
    }
}

Fixes

  • Removed org.jetbrains.skiko dependency from the Android target
  • Fixed an issue when some painters created with non-null composition can be rendered incorrectly

v2.2.0

Compare Source

  • Compose updated to 1.11

Known Issues

  • Android accidentally depends on org.jebrains.skiko

Features

  • Added support for conic (sweep) gradients from the latest Lottie spec.
  • animateLottieComposition now restarts when the composition parameter changes.
  • Un-deprecated the rememberLottieComposition overload that takes ready LottieCompositionSpec instance. It now also takes a runtime cache and a coroutine context parameters. If the composition was previously loaded and is still contained in the runtime LottieCompositionCache, then this overload will immediately return ready-to-use not-null LottieComposition instance.
@​Composable
public fun rememberLottieComposition(
    spec : LottieCompositionSpec,
    cache: LottieCompositionCache? = LocalLottieCache.current,
    coroutineContext: CoroutineContext = remember { Compottie.ioDispatcher() },
)
  • Added experimental LottieCompositionSpec.Resource to compottie-resources that takes a file name and a load method.
// Example:
//
// val composition by rememberLottieComposition(
//     LottieCompositionSpec.Resource(
//         path = "files/anim.lottie",
//         reader = Res::readBytes
//     )
// )
@​ExperimentalCompottieApi
public fun LottieCompositionSpec.Companion.Resource(
    path : String,
    reader : suspend (path : String) -> ByteArray
) : LottieCompositionSpec

// Example:
//
// val composition by rememberLottieComposition(
//      LottieCompositionSpec.Resource(
//          Res.getUri("files/anim.lottie")
//      )
// )
@​ExperimentalCompottieApi
@​Composable
public fun LottieCompositionSpec.Companion.Resource(
    uri : String,
    directory : String = "composeResources",
    reader: ResourceReader = LocalResourceReader.current,
)

Now if

  1. The rememberLottiePainter function takes a non-null LottieComposition instance in the composition phase,
  2. The animation doesn't have extra fonts/images required for that painter or the font/image loaders are not provided,
  3. The painter is not customized by the dynamic properties

Such painter will be immediately drawn synchonously from the first frame.
For example, it allows you to use Lottie animations in the seamless shared element transitions without sharing the Painter instance between the screens. For the best UX the animation progress can be shared instead.

dotLottie State Machine support

You can make your animation interactive out of the box using the dotLottie state machines.
To display an animation with a state machine you should use new Lottie composable instead of Image.
You can still use Image for non-interactive animations.

val animatable = rememberLottieAnimatable()

Lottie(
    painter = rememberLottiePainter(
        composition = dotLottieComposition,
        progress = animatable::value
    ),
    stateMachine = rememberLottieStateMachine(
        id = "interactive_slider",
        composition = dotLottieComposition,
        animatable = animatable 
    ),
    contentDescription = "Interactive Lottie slider"
)
slider example2

v2.1.0

Compare Source

Fixes
  • Fixed crash regression related to memory management (#​68)
Features
val painter = rememberLottiePainter(
    composition = dotLottieComposition,
    progress = progress,
    theme = "sunset", // "night", "day", "winter"
)
image

v2.0.3

Compare Source

  • Compose updated to 1.10.1
  • Kotlin updated to 2.3.0
Fixes
  • Fixed a bug when autooriented layer rotation was not propagated to the child layers
  • Fixed a bug when layer`s transform rotation was ignored when combined with autoorient rotation
  • Improved performance of .lottie and images decoding on Web. Such animations are now decoded in a background worker

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Feb 19, 2026
@github-actions

Copy link
Copy Markdown

Typescript headers

No changes

@github-actions

Copy link
Copy Markdown

iOS Framework headers

No changes

@renovate renovate Bot force-pushed the renovate/main-compottie branch 2 times, most recently from def8fad to 49fedab Compare March 5, 2026 09:25
@renovate renovate Bot changed the title Update compottie to v2.0.3 (main) Update compottie to v2.1.0 (main) Mar 5, 2026
@renovate renovate Bot force-pushed the renovate/main-compottie branch from 49fedab to 49e7825 Compare March 13, 2026 10:44
@renovate renovate Bot force-pushed the renovate/main-compottie branch from 49e7825 to fe2f648 Compare April 1, 2026 17:46
@renovate renovate Bot force-pushed the renovate/main-compottie branch from fe2f648 to bb15eac Compare April 21, 2026 20:17
@renovate renovate Bot force-pushed the renovate/main-compottie branch from bb15eac to 4018962 Compare May 13, 2026 21:01
@renovate renovate Bot force-pushed the renovate/main-compottie branch 2 times, most recently from fee82f2 to 6498841 Compare May 26, 2026 11:10
@renovate renovate Bot changed the title Update compottie to v2.1.0 (main) Update compottie to v2.2.0 (main) May 26, 2026
@renovate renovate Bot force-pushed the renovate/main-compottie branch from 6498841 to c9ab7d2 Compare June 1, 2026 21:51
@renovate renovate Bot changed the title Update compottie to v2.2.0 (main) Update compottie to v2.2.1 (main) Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants