From 41cfe0d246cdc48d9d2157c049f4d2d77ca57027 Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Fri, 13 Sep 2024 12:24:53 -0700 Subject: [PATCH 1/2] Adds note about Xcode version to match swift tools version --- apollo-ios-codegen/Package.swift | 2 ++ apollo-ios-pagination/Package.swift | 5 ++++- apollo-ios/Package.swift | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apollo-ios-codegen/Package.swift b/apollo-ios-codegen/Package.swift index e794621f2..f56552938 100644 --- a/apollo-ios-codegen/Package.swift +++ b/apollo-ios-codegen/Package.swift @@ -1,5 +1,7 @@ // swift-tools-version:5.9 +// // The swift-tools-version declares the minimum version of Swift required to build this package. +// Swift 5.9 is available from Xcode 15.0. import PackageDescription diff --git a/apollo-ios-pagination/Package.swift b/apollo-ios-pagination/Package.swift index 99f0db844..13fa2d385 100644 --- a/apollo-ios-pagination/Package.swift +++ b/apollo-ios-pagination/Package.swift @@ -1,4 +1,7 @@ -// swift-tools-version: 5.9 +// swift-tools-version:5.9 +// +// The swift-tools-version declares the minimum version of Swift required to build this package. +// Swift 5.9 is available from Xcode 15.0. import PackageDescription diff --git a/apollo-ios/Package.swift b/apollo-ios/Package.swift index b0d35db3d..b3e402a56 100644 --- a/apollo-ios/Package.swift +++ b/apollo-ios/Package.swift @@ -1,5 +1,8 @@ // swift-tools-version:5.9 +// // The swift-tools-version declares the minimum version of Swift required to build this package. +// Swift 5.9 is available from Xcode 15.0. + import PackageDescription From 107543fc89ca788c372317729ac5f5aac45a168b Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Fri, 13 Sep 2024 12:25:22 -0700 Subject: [PATCH 2/2] Updates generated SPM packages to match library swift tools version --- .../Templates/SwiftPackageManagerModuleTemplate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/SwiftPackageManagerModuleTemplate.swift b/apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/SwiftPackageManagerModuleTemplate.swift index 933bef1bf..7c3fa07dc 100644 --- a/apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/SwiftPackageManagerModuleTemplate.swift +++ b/apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/SwiftPackageManagerModuleTemplate.swift @@ -23,7 +23,7 @@ struct SwiftPackageManagerModuleTemplate: TemplateRenderer { let casedSchemaNamespace = config.schemaNamespace.firstUppercased return TemplateString(""" - // swift-tools-version:5.7 + // swift-tools-version:5.9 import PackageDescription