Skip to content

Commit 5d69420

Browse files
authored
Updated StreamChat dependency to 4.63.0 (#603)
1 parent 9a0e85c commit 5d69420

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
lines changed

DemoAppSwiftUI/DemoAppSwiftUIApp.swift

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,20 @@ struct DemoAppSwiftUIApp: App {
4343
}
4444
.onChange(of: appState.userState) { newValue in
4545
if newValue == .loggedIn {
46-
if let currentUserId = chatClient.currentUserId {
47-
let pinnedByKey = ChatChannel.isPinnedBy(keyForUserId: currentUserId)
48-
let channelListQuery = ChannelListQuery(
49-
filter: .containMembers(userIds: [currentUserId]),
50-
sort: [
51-
.init(key: .custom(keyPath: \.isPinned, key: pinnedByKey), isAscending: true),
52-
.init(key: .lastMessageAt),
53-
.init(key: .updatedAt)
54-
]
55-
)
56-
appState.channelListController = chatClient.channelListController(query: channelListQuery)
57-
}
46+
/*
47+
if let currentUserId = chatClient.currentUserId {
48+
let pinnedByKey = ChatChannel.isPinnedBy(keyForUserId: currentUserId)
49+
let channelListQuery = ChannelListQuery(
50+
filter: .containMembers(userIds: [currentUserId]),
51+
sort: [
52+
.init(key: .custom(keyPath: \.isPinned, key: pinnedByKey), isAscending: true),
53+
.init(key: .lastMessageAt),
54+
.init(key: .updatedAt)
55+
]
56+
)
57+
appState.channelListController = chatClient.channelListController(query: channelListQuery)
58+
}
59+
*/
5860
notificationsHandler.setupRemoteNotifications()
5961
}
6062
}

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
)
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.62.0"),
19+
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.63.0"),
2020
],
2121
targets: [
2222
.target(

StreamChatSwiftUI-XCFramework.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pod::Spec.new do |spec|
1919

2020
spec.framework = 'Foundation', 'UIKit', 'SwiftUI'
2121

22-
spec.dependency 'StreamChat-XCFramework', '~> 4.62.0'
22+
spec.dependency 'StreamChat-XCFramework', '~> 4.63.0'
2323

2424
spec.cocoapods_version = '>= 1.11.0'
2525
end

StreamChatSwiftUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Pod::Spec.new do |spec|
1919

2020
spec.framework = 'Foundation', 'UIKit', 'SwiftUI'
2121

22-
spec.dependency 'StreamChat', '~> 4.62.0'
22+
spec.dependency 'StreamChat', '~> 4.63.0'
2323
end

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3721,7 +3721,7 @@
37213721
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
37223722
requirement = {
37233723
kind = upToNextMajorVersion;
3724-
minimumVersion = 4.62.0;
3724+
minimumVersion = 4.63.0;
37253725
};
37263726
};
37273727
E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {

StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class APIClientMock: APIClient, StreamChatTestTools.Spy {
6363
sessionConfiguration: sessionConfiguration,
6464
requestEncoder: requestEncoder,
6565
requestDecoder: requestDecoder,
66+
attachmentDownloader: StreamAttachmentDownloader(sessionConfiguration: sessionConfiguration),
6667
attachmentUploader: attachmentUploader
6768
)
6869
}

StreamChatSwiftUITests/Tests/ChatChannel/ChatChannelTestHelpers.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class ChatChannelTestHelpers {
5656
imageRemoteURL: testURL,
5757
extraData: [:]
5858
),
59+
downloadingState: nil,
5960
uploadingState: uploadingState
6061
)
6162
.asAnyAttachment
@@ -80,6 +81,7 @@ class ChatChannelTestHelpers {
8081
previewURL: testURL,
8182
actions: []
8283
),
84+
downloadingState: nil,
8385
uploadingState: uploadingState
8486
)
8587
.asAnyAttachment
@@ -105,6 +107,7 @@ class ChatChannelTestHelpers {
105107
file: attachmentFile,
106108
extraData: nil
107109
),
110+
downloadingState: nil,
108111
uploadingState: uploadingState
109112
)
110113
.asAnyAttachment
@@ -130,6 +133,7 @@ class ChatChannelTestHelpers {
130133
file: attachmentFile,
131134
extraData: nil
132135
),
136+
downloadingState: nil,
133137
uploadingState: uploadingState
134138
)
135139

@@ -155,6 +159,7 @@ class ChatChannelTestHelpers {
155159
assetURL: testURL,
156160
previewURL: testURL
157161
),
162+
downloadingState: nil,
158163
uploadingState: uploadingState
159164
)
160165
.asAnyAttachment
@@ -181,6 +186,7 @@ class ChatChannelTestHelpers {
181186
file: attachmentFile,
182187
extraData: nil
183188
),
189+
downloadingState: nil,
184190
uploadingState: uploadingState
185191
)
186192
.asAnyAttachment
@@ -202,6 +208,7 @@ class ChatChannelTestHelpers {
202208
id: .unique,
203209
type: .voiceRecording,
204210
payload: payload,
211+
downloadingState: nil,
205212
uploadingState: nil
206213
).asAnyAttachment
207214

0 commit comments

Comments
 (0)