Skip to content

Commit cf27146

Browse files
committed
Don't compile new keychain method on Linux
1 parent d963b16 commit cf27146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ParseSwift/Parse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ public struct ParseSwift {
146146
Self.configuration = configuration
147147
Self.sessionDelegate = ParseURLSessionDelegate(callbackQueue: .main,
148148
authentication: configuration.authentication)
149-
#if !os(Linux) && !os(Android)
150149
deleteKeychainIfNeeded()
151-
#endif
152150

153151
do {
154152
let previousSDKVersion = try ParseVersion(ParseVersion.current)
@@ -324,6 +322,7 @@ public struct ParseSwift {
324322
}
325323

326324
static internal func deleteKeychainIfNeeded() {
325+
#if !os(Linux) && !os(Android)
327326
// Clear items out of the Keychain on app first run.
328327
if UserDefaults.standard.object(forKey: ParseConstants.bundlePrefix) == nil {
329328
if Self.configuration.deleteKeychainIfNeeded == true {
@@ -336,6 +335,7 @@ public struct ParseSwift {
336335
forKey: ParseConstants.bundlePrefix)
337336
UserDefaults.standard.synchronize()
338337
}
338+
#endif
339339
}
340340

341341
/**

0 commit comments

Comments
 (0)