Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(repo): bump lottie from 2.7.0 to 3.1.0 in /packages/stream_chat_flutter #1865

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 26, 2024

Bumps lottie from 2.7.0 to 3.1.0.

Release notes

Sourced from lottie's releases.

v3.1.0

  • Use package:http for Lottie.network. This allows to drop dependency on dart:html and be compatible with wasm.
  • Fix new lints from Flutter 3.19

v3.0.0

  • Add support for layer blend mode

  • Allow to load Telegram Stickers (.tgs)

Lottie.asset(
  'sticker.tgs',
  decoder: LottieComposition.decodeGZip,
)
  • Add renderCache parameter.
Lottie.asset('assets/complex_animation.json',
  renderCache: RenderCache.raster,
)

Opt-in to a special render mode where the frames of the animation are lazily rendered and kept in a cache.
Subsequent runs of the animation are cheaper to render.

There are 2 kinds of caches:

RenderCache.raster: keep the frame rasterized in the cache (as [dart:ui.Image]). Subsequent runs of the animation are very cheap for both the CPU and GPU but it takes a lot of memory.
RenderCache.drawingCommands: keep the frame as a list of graphical operations ([dart:ui.Picture]). Subsequent runs of the animation are cheaper for the CPU but not for the GPU.

  • Expose a hook to customize how to decode zip archives. This is useful for dotlottie archives (.lottie) when we want to specify a specific .json file inside the archive
Lottie.asset(
  'animation.lottie',
  decoder: customDecoder,
);
Future<LottieComposition?> customDecoder(List<int> bytes) {
return LottieComposition.decodeZip(bytes, filePicker: (files) {
return files.firstWhere((f) => f.name == 'animations/cat.json');
});
}

... (truncated)

Changelog

Sourced from lottie's changelog.

3.1.0

  • Use package:http for Lottie.network. This allows to drop dependency on dart:html and be compatible with wasm.
  • Fix new lints

3.0.0

  • Add renderCache parameter.
Lottie.asset('assets/complex_animation.json',
  renderCache: RenderCache.raster,
)

Opt-in to a special render mode where the frames of the animation are lazily rendered and kept in a cache.
Subsequent runs of the animation are cheaper to render.

There are 2 kinds of caches:

RenderCache.raster: keep the frame rasterized in the cache (as [dart:ui.Image]). Subsequent runs of the animation are very cheap for both the CPU and GPU but it takes a lot of memory.
RenderCache.drawingCommands: keep the frame as a list of graphical operations ([dart:ui.Picture]). Subsequent runs of the animation are cheaper for the CPU but not for the GPU.

  • Allow to load Telegram Stickers (.tgs)
Lottie.asset(
  'sticker.tgs',
  decoder: LottieComposition.decodeGZip,
)
  • Expose a hook to customize how to decode zip archives. This is useful for dotlottie archives (.lottie) when we want to specify a specific .json file inside the archive
Lottie.asset(
  'animation.lottie',
  decoder: customDecoder,
);
Future<LottieComposition?> customDecoder(List<int> bytes) {
return LottieComposition.decodeZip(bytes, filePicker: (files) {
return files.firstWhere((f) => f.name == 'animations/cat.json');
});
}

  • Add backgroundLoading parameter to Lottie.asset|network|file|memory.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Feb 26, 2024
@esarbanis esarbanis changed the title chore(deps): bump lottie from 2.7.0 to 3.1.0 in /packages/stream_chat_flutter chore(repo): bump lottie from 2.7.0 to 3.1.0 in /packages/stream_chat_flutter Feb 27, 2024
christopherarm

This comment was marked as off-topic.

@dependabot dependabot bot force-pushed the dependabot/pub/packages/stream_chat_flutter/lottie-3.1.0 branch from 0bf0420 to 14f4bee Compare March 4, 2024 10:06
Bumps [lottie](https://github.com/xvrh/lottie-flutter) from 2.7.0 to 3.1.0.
- [Release notes](https://github.com/xvrh/lottie-flutter/releases)
- [Changelog](https://github.com/xvrh/lottie-flutter/blob/master/CHANGELOG.md)
- [Commits](xvrh/lottie-flutter@v2.7.0...v3.1.0)

---
updated-dependencies:
- dependency-name: lottie
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@esarbanis esarbanis force-pushed the dependabot/pub/packages/stream_chat_flutter/lottie-3.1.0 branch from 14f4bee to b09950f Compare March 5, 2024 11:03
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.40%. Comparing base (c3265b5) to head (b09950f).

❗ Current head b09950f differs from pull request most recent head 5845482. Consider uploading reports for the commit 5845482 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1865   +/-   ##
=======================================
  Coverage   59.40%   59.40%           
=======================================
  Files         310      310           
  Lines       17834    17834           
=======================================
  Hits        10594    10594           
  Misses       7240     7240           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@esarbanis esarbanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@esarbanis esarbanis merged commit 226933c into master Mar 5, 2024
14 checks passed
@esarbanis esarbanis deleted the dependabot/pub/packages/stream_chat_flutter/lottie-3.1.0 branch March 5, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dart Pull requests that update Dart code dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants