Skip to content

Commit

Permalink
fix: Explicitly import SQLite.Expression to avoid conflict in iOS 18 (#…
Browse files Browse the repository at this point in the history
…601)

iOS 18 adds a new Expression type to Foundation which conflicts with SQLite. Explicitly import SQLite's.

Co-authored-by: Rob Napier <[email protected]>
  • Loading branch information
rnapier and Rob Napier authored Jun 28, 2024
1 parent d84b196 commit 15b484a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import Foundation
import SQLite
import struct SQLite.Expression

final class AWSSubscriptionMetaDataCache {

Expand Down
1 change: 1 addition & 0 deletions AWSAppSyncClient/Internal/AWSMutationCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import Foundation
import SQLite
import struct SQLite.Expression

/// Although this class is currently public, it is not intended to be used by clients, and will be marked "internal" in
/// a future release of AppSync.
Expand Down
1 change: 1 addition & 0 deletions AWSAppSyncClient/Internal/AWSSQLiteNormalizedCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import Foundation
import SQLite
import struct SQLite.Expression

/*
The "timeout" method is used to control how long the SQLite library will wait for locks to clear before giving up on a database transaction. The default timeout is 0 millisecond. (In other words, the default behavior is not to wait at all.)
Expand Down

0 comments on commit 15b484a

Please sign in to comment.