Skip to content
Permalink
Browse files

Fix FoundationNetworking imports

  • Loading branch information
freak4pc authored and kzaher committed Oct 12, 2019
1 parent a67109a commit 1af345ac9f2468acea3faff28ba8b52db277ef01
@@ -20,6 +20,7 @@ DerivedData
*.o

timeline.xctimeline
.vscode

# CocoaPods
#
@@ -6,7 +6,11 @@
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
#if canImport(FoundationNetworking)
import struct FoundationNetworking.URLRequest
#else
import struct Foundation.URLRequest
#endif

/// Simple logging settings for RxCocoa library.
public struct Logging {
@@ -7,18 +7,26 @@
//
import struct Foundation.URL
import struct Foundation.URLRequest
import struct Foundation.Data
import struct Foundation.Date
import struct Foundation.TimeInterval
import class Foundation.HTTPURLResponse
import class Foundation.URLSession
import class Foundation.URLResponse
import class Foundation.JSONSerialization
import class Foundation.NSError
import var Foundation.NSURLErrorCancelled
import var Foundation.NSURLErrorDomain

#if canImport(FoundationNetworking)
import struct FoundationNetworking.URLRequest
import class FoundationNetworking.HTTPURLResponse
import class FoundationNetworking.URLSession
import class FoundationNetworking.URLResponse
#else
import struct Foundation.URLRequest
import class Foundation.HTTPURLResponse
import class Foundation.URLSession
import class Foundation.URLResponse
#endif

#if os(Linux)
// don't know why
import Foundation
@@ -10,8 +10,8 @@ import RxSwift

import struct Foundation.URL
import struct Foundation.Data
import struct Foundation.URLRequest
import struct Foundation.NSRange
import struct Foundation.URLRequest
import class Foundation.HTTPURLResponse
import class Foundation.URLSession
import class Foundation.NSRegularExpression

0 comments on commit 1af345a

Please sign in to comment.
You can’t perform that action at this time.