Skip to content

Commit

Permalink
Update to Swift 5.9 and visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
treastrain committed Jan 28, 2024
1 parent a1408b3 commit 67cf1e7
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
// swift-tools-version: 5.8
// swift-tools-version: 5.9

import PackageDescription

let packageName = "TRETNFCKit"

extension SwiftSetting {
static let forwardTrailingClosures: Self = .enableUpcomingFeature("ForwardTrailingClosures")
static let strictConcurrency: Self = .enableUpcomingFeature("StrictConcurrency")
static let existentialAny: Self = .enableUpcomingFeature("ExistentialAny")
static let bareSlashRegexLiterals: Self = .enableUpcomingFeature("BareSlashRegexLiterals")
static let conciseMagicFile: Self = .enableUpcomingFeature("ConciseMagicFile")
static let importObjcForwardDeclarations: Self = .enableUpcomingFeature("ImportObjcForwardDeclarations")
static let disableOutwardActorInference: Self = .enableUpcomingFeature("DisableOutwardActorInference")
}

let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("StrictConcurrency"),
.unsafeFlags(["-enable-actor-data-race-checks"], .when(configuration: .debug)),
.forwardTrailingClosures,
.strictConcurrency,
.existentialAny,
.bareSlashRegexLiterals,
.conciseMagicFile,
.importObjcForwardDeclarations,
.disableOutwardActorInference,
]

var products: [Product] = []
Expand Down Expand Up @@ -58,7 +72,7 @@ targets.append(
let package = Package(
name: packageName,
defaultLocalization: "en",
platforms: [.iOS(.v13), .macOS(.v10_15), .macCatalyst(.v13), .tvOS(.v13), .watchOS(.v6)],
platforms: [.iOS(.v13), .macOS(.v10_15), .macCatalyst(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)],
products: products,
targets: targets
)

0 comments on commit 67cf1e7

Please sign in to comment.