Skip to content

Commit 9f98f6e

Browse files
authored
chore: add locale query item and bump version (#18)
1 parent 0e2db46 commit 9f98f6e

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Knock.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "Knock"
3-
spec.version = "1.2.6"
3+
spec.version = "1.2.7"
44
spec.summary = "An SDK to build in-app notifications experiences in Swift with Knock."
55

66
spec.description = <<-DESC

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ If you are managing dependencies using the `Package.swift` file, just add this t
5353

5454
```swift
5555
dependencies: [
56-
.package(url: "https://github.com/knocklabs/knock-swift.git", .upToNextMajor(from: "1.2.6"))
56+
.package(url: "https://github.com/knocklabs/knock-swift.git", .upToNextMajor(from: "1.2.7"))
5757
]
5858
```
5959

@@ -66,7 +66,7 @@ platform :ios, '16.0'
6666
use_frameworks!
6767
6868
target 'MyApp' do
69-
pod 'Knock', '~> 1.2.6'
69+
pod 'Knock', '~> 1.2.7'
7070
end
7171
```
7272

Sources/Knock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import OSLog
1010

1111
// Knock client SDK.
1212
public class Knock {
13-
internal static let clientVersion = "1.2.6"
13+
internal static let clientVersion = "1.2.7"
1414

1515
public static var shared: Knock = Knock()
1616

Sources/Modules/FeedModule.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ internal class FeedModule {
5353
URLQueryItem(name: "has_tenant", value: mergedOptions.has_tenant.stringOrNil()),
5454
URLQueryItem(name: "status", value: (mergedOptions.status != nil) ? mergedOptions.status?.rawValue : ""),
5555
URLQueryItem(name: "archived", value: (mergedOptions.archived != nil) ? mergedOptions.archived?.rawValue : ""),
56-
URLQueryItem(name: "trigger_data", value: triggerDataJSON)
56+
URLQueryItem(name: "trigger_data", value: triggerDataJSON),
57+
URLQueryItem(name: "locale", value: mergedOptions.locale)
5758
]
5859

5960
do {

0 commit comments

Comments
 (0)