-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing .lottie files the dotLottie format (dotlottie.io) is a zip file with animation.json bundled along with image resources, and manifest **Changes** * update zipStreamSync() to handle dotLottie use case * ignore manifest.json otherwise lottie will try to use it * update network loader to check for .lottie and treat it as a .zip * add support for .lottie and in rawRes * use magic header to determine files and use zipStreamSync() instead of fromJsonSync() * this has the bonus side effect of allowing .zip files in rawRes as well (which doesn't appear to have been supported before)
- Loading branch information
Showing
2 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters