Skip to content

Commit

Permalink
Fixes awslabs#600. Be explicit about which Expression is being imported
Browse files Browse the repository at this point in the history
iOS 18 adds a new Expression type to Foundation which conflicts with SQLite. Explicitly import SQLite's.
  • Loading branch information
Rob Napier committed Jun 25, 2024
1 parent d84b196 commit 862d551
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 862d551

Please sign in to comment.