Skip to content

Commit

Permalink
Use Starscream on macOS by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Jul 24, 2024
1 parent b5b5c8d commit f609fcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import PackageDescription

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

let package = Package(
name: "lighthouse-swift",
Expand Down Expand Up @@ -44,12 +44,12 @@ let package = Package(
.product(
name: "WebSocketKit",
package: "websocket-kit",
condition: .when(platforms: [.android, .linux, .openbsd, .wasi, .windows] + (forceStarscreamOnMacOS ? [] : [.macOS]))
condition: .when(platforms: [.android, .linux, .openbsd, .wasi, .windows] + (useStarscreamOnMacOS ? [] : [.macOS]))
),
.product(
name: "Starscream",
package: "Starscream",
condition: .when(platforms: [.iOS, .macCatalyst, .macOS, .tvOS, .visionOS, .watchOS] + (forceStarscreamOnMacOS ? [.macOS] : []))
condition: .when(platforms: [.iOS, .macCatalyst, .macOS, .tvOS, .visionOS, .watchOS] + (useStarscreamOnMacOS ? [.macOS] : []))
),
]
),
Expand Down

0 comments on commit f609fcb

Please sign in to comment.