Enabled upcoming language features across targets in the Package file.
This commit is contained in:
+9
-6
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
// Upcoming language features adopted ahead of the next language mode.
|
||||||
|
let swiftSettings: [SwiftSetting] = [
|
||||||
|
.enableUpcomingFeature("ExistentialAny"),
|
||||||
|
.enableUpcomingFeature("InternalImportsByDefault"),
|
||||||
|
.enableUpcomingFeature("MemberImportVisibility"),
|
||||||
|
]
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "playdate-kit",
|
name: "playdate-kit",
|
||||||
products: [
|
products: [
|
||||||
@@ -29,17 +36,13 @@ let package = Package(
|
|||||||
name: "PlaydateKit",
|
name: "PlaydateKit",
|
||||||
dependencies: ["CPlaydate"],
|
dependencies: ["CPlaydate"],
|
||||||
path: "Sources/PlaydateKit",
|
path: "Sources/PlaydateKit",
|
||||||
swiftSettings: [
|
swiftSettings: swiftSettings,
|
||||||
.enableUpcomingFeature("ApproachableConcurrency"),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: "PlaydateKitTests",
|
name: "PlaydateKitTests",
|
||||||
dependencies: ["PlaydateKit"],
|
dependencies: ["PlaydateKit"],
|
||||||
path: "Tests/PlaydateKit",
|
path: "Tests/PlaydateKit",
|
||||||
swiftSettings: [
|
swiftSettings: swiftSettings,
|
||||||
.enableUpcomingFeature("ApproachableConcurrency"),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user