Repository Public
1// swift-tools-version: 6.02// AstraKit for ORIX Sheet: a pinned, vendored snapshot of the platform-neutral ORIX Astra modules.3// The sources under Sources/ and Tests/ are copies of ORIX Astra (see SNAPSHOT.md for the commit and the file list);4// they are refreshed with Scripts/sync-astra.sh and never edited here. This manifest is the only ORIX Sheet file:5// it lowers the deployment target to macOS 14 and leaves out the Astra modules that need GRDB, MLX or SwiftUI.6import PackageDescription78func module(_ name: String, _ deps: [Target.Dependency] = []) -> Target {9 .target(name: name, dependencies: deps, path: "Sources/\(name)", swiftSettings: [.swiftLanguageMode(.v6)])10}11func tests(_ name: String, _ deps: [Target.Dependency], resources: [Resource]? = nil) -> Target {12 .testTarget(name: name, dependencies: deps, path: "Tests/\(name)", resources: resources, swiftSettings: [.swiftLanguageMode(.v6)])13}1415let package = Package(16 name: "AstraKit",17 defaultLocalization: "en",18 platforms: [.macOS(.v14)],19 products: [20 .library(name: "AstraCore", targets: ["AstraCore"]),21 .library(name: "AstraProviders", targets: ["AstraProviders"]),22 .library(name: "AstraAgents", targets: ["AstraAgents"]),23 .library(name: "AstraKit", targets: ["AstraCore", "AstraProviders", "AstraAgents"]),24 ],25 targets: [26 module("AstraCore"),27 module("AstraProviders", ["AstraCore"]),28 module("AstraAgents", ["AstraCore"]),29 tests("AstraCoreTests", ["AstraCore"]),30 tests("AstraProvidersTests", ["AstraCore", "AstraProviders"], resources: [.copy("Fixtures")]),31 tests("AstraAgentsTests", ["AstraCore", "AstraAgents"]),32 ]33)34