From 10297f12343e7734b2073d867567a27ab0f03659 Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Tue, 6 Aug 2024 14:39:33 +0200 Subject: [PATCH 1/3] chore(swift): upgrade version --- config/.swift-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.swift-version b/config/.swift-version index 95ee81a411..f9ce5a96ef 100644 --- a/config/.swift-version +++ b/config/.swift-version @@ -1 +1 @@ -5.9 +5.10 From 874a79f2e54cb2371a9ce2280ae2bc42f9e52b3f Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Tue, 6 Aug 2024 15:26:55 +0200 Subject: [PATCH 2/3] chore(swift): update renovate to handle swift-version file --- renovate.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/renovate.json b/renovate.json index e48d2738ee..2a71e271c6 100644 --- a/renovate.json +++ b/renovate.json @@ -173,6 +173,15 @@ "datasourceTemplate": "github-tags", "depNameTemplate": "php/php-src" }, + { + "description": "Update .swift-version", + "fileMatch": ".swift-version", + "matchStrings": [ + "(?.*)" + ], + "datasourceTemplate": "swift", + "depNameTemplate": "Swift" + }, { "description": "Update swiftformat version", "fileMatch": [ From 820b84189fc5c6a1ae12be45cb2f7aae2c3b80a4 Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Mon, 9 Sep 2024 11:44:24 +0200 Subject: [PATCH 3/3] fix: swiftformat --- clients/algoliasearch-client-swift/.swiftformat | 2 +- templates/swift/snippets/Package.mustache | 4 ++-- templates/swift/tests/Package.mustache | 2 +- tests/output/swift/.swiftformat | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clients/algoliasearch-client-swift/.swiftformat b/clients/algoliasearch-client-swift/.swiftformat index 4a5dede1bb..1deb04405b 100644 --- a/clients/algoliasearch-client-swift/.swiftformat +++ b/clients/algoliasearch-client-swift/.swiftformat @@ -40,7 +40,7 @@ --semicolons never --shortoptionals always --stripunusedargs always ---swiftversion 5.9 +--swiftversion 5.10 --trimwhitespace always --typeattributes prev-line --typeblanklines remove diff --git a/templates/swift/snippets/Package.mustache b/templates/swift/snippets/Package.mustache index 9ee535ab27..fbb3c476d1 100644 --- a/templates/swift/snippets/Package.mustache +++ b/templates/swift/snippets/Package.mustache @@ -1,5 +1,5 @@ -// {{generationBanner}} -// swift-tools-version: 5.9 +// swift-tools-version: {{{swiftVersion}}} +// {{{generationBanner}}} import PackageDescription diff --git a/templates/swift/tests/Package.mustache b/templates/swift/tests/Package.mustache index dc76947c88..b386969876 100644 --- a/templates/swift/tests/Package.mustache +++ b/templates/swift/tests/Package.mustache @@ -1,4 +1,4 @@ -// swift-tools-version: 5.9 +// swift-tools-version: {{{swiftVersion}}} import PackageDescription diff --git a/tests/output/swift/.swiftformat b/tests/output/swift/.swiftformat index 4a5dede1bb..1deb04405b 100644 --- a/tests/output/swift/.swiftformat +++ b/tests/output/swift/.swiftformat @@ -40,7 +40,7 @@ --semicolons never --shortoptionals always --stripunusedargs always ---swiftversion 5.9 +--swiftversion 5.10 --trimwhitespace always --typeattributes prev-line --typeblanklines remove