From 657aa83a5ca24dc35572c040df64a0abb85e8612 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 15 Jun 2026 14:35:36 +0200 Subject: Initial extraction from Norganize --- Package.swift | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Package.swift (limited to 'Package.swift') diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..c9a9448 --- /dev/null +++ b/Package.swift @@ -0,0 +1,51 @@ +// swift-tools-version: 6.4 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "NorgUI", + defaultLocalization: "en", + platforms: [ + .iOS(.v18), + .macOS(.v15), + .visionOS(.v2), + ], + products: [ + // Products define the executables and libraries a package produces, making them visible to other packages. + .library( + name: "NorgUI", + targets: ["NorgUI"] + ), + ], + dependencies: [ + // NorgKit provides the parser and model value types. Uses a local path + // while the packages are developed side by side; switch to a tagged + // git dependency once NorgKit is published. + .package(path: "../norgkit"), + ], + targets: [ + // Targets are the basic building blocks of a package, defining a module or a test suite. + // Targets can depend on other targets in this package and products from dependencies. + .target( + name: "NorgUI", + dependencies: [ + .product(name: "NorgKit", package: "norgkit"), + ], + resources: [ + .process("Resources"), + ], + swiftSettings: [ + .enableUpcomingFeature("ApproachableConcurrency"), + ], + ), + .testTarget( + name: "NorgUITests", + dependencies: ["NorgUI"], + swiftSettings: [ + .enableUpcomingFeature("ApproachableConcurrency"), + ], + ), + ], + swiftLanguageModes: [.v6] +) -- cgit