Skip to content

Commit

Permalink
Import FoundationNetworking for Swift 5.1 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
djones6 authored Jul 8, 2019
1 parent 20956f3 commit b7c3476
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/KituraSession/CookieManagement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import Kitura
import LoggerAPI

import Foundation
#if swift(>=4.1)
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
#endif

internal class CookieManagement {

Expand Down
5 changes: 5 additions & 0 deletions Tests/KituraSessionTests/CookieUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
import KituraNet
import Foundation
import XCTest
#if swift(>=4.1)
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
#endif

class CookieUtils {

Expand Down

0 comments on commit b7c3476

Please sign in to comment.