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

Don't use fallback APIs based on OS version when running on WinAppSDK #566

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

getrou
Copy link
Contributor

@getrou getrou commented Dec 19, 2024

Lottie detects the version of the OS, and uses fallback codepaths when it detects that the needed API does not exist. This was good for UWP Lottie, but is unnecessary for WinAppSDK Lottie, since WinAppSDK bundles that code into the app and is not dependent on OS version.

Particularly, this was an issue when running on old OS versions that did not have proper pathing support. Lottie would detect the old OS and fall back to a type of pathing that does not work correctly, when that is unnecessary because WinAppSDK has the latest pathing updates.

This change hard-codes the contract version for WinAppSDK Lottie.

@getrou getrou requested a review from aborziak-ms December 19, 2024 19:54
jeffstall
jeffstall previously approved these changes Dec 19, 2024
Copy link

@jeffstall jeffstall left a comment

Choose a reason for hiding this comment

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

Recommend a change, and still signed off.

source/Lottie/Loader.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants