Skip to content

Commit c420371

Browse files
committed
Cleanup Package.swift, lower requirements
For some reason iOS 13 seems to be the minimum in SwiftSyntax, not quite sure why.
1 parent a770de5 commit c420371

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

Package.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ import CompilerPluginSupport
55
let package = Package(
66
name: "ManagedModels",
77

8-
// For now :-)
9-
// macOS v13 needed to build the macro on macOS 13! (for iOS)
10-
platforms: [ .macOS(.v11), .iOS(.v14), .tvOS(.v15), .watchOS(.v8) ],
8+
platforms: [ .macOS(.v11), .iOS(.v13), .tvOS(.v13), .watchOS(.v6) ],
119
products: [
1210
.library(name: "ManagedModels", targets: [ "ManagedModels" ])
1311
],
1412
dependencies: [
15-
// Depend on the latest Swift 5.9 prerelease of SwiftSyntax
16-
.package(url: "https://github.com/apple/swift-syntax.git",
17-
from: "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b"),
13+
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0")
1814
],
1915
targets: [
2016
.target(name: "ManagedModels", dependencies: [ "ManagedModelMacros" ]),
@@ -27,13 +23,11 @@ let package = Package(
2723
]
2824
),
2925

30-
// A test target used to develop the macro implementation.
3126
.testTarget(
3227
name: "ManagedModelTests",
3328
dependencies: [ "ManagedModels" ]
3429
),
3530

36-
// A test target used to develop the macro implementation.
3731
.testTarget(
3832
name: "ManagedModelMacrosTests",
3933
dependencies: [

Sources/ManagedModels/SwiftUI/ModelContainer+SwiftUI.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public extension View {
6565
}
6666
}
6767

68+
@available(iOS 14.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
6869
public extension Scene {
6970

7071
@inlinable

Sources/ManagedModels/SwiftUI/ModelContext+SwiftUI.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public extension View {
2424
}
2525
}
2626

27+
@available(iOS 14.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2728
public extension Scene {
2829

2930
@inlinable

Tests/ManagedModelMacrosTests/ManagedModelMacrosTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ final class ModelMacroTests: XCTestCase {
282282
"""
283283
))
284284

285-
#if true
285+
#if false
286286
print("Exploded:---\n")
287287
print(explodedSource)
288288
print("\n-----")

0 commit comments

Comments
 (0)