Skip to content

Commit f609fcb

Browse files
committed
Use Starscream on macOS by default
1 parent b5b5c8d commit f609fcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Package.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
// Set this to true to use the Starscream-based WebSocket backend on macOS too.
7-
let forceStarscreamOnMacOS = false
6+
// Set this to false to use the WebSocketKit-based backend on macOS too.
7+
let useStarscreamOnMacOS = true
88

99
let package = Package(
1010
name: "lighthouse-swift",
@@ -44,12 +44,12 @@ let package = Package(
4444
.product(
4545
name: "WebSocketKit",
4646
package: "websocket-kit",
47-
condition: .when(platforms: [.android, .linux, .openbsd, .wasi, .windows] + (forceStarscreamOnMacOS ? [] : [.macOS]))
47+
condition: .when(platforms: [.android, .linux, .openbsd, .wasi, .windows] + (useStarscreamOnMacOS ? [] : [.macOS]))
4848
),
4949
.product(
5050
name: "Starscream",
5151
package: "Starscream",
52-
condition: .when(platforms: [.iOS, .macCatalyst, .macOS, .tvOS, .visionOS, .watchOS] + (forceStarscreamOnMacOS ? [.macOS] : []))
52+
condition: .when(platforms: [.iOS, .macCatalyst, .macOS, .tvOS, .visionOS, .watchOS] + (useStarscreamOnMacOS ? [.macOS] : []))
5353
),
5454
]
5555
),

0 commit comments

Comments
 (0)