Skip to content

Commit ff32dca

Browse files
committed
Add Linux compat FoundationNetworking imports
1 parent f750952 commit ff32dca

8 files changed

Lines changed: 22 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
src/ServiceStackXCode/.idea
22
.idea/
3+
.vscode/
34

45
src/JsonServiceClient/JsonServiceClient.xcodeproj/project.xcworkspace/xcuserdata/mythz.xcuserdatad/UserInterfaceState.xcuserstate
56

Sources/ServiceStack/CoreTypes.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// Copyright (c) 2021 ServiceStack. All rights reserved.
44
//
55

6+
#if canImport(FoundationNetworking)
7+
import FoundationNetworking
8+
#endif
69
import Foundation
710

811
public protocol Instantiable {

Sources/ServiceStack/DateExtensions.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// Copyright (c) 2021 ServiceStack, Inc. All rights reserved.
77
//
88

9+
#if canImport(FoundationNetworking)
10+
import FoundationNetworking
11+
#endif
912
import Foundation
1013

1114
public class DateTime {

Sources/ServiceStack/Inspect.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#if canImport(FoundationNetworking)
2+
import FoundationNetworking
3+
#endif
14
import Foundation
25

36
public class Inspect {

Sources/ServiceStack/JsonServiceClient.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// Copyright (c) 2021 ServiceStack, Inc. All rights reserved.
77
//
88

9+
#if canImport(FoundationNetworking)
10+
import FoundationNetworking
11+
#endif
912
import Foundation
1013
import PromiseKit
1114

Sources/ServiceStack/Mocks.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// Created by Demis Bellot on 2/19/21.
66
//
77

8+
#if canImport(FoundationNetworking)
9+
import FoundationNetworking
10+
#endif
811
import Foundation
912

1013
class EmptyUnkeyedDecodingContainer: UnkeyedDecodingContainer {

Sources/ServiceStack/StringExtensions.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// Copyright (c) 2021 ServiceStack, Inc. All rights reserved.
77
//
88

9+
#if canImport(FoundationNetworking)
10+
import FoundationNetworking
11+
#endif
912
import Foundation
1013

1114
public extension String {

Sources/ServiceStack/Utils.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// Copyright © 2021 ServiceStack. All rights reserved.
77
//
88

9+
#if canImport(FoundationNetworking)
10+
import FoundationNetworking
11+
#endif
912
import Foundation
1013

1114
public class Factory<T: Decodable> {

0 commit comments

Comments
 (0)