Skip to content

Commit

Permalink
Add additional dynamic library product to Package.swift (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
JensK611 authored Dec 6, 2024
1 parent 9e8cd70 commit 55aa1db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ let package = Package(
name: "Lottie",
// Minimum platform versions should be kept in sync with the per-platform targets in Lottie.xcodeproj, lottie-ios.podspec, and lottie-spm's Package.swift
platforms: [.iOS("13.0"), .macOS("10.15"), .tvOS("13.0"), .custom("visionOS", versionString: "1.0")],
products: [.library(name: "Lottie", targets: ["Lottie"])],
products: [
.library(name: "Lottie", targets: ["Lottie"]),
// Product for dynamic linking, as SPM builds libraries statically by default.
// This product should be used in a modular project structure with multiple packages using Lottie to avoid duplicate symbols.
.library(name: "Lottie-Dynamic", type: .dynamic, targets: ["Lottie"]),
],
dependencies: [
.package(url: "https://github.com/airbnb/swift", .upToNextMajor(from: "1.0.1")),
],
Expand Down

0 comments on commit 55aa1db

Please sign in to comment.