Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rule out watchos directive for mutlipeer connectivity processor #70

Merged
merged 1 commit into from
Jul 31, 2024
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
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
Loading