Skip to content

Commit

Permalink
feat: add visionOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubenfer committed May 18, 2024
1 parent 9e445a7 commit 175fb0e
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// swift-tools-version:5.5
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(name: "Diagnostics",
platforms: [
.macOS(.v10_15),
.iOS(.v11),
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v6)],
.watchOS(.v6),
.visionOS(.v1)],
products: [
.library(name: "Diagnostics", targets: ["Diagnostics"])
],
Expand Down
30 changes: 30 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(name: "Diagnostics",
platforms: [
.macOS(.v10_15),
.iOS(.v11),
.tvOS(.v12),
.watchOS(.v6)],
products: [
.library(name: "Diagnostics", targets: ["Diagnostics"])
],
dependencies: [
.package(url: "https://github.com/sindresorhus/ExceptionCatcher", from: "2.0.0")
],
targets: [
.target(
name: "Diagnostics",
dependencies: ["ExceptionCatcher"],
path: "Sources",
resources: [
.process("style.css"),
.process("functions.js"),
.process("PrivacyInfo.xcprivacy")
]),
.testTarget(name: "DiagnosticsTests", dependencies: ["Diagnostics"], path: "DiagnosticsTests")
],
swiftLanguageVersions: [.v5])
30 changes: 30 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version:5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(name: "Diagnostics",
platforms: [
.macOS(.v10_15),
.iOS(.v11),
.tvOS(.v12),
.watchOS(.v6)],
products: [
.library(name: "Diagnostics", targets: ["Diagnostics"])
],
dependencies: [
.package(url: "https://github.com/sindresorhus/ExceptionCatcher", from: "2.0.0")
],
targets: [
.target(
name: "Diagnostics",
dependencies: ["ExceptionCatcher"],
path: "Sources",
resources: [
.process("style.css"),
.process("functions.js"),
.process("PrivacyInfo.xcprivacy")
]),
.testTarget(name: "DiagnosticsTests", dependencies: ["Diagnostics"], path: "DiagnosticsTests")
],
swiftLanguageVersions: [.v5])
30 changes: 30 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(name: "Diagnostics",
platforms: [
.macOS(.v10_15),
.iOS(.v11),
.tvOS(.v12),
.watchOS(.v6)],
products: [
.library(name: "Diagnostics", targets: ["Diagnostics"])
],
dependencies: [
.package(url: "https://github.com/sindresorhus/ExceptionCatcher", from: "2.0.0")
],
targets: [
.target(
name: "Diagnostics",
dependencies: ["ExceptionCatcher"],
path: "Sources",
resources: [
.process("style.css"),
.process("functions.js"),
.process("PrivacyInfo.xcprivacy")
]),
.testTarget(name: "DiagnosticsTests", dependencies: ["Diagnostics"], path: "DiagnosticsTests")
],
swiftLanguageVersions: [.v5])
30 changes: 30 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version:5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(name: "Diagnostics",
platforms: [
.macOS(.v10_15),
.iOS(.v11),
.tvOS(.v12),
.watchOS(.v6)],
products: [
.library(name: "Diagnostics", targets: ["Diagnostics"])
],
dependencies: [
.package(url: "https://github.com/sindresorhus/ExceptionCatcher", from: "2.0.0")
],
targets: [
.target(
name: "Diagnostics",
dependencies: ["ExceptionCatcher"],
path: "Sources",
resources: [
.process("style.css"),
.process("functions.js"),
.process("PrivacyInfo.xcprivacy")
]),
.testTarget(name: "DiagnosticsTests", dependencies: ["Diagnostics"], path: "DiagnosticsTests")
],
swiftLanguageVersions: [.v5])

0 comments on commit 175fb0e

Please sign in to comment.