Skip to content

Commit

Permalink
Updated StreamChat dependency to 4.63.0 (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
laevandus authored Sep 12, 2024
1 parent 9a0e85c commit 5d69420
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
26 changes: 14 additions & 12 deletions DemoAppSwiftUI/DemoAppSwiftUIApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,20 @@ struct DemoAppSwiftUIApp: App {
}
.onChange(of: appState.userState) { newValue in
if newValue == .loggedIn {
if let currentUserId = chatClient.currentUserId {
let pinnedByKey = ChatChannel.isPinnedBy(keyForUserId: currentUserId)
let channelListQuery = ChannelListQuery(
filter: .containMembers(userIds: [currentUserId]),
sort: [
.init(key: .custom(keyPath: \.isPinned, key: pinnedByKey), isAscending: true),
.init(key: .lastMessageAt),
.init(key: .updatedAt)
]
)
appState.channelListController = chatClient.channelListController(query: channelListQuery)
}
/*
if let currentUserId = chatClient.currentUserId {
let pinnedByKey = ChatChannel.isPinnedBy(keyForUserId: currentUserId)
let channelListQuery = ChannelListQuery(
filter: .containMembers(userIds: [currentUserId]),
sort: [
.init(key: .custom(keyPath: \.isPinned, key: pinnedByKey), isAscending: true),
.init(key: .lastMessageAt),
.init(key: .updatedAt)
]
)
appState.channelListController = chatClient.channelListController(query: channelListQuery)
}
*/
notificationsHandler.setupRemoteNotifications()
}
}
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.62.0"),
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.63.0"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion StreamChatSwiftUI-XCFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Pod::Spec.new do |spec|

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

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

spec.cocoapods_version = '>= 1.11.0'
end
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Pod::Spec.new do |spec|

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

spec.dependency 'StreamChat', '~> 4.62.0'
spec.dependency 'StreamChat', '~> 4.63.0'
end
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3721,7 +3721,7 @@
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.62.0;
minimumVersion = 4.63.0;
};
};
E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class APIClientMock: APIClient, StreamChatTestTools.Spy {
sessionConfiguration: sessionConfiguration,
requestEncoder: requestEncoder,
requestDecoder: requestDecoder,
attachmentDownloader: StreamAttachmentDownloader(sessionConfiguration: sessionConfiguration),
attachmentUploader: attachmentUploader
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class ChatChannelTestHelpers {
imageRemoteURL: testURL,
extraData: [:]
),
downloadingState: nil,
uploadingState: uploadingState
)
.asAnyAttachment
Expand All @@ -80,6 +81,7 @@ class ChatChannelTestHelpers {
previewURL: testURL,
actions: []
),
downloadingState: nil,
uploadingState: uploadingState
)
.asAnyAttachment
Expand All @@ -105,6 +107,7 @@ class ChatChannelTestHelpers {
file: attachmentFile,
extraData: nil
),
downloadingState: nil,
uploadingState: uploadingState
)
.asAnyAttachment
Expand All @@ -130,6 +133,7 @@ class ChatChannelTestHelpers {
file: attachmentFile,
extraData: nil
),
downloadingState: nil,
uploadingState: uploadingState
)

Expand All @@ -155,6 +159,7 @@ class ChatChannelTestHelpers {
assetURL: testURL,
previewURL: testURL
),
downloadingState: nil,
uploadingState: uploadingState
)
.asAnyAttachment
Expand All @@ -181,6 +186,7 @@ class ChatChannelTestHelpers {
file: attachmentFile,
extraData: nil
),
downloadingState: nil,
uploadingState: uploadingState
)
.asAnyAttachment
Expand All @@ -202,6 +208,7 @@ class ChatChannelTestHelpers {
id: .unique,
type: .voiceRecording,
payload: payload,
downloadingState: nil,
uploadingState: nil
).asAnyAttachment

Expand Down

0 comments on commit 5d69420

Please sign in to comment.