Files
element-x-ios/compound-ios/Package.swift
T
Doug 7587fd76ee Fix some isolation errors when compiling with Swift 6.4. (#6148)
* Fix some isolation errors when compiling with Swift 6.4.

* Update the Design Tokens dependency to include Sendable conformances.

(cherry picked from commit 4608a63e29)
2026-09-22 18:27:48 +02:00

45 lines
1.5 KiB
Swift

// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "Compound",
platforms: [.iOS(.v18)],
products: [
.library(name: "Compound", targets: ["Compound"])
],
dependencies: [
.package(url: "https://github.com/element-hq/compound-design-tokens", exact: "11.0.0"),
// .package(path: "../../compound-design-tokens"),
.package(url: "https://github.com/siteline/SwiftUI-Introspect", exact: "26.0.2"),
.package(url: "https://github.com/SFSafeSymbols/SFSafeSymbols", exact: "7.0.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", exact: "1.19.4")
],
targets: [
.target(
name: "Compound",
dependencies: [
.product(name: "CompoundDesignTokens", package: "compound-design-tokens"),
.product(name: "SwiftUIIntrospect", package: "SwiftUI-Introspect"),
.product(name: "SFSafeSymbols", package: "SFSafeSymbols")
],
swiftSettings: [
.defaultIsolation(MainActor.self)
]
),
.testTarget(
name: "CompoundTests",
dependencies: [
"Compound",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
exclude: [
"__Snapshots__"
],
swiftSettings: [
.defaultIsolation(MainActor.self)
]
)
]
)