Import network module on linux
This commit is contained in:
parent
f0589b9b90
commit
04dfb12052
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user