Import network module on linux

This commit is contained in:
Christoph Hagen 2022-06-09 15:40:40 +02:00
parent f0589b9b90
commit 04dfb12052

View File

@ -1,12 +1,18 @@
import Foundation import Foundation
import PushMessageDefinitions import PushMessageDefinitions
// Use crypto replacement on Linux
#if canImport(CryptoKit) #if canImport(CryptoKit)
import CryptoKit import CryptoKit
#else #else
import Crypto import Crypto
#endif #endif
// Import network types on Linux
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
/** /**
A client to interact with a push server. A client to interact with a push server.
*/ */