Skip to content

Commit

Permalink
Only import apollo if not using cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
designatednerd committed Jun 28, 2019
1 parent 6a6c279 commit 61026cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Sources/ApolloWebSocket/SplitNetworkTransport.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// NOTE: Cocoapods spec linting will complain about this import,
// but you should not remove it or things won't build.
#if !COCOAPODS
import Apollo
#endif


public class SplitNetworkTransport: NetworkTransport {
private let httpNetworkTransport: NetworkTransport
Expand Down
4 changes: 2 additions & 2 deletions Sources/ApolloWebSocket/WebSocketTransport.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// NOTE: Cocoapods spec linting will complain about this import,
// but you should not remove it or things won't build.
#if !COCOAPODS
import Apollo
#endif
import Starscream

// To allow for alternative implementations supporting the same WebSocketClient protocol
Expand Down

0 comments on commit 61026cc

Please sign in to comment.