Skip to content

Commit c0a1163

Browse files
Only import apollo if not using cocoapods
1 parent 9c00ef8 commit c0a1163

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Sources/ApolloWebSocket/SplitNetworkTransport.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// NOTE: Cocoapods spec linting will complain about this import,
2-
// but you should not remove it or things won't build.
1+
#if !COCOAPODS
32
import Apollo
3+
#endif
4+
45

56
public class SplitNetworkTransport: NetworkTransport {
67
private let httpNetworkTransport: NetworkTransport

Sources/ApolloWebSocket/WebSocketTransport.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// NOTE: Cocoapods spec linting will complain about this import,
2-
// but you should not remove it or things won't build.
1+
#if !COCOAPODS
32
import Apollo
3+
#endif
44
import Starscream
55

66
// To allow for alternative implementations supporting the same WebSocketClient protocol

0 commit comments

Comments
 (0)