From 3412bcd6d70063384b58f141e35e62effc8bfb82 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Mon, 23 Sep 2019 11:09:04 +0200 Subject: [PATCH 1/2] Use swift 5.0 in Package.swift, makes it possible to use with SPM from xcode --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 1de099870c..34d030e3a4 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:4.0 +// swift-tools-version:5.0 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription From 846a6b7ad33f68b7b2f53fbf090388c30453bfa9 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Mon, 23 Sep 2019 11:14:14 +0200 Subject: [PATCH 2/2] Import Fondation where missing --- Sources/Apollo/InMemoryNormalizedCache.swift | 2 ++ Sources/Apollo/NormalizedCache.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Sources/Apollo/InMemoryNormalizedCache.swift b/Sources/Apollo/InMemoryNormalizedCache.swift index 0e0d948c7a..3c19fce743 100644 --- a/Sources/Apollo/InMemoryNormalizedCache.swift +++ b/Sources/Apollo/InMemoryNormalizedCache.swift @@ -1,3 +1,5 @@ +import Foundation + public final class InMemoryNormalizedCache: NormalizedCache { private var records: RecordSet diff --git a/Sources/Apollo/NormalizedCache.swift b/Sources/Apollo/NormalizedCache.swift index 98d68309a6..cc338c36d7 100644 --- a/Sources/Apollo/NormalizedCache.swift +++ b/Sources/Apollo/NormalizedCache.swift @@ -1,3 +1,5 @@ +import Foundation + public protocol NormalizedCache { /// Loads records corresponding to the given keys.