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
6 changes: 3 additions & 3 deletions Package.resolved

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

23 changes: 17 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import PackageDescription
let package = Package(
name: "sqlite-data",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v7),
.iOS(.v16),
.macOS(.v13),
.tvOS(.v16),
.watchOS(.v9),
],
products: [
.library(
Expand All @@ -30,6 +30,13 @@ let package = Package(
name: "CasePaths",
description: "Introduce support for enum tables."
),
.trait(
name: "SuppressPlatformSQLiteAvailability",
description: """
Suppress '@available' checks on APIs that depend on a newer version of SQLite than the one \
bundled with the platform.
"""
),
.trait(
name: "Tagged",
description: "Introduce SQLiteData conformances to the swift-tagged package."
Expand All @@ -51,13 +58,17 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"),
.package(
url: "https://github.com/pointfreeco/swift-structured-queries",
from: "0.34.0",
from: "0.35.0",
traits: [
.trait(name: "CasePaths", condition: .when(traits: ["CasePaths"])),
.trait(
name: "LazyInitializableByDefault",
condition: .when(traits: ["LazyInitializableByDefault"])
),
.trait(name: "CasePaths", condition: .when(traits: ["CasePaths"])),
.trait(
name: "SuppressPlatformSQLiteAvailability",
condition: .when(traits: ["SuppressPlatformSQLiteAvailability"])
),
.trait(name: "Tagged", condition: .when(traits: ["Tagged"])),
]
),
Expand Down
10 changes: 5 additions & 5 deletions Package@swift-6.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import PackageDescription
let package = Package(
name: "sqlite-data",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v7),
.iOS(.v16),
.macOS(.v13),
.tvOS(.v16),
.watchOS(.v9),
],
products: [
.library(
Expand All @@ -28,7 +28,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"),
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"),
.package(url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.34.0"),
.package(url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.35.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.5.0"),
],
targets: [
Expand Down
1 change: 1 addition & 0 deletions Sources/SQLiteData/CloudKit/Internal/Triggers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@
}
}

@available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
extension QueryExpression<String> {
fileprivate var isValidCloudKitRecordName: some QueryExpression<Bool> {
substr(1, 1).neq("_") && octetLength().lte(255) && octetLength().eq(length())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -945,9 +945,6 @@ information about CloudKit synchronization, see <doc:CloudKitSync>.

### Supported Apple platforms

SwiftData and the `@Query` macro require iOS 17, macOS 14, tvOS 17, watchOS 10 and higher, and
some newer features require even more recent versions of iOS.

Meanwhile, SQLiteData has a broad set of deployment targets supporting all the way back to iOS 13,
macOS 10.15, tvOS 13, and watchOS 6. This means you can use these tools on essentially any
application today with no restrictions.
SQLiteData has a broad set of deployment targets supporting all the way back to the iOS 16 family
of releases. This means you can use these tools on essentially any application today with no
restrictions.