mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
b27a549ef8
* Fix an issue with macro compilation when using Xcode previews. * Update the Chats/Spaces toolbars to match the Figma. Fixes a bug with the status emoji in the liquid glass button.
47 lines
1.7 KiB
Swift
47 lines
1.7 KiB
Swift
// swift-tools-version: 6.2
|
|
|
|
import CompilerPluginSupport
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "BuildExtensions",
|
|
platforms: [
|
|
.macOS(.v15),
|
|
.iOS(.v18) // Only necessary for Previews
|
|
],
|
|
products: [
|
|
.library(name: "Macros", targets: ["Macros"])
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/swiftlang/swift-syntax", from: "603.0.2")
|
|
],
|
|
targets: [
|
|
// The public macro declarations imported by the app.
|
|
.target(name: "Macros",
|
|
dependencies: ["MacrosImplementation"],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
|
.enableUpcomingFeature("InferIsolatedConformances")
|
|
]),
|
|
// The compiler plugin holding the SwiftSyntax expansions.
|
|
.macro(name: "MacrosImplementation",
|
|
dependencies: [
|
|
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
|
|
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
|
.enableUpcomingFeature("InferIsolatedConformances")
|
|
]),
|
|
.testTarget(name: "MacrosTests",
|
|
dependencies: [
|
|
"MacrosImplementation",
|
|
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
|
.enableUpcomingFeature("InferIsolatedConformances")
|
|
])
|
|
]
|
|
)
|