From 39cdfbb97d47d1ea6c1f125c1e4b28374065454b Mon Sep 17 00:00:00 2001 From: Vincent Neo <23420208+vincentneo@users.noreply.github.com> Date: Fri, 23 Jun 2023 23:24:31 +0800 Subject: [PATCH] add visionOS to SPM --- Package.swift | 4 ++-- Package@swift-5.5.swift | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 Package@swift-5.5.swift diff --git a/Package.swift b/Package.swift index 8b56e7af..40cd182a 100644 --- a/Package.swift +++ b/Package.swift @@ -1,11 +1,11 @@ -// swift-tools-version:5.5 +// swift-tools-version:5.9 import PackageDescription let package = Package( name: "SwiftDate", defaultLocalization: "it", platforms: [ - .macOS(.v10_15), .iOS(.v13), .watchOS(.v6), .tvOS(.v13) + .macOS(.v10_15), .iOS(.v13), .watchOS(.v6), .tvOS(.v13), .visionOS(.v1) ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/Package@swift-5.5.swift b/Package@swift-5.5.swift new file mode 100644 index 00000000..8b56e7af --- /dev/null +++ b/Package@swift-5.5.swift @@ -0,0 +1,27 @@ +// swift-tools-version:5.5 +import PackageDescription + +let package = Package( + name: "SwiftDate", + defaultLocalization: "it", + platforms: [ + .macOS(.v10_15), .iOS(.v13), .watchOS(.v6), .tvOS(.v13) + ], + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library(name: "SwiftDate", targets: ["SwiftDate"]) + ], + dependencies: [], + targets: [ + .target( + name: "SwiftDate", + dependencies: [], + resources: [ + .copy("Formatters/RelativeFormatter/langs"), + .process("Resources") + ]), + .testTarget( + name: "SwiftDateTests", + dependencies: ["SwiftDate"]) + ] +)