Skip to content

Commit

Permalink
fix: rule out watchos directive for mutlipeer connectivity processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gajddo00 committed Jul 29, 2024
1 parent 5d7df2e commit 81adefd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
// Created by Matej Molnár on 12.12.2022.
//

import Foundation
#if os(macOS) || os(iOS) || os(tvOS) || os(visionOS)

#if os(watchOS)
import os
#else
import OSLog
#endif
import Foundation
import OSLog

// MARK: - Modifier storing endpoint requests

Expand Down Expand Up @@ -293,3 +290,5 @@ private extension JSONEncoder {
return encoder
}()
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
// Created by Jaroslav Janda on 12.10.2021.
//

#if os(watchOS)
import os
#else
import OSLog
#endif
#if os(macOS) || os(iOS) || os(tvOS) || os(visionOS)

import OSLog
import MultipeerConnectivity

open class MultipeerConnectivityManager: NSObject {
Expand Down Expand Up @@ -119,3 +116,5 @@ extension MultipeerConnectivityManager: MCSessionDelegate {
public func session(_ session: MCSession, didStartReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, with progress: Progress) {}
public func session(_ session: MCSession, didFinishReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, at localURL: URL?, withError error: Error?) {}
}

#endif

0 comments on commit 81adefd

Please sign in to comment.