Skip to content

Commit c9893fa

Browse files
committed
trying to fix linux build
1 parent a859df7 commit c9893fa

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

Sources/Auth/Deprecated.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
// Created by Guilherme Souza on 14/12/23.
66
//
77

8+
import _Helpers
89
import Foundation
910

11+
#if canImport(FoundationNetworking)
12+
import FoundationNetworking
13+
#endif
14+
1015
@available(*, deprecated, renamed: "AuthClient")
1116
public typealias GoTrueClient = AuthClient
1217

Sources/Auth/Storage/AuthLocalStorage.swift

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ public protocol AuthLocalStorage: Sendable {
77
}
88

99
extension AuthClient.Configuration {
10-
public static let defaultLocalStorage: AuthLocalStorage = {
11-
#if os(iOS) || os(macOS) || os(watchOS) || os(tvOS)
12-
KeychainLocalStorage(
13-
service: "supabase.gotrue.swift",
14-
accessGroup: nil
15-
)
16-
#elseif os(Windows)
10+
#if os(iOS) || os(macOS) || os(watchOS) || os(tvOS)
11+
public static let defaultLocalStorage: AuthLocalStorage = KeychainLocalStorage(
12+
service: "supabase.gotrue.swift",
13+
accessGroup: nil
14+
)
15+
#elseif os(Windows)
16+
public static let defaultLocalStorage: AuthLocalStorage =
1717
WinCredLocalStorage(service: "supabase.gotrue.swift")
18-
#endif
19-
}()
18+
#endif
2019
}

0 commit comments

Comments
 (0)