From 8dbdb21b7f2096c8699113354f738ce275194a01 Mon Sep 17 00:00:00 2001 From: Matt Kufchak Date: Mon, 17 Nov 2025 10:48:42 -0600 Subject: [PATCH] chore: add locale query item and bump version --- Knock.podspec | 2 +- README.md | 4 ++-- Sources/Knock.swift | 2 +- Sources/Modules/FeedModule.swift | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Knock.podspec b/Knock.podspec index bb6010a..10d3a12 100644 --- a/Knock.podspec +++ b/Knock.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "Knock" - spec.version = "1.2.6" + spec.version = "1.2.7" spec.summary = "An SDK to build in-app notifications experiences in Swift with Knock." spec.description = <<-DESC diff --git a/README.md b/README.md index 8cda1c6..3ceb282 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ If you are managing dependencies using the `Package.swift` file, just add this t ```swift dependencies: [ - .package(url: "https://github.com/knocklabs/knock-swift.git", .upToNextMajor(from: "1.2.6")) + .package(url: "https://github.com/knocklabs/knock-swift.git", .upToNextMajor(from: "1.2.7")) ] ``` @@ -66,7 +66,7 @@ platform :ios, '16.0' use_frameworks! target 'MyApp' do - pod 'Knock', '~> 1.2.6' + pod 'Knock', '~> 1.2.7' end ``` diff --git a/Sources/Knock.swift b/Sources/Knock.swift index da27adc..cec56d7 100644 --- a/Sources/Knock.swift +++ b/Sources/Knock.swift @@ -10,7 +10,7 @@ import OSLog // Knock client SDK. public class Knock { - internal static let clientVersion = "1.2.6" + internal static let clientVersion = "1.2.7" public static var shared: Knock = Knock() diff --git a/Sources/Modules/FeedModule.swift b/Sources/Modules/FeedModule.swift index 19596db..80df0f1 100644 --- a/Sources/Modules/FeedModule.swift +++ b/Sources/Modules/FeedModule.swift @@ -53,7 +53,8 @@ internal class FeedModule { URLQueryItem(name: "has_tenant", value: mergedOptions.has_tenant.stringOrNil()), URLQueryItem(name: "status", value: (mergedOptions.status != nil) ? mergedOptions.status?.rawValue : ""), URLQueryItem(name: "archived", value: (mergedOptions.archived != nil) ? mergedOptions.archived?.rawValue : ""), - URLQueryItem(name: "trigger_data", value: triggerDataJSON) + URLQueryItem(name: "trigger_data", value: triggerDataJSON), + URLQueryItem(name: "locale", value: mergedOptions.locale) ] do {