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 PushMessageDefinitions
// Use crypto replacement on Linux
#if canImport(CryptoKit)
import CryptoKit
#else
import Crypto
#endif
// Import network types on Linux
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
/**
A client to interact with a push server.
*/