8000 Update StreamChat dependency to 4.71.0 (#732) · GetStream/stream-chat-swiftui@f83d2f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit f83d2f3

Browse files
Update StreamChat dependency to 4.71.0 (#732)
1 parent 43bc8e1 commit f83d2f3

File tree

7 files changed

+22
-18
lines changed

7 files changed

+22
-18
lines changed

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.70.0"),
19+
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.71.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.70.0'
22+
spec.dependency 'StreamChat-XCFramework', '~> 4.71.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.70.0'
22+
spec.dependency 'StreamChat', '~> 4.71.0'
2323
end

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3844,7 +3844,7 @@
38443844
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
38453845
requirement = {
38463846
kind = upToNextMajorVersion;
3847-
minimumVersion = 4.70.0;
3847+
minimumVersion = 4.71.0;
38483848
};
38493849
};
38503850
E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {

StreamChatSwiftUITests/Infrastructure/TestTools/ChatClient_Mock.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,8 @@ public extension ChatClient {
3434
databaseContainerBuilder: {
3535
DatabaseContainer_Spy(
3636
kind: $0,
37-
shouldFlushOnStart: $1,
38-
shouldResetEphemeralValuesOnStart: $2,
3937
bundle: Bundle(for: StreamChatTestCase.self),
40-
localCachingSettings: $3,
41-
deletedMessagesVisibility: $4,
42-
shouldShowShadowedMessages: $5
38+
chatClientConfig: $1
4339
)
4440
},
4541
authenticationRepositoryBuilder: AuthenticationRepository_Mock.init

StreamChatSwiftUITests/Tests/ChatChannelList/ChatChannelListViewModel_Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class ChatChannelListViewModel_Tests: StreamChatTestCase {
338338
}
339339

340340
func test_loadAdditionalSearchResults_whenSearchTypeIsMessages_shouldLoadNextMessages() {
341-
let messageSearchController = ChatMessageSearchController_Mock.mock()
341+
let messageSearchController = ChatMessageSearchController_Mock.mock(client: .mock(isLocalStorageEnabled: false))
342342
let viewModel = makeDefaultChannelListVM(searchType: .messages)
343343
viewModel.messageSearchController = messageSearchController
344344

StreamChatSwiftUITests/Tests/ChatThreadList/ChatThreadListViewModel_Tests.swift

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
1111

1212
func test_viewDidAppear_thenLoadsThreads() {
1313
let mockThreadListController = ChatThreadListController_Mock.mock(
14-
query: .init(watch: true)
14+
query: .init(watch: true),
15+
client: .mock(isLocalStorageEnabled: false)
1516
)
1617
let viewModel = ChatThreadListViewModel(
1718
threadListController: mockThreadListController
@@ -23,7 +24,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
2324

2425
func test_viewDidAppear_whenAlreadyLoadedThreads_thenDoesNotLoadsThreads() {
2526
let mockThreadListController = ChatThreadListController_Mock.mock(
26-
query: .init(watch: true)
27+
query: .init(watch: true),
28+
client: .mock(isLocalStorageEnabled: false)
2729
)
2830
let viewModel = ChatThreadListViewModel(
2931
threadListController: mockThreadListController
@@ -38,7 +40,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
3840

3941
func test_loadThreads_whenInitialEmptyData_whenSuccess() {
4042
let mockThreadListController = ChatThreadListController_Mock.mock(
41-
query: .init(watch: true)
43+
query: .init(watch: true),
44+
client: .mock(isLocalStorageEnabled: false)
4245
)
4346
mockThreadListController.threads_mock = []
4447
let viewModel = ChatThreadListViewModel(
@@ -64,7 +67,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
6467

6568
func test_loadThreads_whenCacheAvailable_whenSuccess() {
6669
let mockThreadListController = ChatThreadListController_Mock.mock(
67-
query: .init(watch: true)
70+
query: .init(watch: true),
71+
client: .mock(isLocalStorageEnabled: false)
6872
)
6973
mockThreadListController.threads_mock = [.mock()]
7074
let viewModel = ChatThreadListViewModel(
@@ -90,7 +94,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
9094

9195
func test_loadThreads_whenError() {
9296
let mockThreadListController = ChatThreadListController_Mock.mock(
93-
query: .init(watch: true)
97+
query: .init(watch: true),
98+
client: .mock(isLocalStorageEnabled: false)
9499
)
95100
mockThreadListController.threads_mock = []
96101
let viewModel = ChatThreadListViewModel(
@@ -110,7 +115,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
110115

111116
func test_didAppearThread_whenInsideThreshold_thenLoadMoreThreads() {
112117
let mockThreadListController = ChatThreadListController_Mock.mock(
113-
query: .init(watch: true)
118+
query: .init(watch: true),
119+
client: .mock(isLocalStorageEnabled: false)
114120
)
115121
let viewModel = ChatThreadListViewModel(
116122
threadListController: mockThreadListController
@@ -131,7 +137,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
131137

132138
func test_didAppearThread_whenNotInThreshold_thenDoNotLoadMoreThreads() {
133139
let mockThreadListController = ChatThreadListController_Mock.mock(
134-
query: .init(watch: true)
140+
query: .init(watch: true),
141+
client: .mock(isLocalStorageEnabled: false)
135142
)
136143
let viewModel = ChatThreadListViewModel(
137144
threadListController: mockThreadListController
@@ -152,7 +159,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {
152159

153160
func test_didReceiveThreadMessageNewEvent() {
154161
let mockThreadListController = ChatThreadListController_Mock.mock(
155-
query: .init(watch: true)
162+
query: .init(watch: true),
163+
client: .mock(isLocalStorageEnabled: false)
156164
)
157165
let viewModel = ChatThreadListViewModel(
158166
threadListController: mockThreadListController

0 commit comments

Comments
 (0)
0