Skip to content

Commit 5e4ee61

Browse files
doozMenStijn Willems
authored andcommitted
simplify type for compiler (#5)
1 parent 17c9f46 commit 5e4ee61

34 files changed

Lines changed: 60 additions & 40 deletions

Package.resolved

Lines changed: 25 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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 {

0 commit comments

Comments
 (0)