Skip to content

Commit e2159cf

Browse files
doozMenStijn Willems
authored andcommitted
simplify type for compiler (#5)
1 parent 283b40f commit e2159cf

35 files changed

Lines changed: 67 additions & 44 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.

Package.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ let package = Package(
2525
],
2626
dependencies: [
2727
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0"),
28-
.package(name: "GRDB.swift", path: "../GRDB-swift"),
28+
// NB: Fork synced with upstream v7.9.0
29+
.package(url: "https://github.com/doozMen/GRDB.swift", branch: "master"),
2930
.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.0.0"),
3031
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"),
3132
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"),
32-
.package(url: "https://github.com/pointfreeco/swift-perception", from: "2.0.0"),
33-
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"),
33+
// NB: Fork with Swift 6.3 fixes (uses doozMen/swift-perception)
34+
.package(url: "https://github.com/doozMen/swift-sharing", branch: "main"),
3435
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"),
36+
// NB: Fork with Swift 6.3 fixes
3537
.package(
36-
path: "../swift-structured-queries",
38+
url: "https://github.com/doozMen/swift-structured-queries",
39+
branch: "main",
3740
traits: [
3841
.trait(
3942
name: "StructuredQueriesTagged",

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

0 commit comments

Comments
 (0)