Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0"),
.package(name: "GRDB.swift", path: "../GRDB-swift"),
// NB: Fork synced with upstream v7.9.0
.package(url: "https://github.com/doozMen/GRDB.swift", branch: "master"),
.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"),
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"),
// NB: Fork with Swift 6.3 fixes (uses doozMen/swift-perception)
.package(url: "https://github.com/doozMen/swift-sharing", branch: "main"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"),
// NB: Fork with Swift 6.3 fixes
.package(
path: "../swift-structured-queries",
url: "https://github.com/doozMen/swift-structured-queries",
branch: "main",
traits: [
.trait(
name: "StructuredQueriesTagged",
Expand Down
4 changes: 3 additions & 1 deletion Sources/SQLiteData/CloudKit/CloudKit+StructuredQueries.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#if canImport(CloudKit)
// NB: Swift 6.3-dev compiler crashes on the generic `open` function in _update.
// Tracking: https://github.com/doozMen/sqlite-data/issues/2
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import CryptoKit
import StructuredQueriesCore
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/CloudKitSharing.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import Dependencies
import SwiftUI
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/DefaultSyncEngine.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import Dependencies

Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/CloudContainer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

@available(iOS 15, tvOS 15, macOS 12, watchOS 8, *)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

package protocol CloudDatabase: AnyObject, Hashable, Sendable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/DataManager.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit) && canImport(CryptoKit)
#if canImport(CloudKit) && canImport(CryptoKit) && !compiler(>=6.3)
import CryptoKit
import Dependencies
import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import Dependencies
import Foundation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit) && canImport(UIKit)
#if canImport(CloudKit) && canImport(UIKit) && !compiler(>=6.3)
import UIKit

private enum DefaultNotificationCenterKey: DependencyKey {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/ForeignKey.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import Foundation
import StructuredQueriesCore

Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/IsolatedWeakVar.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import Foundation

final class IsolatedWeakVar<T: AnyObject>: @unchecked Sendable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/Logging.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if DEBUG && canImport(CloudKit)
#if DEBUG && canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import TabularData
import os
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/Metadatabase.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import Foundation
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

@available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import IssueReporting

Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import OrderedCollections

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

@Table("sqlitedata_icloud_pendingRecordZoneChanges")
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/Pragmas.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
@Table
struct PragmaDatabaseList {
static var tableAlias: String? { "databases" }
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/RecordType.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
@Table("sqlitedata_icloud_recordTypes")
package struct RecordType: Hashable {
@Column(primaryKey: true)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/SQLiteSchema.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
@Table("sqlite_schema")
package struct SQLiteSchema {
package let type: ObjectType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import StructuredQueriesCore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

@available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

@available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

@available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/TableInfo.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import StructuredQueriesCore

@Table
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/Triggers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import Foundation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import StructuredQueriesCore

Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/Internal/UserDatabase.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import Dependencies

package struct UserDatabase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
#if swift(>=6.2)
public typealias _SendableMetatype = SendableMetatype
#else
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/PrimaryKeyMigration.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit) && canImport(CryptoKit)
#if canImport(CloudKit) && canImport(CryptoKit) && !compiler(>=6.3)
import CryptoKit
import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/SyncEngine.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import ConcurrencyExtras
import Dependencies
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/SyncEngineDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit
import CustomDump

Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteData/CloudKit/SyncMetadata.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(CloudKit)
#if canImport(CloudKit) && !compiler(>=6.3)
import CloudKit

/// A table that tracks metadata related to synchronized data.
Expand Down
Loading