forked from airbnb/lottie-spm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
26 lines (22 loc) · 986 Bytes
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "Lottie",
platforms: [.iOS("11.0"), .macOS("10.11"), .tvOS("11.0")],
products: [.library(name: "Lottie", targets: ["Lottie", "_LottieStub"])],
targets: [
.binaryTarget(
name: "Lottie",
url: "https://github.com/airbnb/lottie-ios/releases/download/4.2.0/Lottie.xcframework.zip",
checksum: "4db3dee208f6213e5c1681f2314c7ed96d466d9b9adfe5cd0030309515075443"),
// Without at least one regular (non-binary) target, this package doesn't show up
// in Xcode under "Frameworks, Libraries, and Embedded Content". That prevents
// Lottie from being embedded in the app product, causing the app to crash when
// ran on a physical device. As a workaround, we can include a stub target
// with at least one source file.
.target(name: "_LottieStub"),
.testTarget(
name: "LottieTests",
dependencies: ["Lottie"],
path: "Tests")
])