Skip to content

Commit 3c7a907

Browse files
Stijn WillemsdoozMen
authored andcommitted
simplify type for compiler
1 parent 79c3835 commit 3c7a907

33 files changed

Lines changed: 35 additions & 33 deletions

Sources/SQLiteData/CloudKit/CloudKit+StructuredQueries.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#if canImport(CloudKit)
1+
// NB: Swift 6.3-dev compiler crashes on the generic `open` function in _update.
2+
// Tracking: https://github.com/doozMen/sqlite-data/issues/2
3+
#if canImport(CloudKit) && !compiler(>=6.3)
24
import CloudKit
35
import CryptoKit
46
import StructuredQueriesCore

Sources/SQLiteData/CloudKit/CloudKitSharing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit)
1+
#if canImport(CloudKit) && !compiler(>=6.3)
22
import CloudKit
33
import Dependencies
44
import SwiftUI

Sources/SQLiteData/CloudKit/DefaultSyncEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit)
1+
#if canImport(CloudKit) && !compiler(>=6.3)
22
import CloudKit
33
import Dependencies
44

Sources/SQLiteData/CloudKit/Internal/CloudContainer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit)
1+
#if canImport(CloudKit) && !compiler(>=6.3)
22
import CloudKit
33

44
@available(iOS 15, tvOS 15, macOS 12, watchOS 8, *)

Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit)
1+
#if canImport(CloudKit) && !compiler(>=6.3)
22
import CloudKit
33

44
package protocol CloudDatabase: AnyObject, Hashable, Sendable {

Sources/SQLiteData/CloudKit/Internal/CloudKitFunctions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit)
1+
#if canImport(CloudKit) && !compiler(>=6.3)
22
import CloudKit
33
import Foundation
44

Sources/SQLiteData/CloudKit/Internal/DataManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit) && canImport(CryptoKit)
1+
#if canImport(CloudKit) && canImport(CryptoKit) && !compiler(>=6.3)
22
import CryptoKit
33
import Dependencies
44
import Foundation

Sources/SQLiteData/CloudKit/Internal/DatetimeGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit)
1+
#if canImport(CloudKit) && !compiler(>=6.3)
22
import Dependencies
33
import Foundation
44

Sources/SQLiteData/CloudKit/Internal/DefaultNotificationCenter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit) && canImport(UIKit)
1+
#if canImport(CloudKit) && canImport(UIKit) && !compiler(>=6.3)
22
import UIKit
33

44
private enum DefaultNotificationCenterKey: DependencyKey {

Sources/SQLiteData/CloudKit/Internal/ForeignKey.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(CloudKit)
1+
#if canImport(CloudKit) && !compiler(>=6.3)
22
import Foundation
33
import StructuredQueriesCore
44

0 commit comments

Comments
 (0)