-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Add additional dynamic library product to Package.swift #2507
Conversation
products: [.library(name: "Lottie", targets: ["Lottie"])], | ||
products: [ | ||
.library(name: "Lottie", targets: ["Lottie"]), | ||
.library(name: "Lottie-Dynamic", type: .dynamic, targets: ["Lottie"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here explaining the difference between Lottie and Lottie-Dynamic, and a quick explanation of when you would prefer to use Lottie-Dynamic instead of Lottie?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @calda , thank you for your quick response! I've added a short description to the Package.swift
hope this is sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Hey! This is precisely what we need. P.S. |
Sure, I just released 4.5.1: https://github.com/airbnb/lottie-ios/releases/tag/4.5.1 |
Hi Lottie-Team,
I would like to link the Lottie framework dynamically to use it inside another framework.
To avoid duplicate symbols the library should not embedded in the framework target and only embedded in the app target.
To solve this issue (since SPM Dependencies are automatically built statically) another product has been added to the
Package.swift
file allowing to build a dynamic framework. This seems to be a common practice as it is used by the SnapKit and RxSwift framework.