Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,18 @@ let package = Package(
"VoidDisplaySupport",
"VoidDisplayObservability",
"VoidDisplayFoundation",
"VoidDisplayTestingSupport"
"VoidDisplayTestingSupport",
"VoidDisplaySharingTestingSupport",
"VoidDisplayVirtualDisplayTestingSupport"
],
swiftSettings: sharedSwiftSettings
),
.testTarget(
name: "VoidDisplayVirtualDisplayTests",
dependencies: [
"VoidDisplayVirtualDisplay"
"VoidDisplayVirtualDisplay",
"VoidDisplayTestingSupport",
"VoidDisplayVirtualDisplayTestingSupport"
],
swiftSettings: sharedSwiftSettings
),
Expand All @@ -152,7 +156,9 @@ let package = Package(
.testTarget(
name: "VoidDisplaySharingTests",
dependencies: [
"VoidDisplaySharing"
"VoidDisplaySharing",
"VoidDisplayTestingSupport",
"VoidDisplaySharingTestingSupport"
],
swiftSettings: sharedSwiftSettings
),
Expand All @@ -168,7 +174,8 @@ let package = Package(
dependencies: [
"VoidDisplaySupport",
"VoidDisplayObservability",
"VoidDisplayFoundation"
"VoidDisplayFoundation",
"VoidDisplayTestingSupport"
],
swiftSettings: sharedSwiftSettings
),
Expand All @@ -194,6 +201,24 @@ let package = Package(
],
path: "Tests/VoidDisplayTestingSupport",
swiftSettings: sharedSwiftSettings
),
.target(
name: "VoidDisplaySharingTestingSupport",
dependencies: [
"VoidDisplaySharing",
"VoidDisplayFoundation"
],
path: "Tests/VoidDisplaySharingTestingSupport",
swiftSettings: sharedSwiftSettings
),
.target(
name: "VoidDisplayVirtualDisplayTestingSupport",
dependencies: [
"VoidDisplayVirtualDisplay",
"VoidDisplayFoundation"
],
path: "Tests/VoidDisplayVirtualDisplayTestingSupport",
swiftSettings: sharedSwiftSettings
)
]
)
Expand Down
15 changes: 0 additions & 15 deletions Sources/VoidDisplayFoundation/Resolution/Resolution.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package struct ResolutionSelection: Identifiable, Hashable {
/// - refreshRate: Refresh rate in Hz (default: 60.0)
/// - enableHiDPI: Whether to enable HiDPI for this resolution (default: true)
package init(preset: DisplayResolutionPreset, refreshRate: Double = 60.0, enableHiDPI: Bool = true) {
let (w, h) = preset.resolutions
let (w, h) = preset.logicalSize
self.width = w
self.height = h
self.refreshRate = refreshRate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ package enum DisplayResolutionPreset: String, CaseIterable, Identifiable {
return "\(size.width) × \(size.height)"
}
}

package typealias Resolutions = DisplayResolutionPreset
2 changes: 1 addition & 1 deletion Sources/VoidDisplaySharing/Services/SharingState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ package struct SharingSessionEvent: Sendable, Equatable {
sessionEpoch
}

nonisolated init(
package nonisolated init(
target: ShareTarget,
clientID: String,
sessionEpoch: UInt64 = 0,
Expand Down
1 change: 1 addition & 0 deletions Tests/VoidDisplayAppTests/CaptureControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@testable import VoidDisplaySharing
@testable import VoidDisplayFoundation
@testable import VoidDisplayTestingSupport
@testable import VoidDisplaySharingTestingSupport
import CoreGraphics
import CoreMedia
import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@testable import VoidDisplaySharing
@testable import VoidDisplayFoundation
@testable import VoidDisplayTestingSupport
@testable import VoidDisplaySharingTestingSupport
import CoreGraphics
import Foundation
import Testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@testable import VoidDisplayObservability
@testable import VoidDisplayFoundation
@testable import VoidDisplayTestingSupport
@testable import VoidDisplaySharingTestingSupport
import Foundation
import Testing

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@testable import VoidDisplaySharing
@testable import VoidDisplayFoundation
@testable import VoidDisplayTestingSupport
@testable import VoidDisplaySharingTestingSupport
import CoreGraphics
import Foundation
import ScreenCaptureKit
Expand Down
1 change: 1 addition & 0 deletions Tests/VoidDisplayAppTests/SharingControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@testable import VoidDisplaySharing
@testable import VoidDisplayFoundation
@testable import VoidDisplayTestingSupport
@testable import VoidDisplaySharingTestingSupport
import Foundation
import CoreGraphics
import ScreenCaptureKit
Expand Down
195 changes: 0 additions & 195 deletions Tests/VoidDisplayAppTests/TestSupport/TestSignalSessionHub.swift

This file was deleted.

This file was deleted.

Loading
Loading