Skip to content

Commit

Permalink
Apply swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Feb 4, 2025
1 parent fbec343 commit cb91071
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Sources/LiveKit/Broadcast/BroadcastBundleInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

import Foundation

final class BroadcastBundleInfo {

enum BroadcastBundleInfo {
/// Identifier of the app group shared by the primary app and broadcast extension.
@BundleInfo("RTCAppGroupIdentifier")
static var groupIdentifier: String?
Expand All @@ -33,7 +32,7 @@ final class BroadcastBundleInfo {
guard let groupIdentifier else { return nil }
return Self.socketPath(for: groupIdentifier)
}

/// Whether or not a broadcast extension has been configured.
static var hasExtension: Bool {
socketPath != nil && screenSharingExtension != nil
Expand Down
2 changes: 1 addition & 1 deletion Sources/LiveKit/Broadcast/Uploader/LKSampleHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ open class LKSampleHandler: RPBroadcastSampleHandler {
finishBroadcastWithoutError()
}
}

private func finishBroadcastWithoutError() {
LKObjCHelpers.finishBroadcastWithoutError(self)
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/LiveKit/Participant/LocalParticipant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ public extension LocalParticipant {
return try await self._publish(track: localTrack, options: publishOptions)
} else if source == .screenShareVideo {
#if os(iOS)

let localTrack: LocalVideoTrack
let defaultOptions = room._state.roomOptions.defaultScreenShareCaptureOptions

if defaultOptions.useBroadcastExtension {
if captureOptions != nil {
logger.warning("Ignoring screen capture options passed to local participant's `\(#function)`; using room defaults instead.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class ScreenShareCaptureOptions: NSObject, VideoCaptureOptions, Sen

@objc
public let includeCurrentApplication: Bool

public static let defaultToBroadcastExtension: Bool = {
#if os(iOS)
return BroadcastBundleInfo.hasExtension
Expand Down

0 comments on commit cb91071

Please sign in to comment.