From 8427a49390f52a70dd82b3893ca03ee81a5807e3 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Mon, 9 Oct 2023 16:25:30 +0100 Subject: [PATCH] Remove Test Helpers from Package.swift (#2828) --- Package.swift | 21 +- StreamChat.xcodeproj/project.pbxproj | 245 +++++++----------- .../StreamChatUITests.swift | 2 +- .../Extensions/Dictionary.swift | 26 ++ .../Extensions/String.swift | 35 +++ .../MockServer/WebsocketResponses.swift | 1 - .../Utilities/TestData.swift | 16 +- .../ChatChannelListController_Mock.swift | 2 +- .../AuthenticationRepository_Mock.swift | 2 +- .../StreamChatTestTools.swift | 2 +- .../Payloads/CreateCallPayload_Tests.swift | 2 +- .../Requests/CallRequestBody_Tests.swift | 2 +- .../Audio/AudioAnalysisEngine_Tests.swift | 2 +- .../StreamAssetPropertyLoader_Tests.swift | 2 +- .../Audio/StreamAudioPlayer_Tests.swift | 2 +- .../Audio/StreamAudioQueuePlayer_Tests.swift | 2 +- .../Audio/StreamAudioRecorder_Tests.swift | 2 +- ...StreamAudioSessionConfigurator_Tests.swift | 2 +- .../StreamAudioWaveformAnalyser_Tests.swift | 2 +- .../AnyAttachmentPayload_Tests.swift | 2 +- Tests/StreamChatTests/StreamChatTests.swift | 2 +- .../Utils/CooldownTracker_Tests.swift | 4 +- .../Utils/Debouncer_Tests.swift | 4 +- .../Utils/LazyCachedMapCollection_Tests.swift | 2 +- .../Utils/MulticastDelegate_Tests.swift | 2 +- .../SnapshotTesting/AssertSnapshot.swift | 178 ------------- .../SnapshotTesting/SnapshotVariant.swift | 114 -------- .../MockAudioSessionFeedbackGenerator.swift | 2 +- .../ChatChannelVC+SwiftUI_Tests.swift | 1 + .../ChatChannel/ChatChannelVC_Tests.swift | 1 + ...tChannelListCollectionViewCell_Tests.swift | 2 +- .../ChatChannelListEmptyView_Tests.swift | 1 + .../ChatChannelListErrorView_Tests.swift | 3 +- ...hatChannelListItemView+SwiftUI_Tests.swift | 1 + .../ChatChannelListItemView_Tests.swift | 1 + .../ChatChannelListVC+SwiftUI_Tests.swift | 1 + .../ChatChannelListVC_Tests.swift | 1 + ...ChannelUnreadCountView+SwiftUI_Tests.swift | 1 + .../ChatChannelUnreadCountView_Tests.swift | 3 +- .../ChannelListSearchStrategy_Tests.swift | 2 +- .../Search/ChatChannelSearchVC_Tests.swift | 1 + .../Search/ChatMessageSearchVC_Tests.swift | 1 + .../ChatChannelList/SwipeableView_Tests.swift | 3 +- ...ileAttachmentListView+ItemView_Tests.swift | 1 + ...tMessageFileAttachmentListView_Tests.swift | 1 + .../ChatMessageGalleryView_Tests.swift | 1 + .../ChatMessageLinkPreviewView_Tests.swift | 1 + ...iceRecordingAttachmentListView_Tests.swift | 1 + .../ChatMessageBubbleView_Tests.swift | 3 +- .../ChatMessageContentView_Tests.swift | 1 + ...ageDeliveryStatusCheckmarkView_Tests.swift | 1 + .../ChatMessageDeliveryStatusView_Tests.swift | 1 + .../ChatMessageErrorIndicator_Tests.swift | 3 +- .../ChatReactionsBubbleView_Tests.swift | 3 +- .../JumpToUnreadMessagesButton_Tests.swift | 3 +- .../ChatMessageReactionAuthorsVC_Tests.swift | 1 + .../ChatMessageReactionsView_Tests.swift | 1 + .../TypingIndicatorView_Tests.swift | 3 +- .../ChatThreadVC+SwiftUI_Tests.swift | 1 + .../ChatThread/ChatThreadVC_Tests.swift | 2 +- ...VideoAttachmentComposerPreview_Tests.swift | 2 +- ...rdingAttachmentComposerPreview_Tests.swift | 3 +- .../AttachmentsPreviewVC_Tests.swift | 1 + .../ChatChannelAvatarView+SwiftUI_Tests.swift | 1 + .../ChatChannelAvatarView_Tests.swift | 1 + .../AvatarView/ChatUserAvatarView_Tests.swift | 3 +- .../CurrentChatUserAvatarView_Tests.swift | 3 +- .../ChatChannelHeaderView_Tests.swift | 1 + .../CommonViews/ClampedView_Tests.swift | 2 +- .../CommandLabelView_Tests.swift | 3 +- .../ConfirmButton/ConfirmButton_Tests.swift | 3 +- .../ContainerStackView_Tests.swift | 1 + .../CommonViews/PillButton_Tests.swift | 3 +- .../PlayPauseButton_Tests.swift | 3 +- .../QuotedChatMessageView+SwiftUI_Tests.swift | 1 + .../QuotedChatMessageView_Tests.swift | 1 + .../RecordButton/RecordButton_Tests.swift | 3 +- .../SendButton/SendButton_Tests.swift | 3 +- .../ChatCommandSuggestionView_Tests.swift | 1 + .../ChatMentionSuggestionView_Tests.swift | 3 +- .../Suggestions/ChatSuggestionsVC_Tests.swift | 3 +- .../TitleContainerView_Tests.swift | 1 + .../Composer/ComposerVC_Tests.swift | 1 + .../Gallery/GalleryVC_Tests.swift | 1 + .../ChatMessageActionControl_Tests.swift | 3 +- .../ChatMessageActionsVC_Tests.swift | 1 + .../ChatMessagePopupVC_Tests.swift | 1 + ...dioQueuePlayerNextItemProvider_Tests.swift | 2 +- ...irectionalPanGestureRecogniser_Tests.swift | 2 +- ...mAudioSessionFeedbackGenerator_Tests.swift | 2 +- .../Views/AudioVisualizationView_Tests.swift | 2 +- .../Views/LiveRecordingView_Tests.swift | 2 +- .../Views/LockIndicatorView_Tests.swift | 2 +- .../Views/RecordingIndicatorView_Tests.swift | 2 +- .../Views/RecordingTipView_Tests.swift | 2 +- .../Views/SlideToCancelView_Tests.swift | 2 +- .../Views/WaveformView_Tests.swift | 2 +- .../VoiceRecordingVC_Tests.swift | 2 +- .../DefaultMarkdownFormatter_Tests.swift | 2 +- ...AttachmentButton_Documentation_Tests.swift | 2 +- ...tPlaceholderView_Documentation_Tests.swift | 2 +- .../ChatAvatarView_Documentation_Tests.swift | 2 +- .../CommandButton_Documentation_Tests.swift | 2 +- ...CommandLabelView_Documentation_Tests.swift | 2 +- .../ConfirmButton_Documentation_Tests.swift | 2 +- ...ineIndicatorView_Documentation_Tests.swift | 2 +- .../SendButton_Documentation_Tests.swift | 2 +- ...hrinkInputButton_Documentation_Tests.swift | 2 +- ...tleContainerView_Documentation_Tests.swift | 2 +- .../UIView+Annotations.swift | 2 +- 110 files changed, 302 insertions(+), 528 deletions(-) create mode 100644 TestTools/StreamChatTestMockServer/Extensions/Dictionary.swift create mode 100644 TestTools/StreamChatTestMockServer/Extensions/String.swift delete mode 100644 Tests/StreamChatUITests/Helpers/SnapshotTesting/AssertSnapshot.swift delete mode 100644 Tests/StreamChatUITests/Helpers/SnapshotTesting/SnapshotVariant.swift diff --git a/Package.swift b/Package.swift index f5620b98448..892280d6b08 100644 --- a/Package.swift +++ b/Package.swift @@ -27,10 +27,6 @@ let package = Package( targets: ["StreamChatTestMockServer"] ), ], - dependencies: [ - .package(name: "StreamChatTestHelpers", url: "https://github.com/GetStream/stream-chat-swift-test-helpers.git", .exact("0.2.11")), - .package(name: "Swifter", url: "https://github.com/httpswift/swifter", .exact("1.5.0")) - ], targets: [ .target( name: "StreamChat", @@ -43,21 +39,16 @@ let package = Package( exclude: ["Info.plist", "Generated/L10n_template.stencil"], resources: [.process("Resources")] ), - .target(name: "StreamChatTestTools", - dependencies: [ - .target(name: "StreamChat"), - .product(name: "StreamChatTestHelpers", package: "StreamChatTestHelpers"), - ], + .target( + name: "StreamChatTestTools", + dependencies: ["StreamChat"], path: "TestTools/StreamChatTestTools", exclude: ["Info.plist"], resources: [.process("Fixtures")] ), - .target(name: "StreamChatTestMockServer", - dependencies: [ - .target(name: "StreamChat"), - .product(name: "StreamChatTestHelpers", package: "StreamChatTestHelpers"), - .product(name: "Swifter", package: "Swifter") - ], + .target( + name: "StreamChatTestMockServer", + dependencies: ["StreamChat"], path: "TestTools/StreamChatTestMockServer", exclude: ["Info.plist"], resources: [.process("Fixtures")] diff --git a/StreamChat.xcodeproj/project.pbxproj b/StreamChat.xcodeproj/project.pbxproj index 50f20de29f8..08d65a0e99f 100644 --- a/StreamChat.xcodeproj/project.pbxproj +++ b/StreamChat.xcodeproj/project.pbxproj @@ -498,6 +498,17 @@ 826B1C3728895BB5005DDF13 /* http_unsplash_link.json in Resources */ = {isa = PBXBuildFile; fileRef = 826B1C3628895BB5005DDF13 /* http_unsplash_link.json */; }; 826B1C39288FD756005DDF13 /* http_truncate.json in Resources */ = {isa = PBXBuildFile; fileRef = 826B1C38288FD756005DDF13 /* http_truncate.json */; }; 826EF2B1291C01C1005A9EEF /* Authentication_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 826EF2B0291C01C1005A9EEF /* Authentication_Tests.swift */; }; + 827414272ACDE941009CD13C /* StreamChatTestMockServer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3A0C999283E952900B18DA4 /* StreamChatTestMockServer.framework */; platformFilter = ios; }; + 8274142D2ACDEBAD009CD13C /* Swifter in Frameworks */ = {isa = PBXBuildFile; productRef = 8274142C2ACDEBAD009CD13C /* Swifter */; }; + 827414412ACDF6C2009CD13C /* String.swift in Sources */ = {isa = PBXBuildFile; fileRef = 827414402ACDF6C2009CD13C /* String.swift */; }; + 827414432ACDF76C009CD13C /* Dictionary.swift in Sources */ = {isa = PBXBuildFile; fileRef = 827414422ACDF76C009CD13C /* Dictionary.swift */; }; + 827418152ACDE820004A23DA /* StreamSwiftTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = 827418142ACDE820004A23DA /* StreamSwiftTestHelpers */; settings = {ATTRIBUTES = (Required, ); }; }; + 827418172ACDE830004A23DA /* StreamSwiftTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = 827418162ACDE830004A23DA /* StreamSwiftTestHelpers */; }; + 827418192ACDE83A004A23DA /* StreamSwiftTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = 827418182ACDE83A004A23DA /* StreamSwiftTestHelpers */; }; + 8274181B2ACDE844004A23DA /* StreamSwiftTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = 8274181A2ACDE844004A23DA /* StreamSwiftTestHelpers */; }; + 8274181D2ACDE851004A23DA /* StreamSwiftTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = 8274181C2ACDE851004A23DA /* StreamSwiftTestHelpers */; }; + 8274181F2ACDE85E004A23DA /* StreamSwiftTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = 8274181E2ACDE85E004A23DA /* StreamSwiftTestHelpers */; }; + 827418212ACDE86F004A23DA /* StreamSwiftTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = 827418202ACDE86F004A23DA /* StreamSwiftTestHelpers */; }; 8279706F29689680006741A3 /* UserDetails_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8279706E29689680006741A3 /* UserDetails_Tests.swift */; }; 827DD1A0289D5B3300910AC5 /* MessageActionsVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 827DD19F289D5B3300910AC5 /* MessageActionsVC.swift */; }; 8292D6DB29B78476007A17D1 /* QuotedReply_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8292D6DA29B78476007A17D1 /* QuotedReply_Tests.swift */; }; @@ -865,11 +876,6 @@ A311B43A27E8BC8400CFCF6D /* UserListController_Delegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C7BACC27E4DD9000BBF4FA /* UserListController_Delegate.swift */; }; A311B43B27E8BC8400CFCF6D /* ChannelWatcherListController_Delegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C7BAB627E4D8B200BBF4FA /* ChannelWatcherListController_Delegate.swift */; }; A311B43C27E8BC8400CFCF6D /* EventsController_Delegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C7BABF27E4DA8200BBF4FA /* EventsController_Delegate.swift */; }; - A3147EB927F6E50F00BA9972 /* StreamChatTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = A3147EB827F6E50F00BA9972 /* StreamChatTestHelpers */; }; - A3147EBB27F6E51B00BA9972 /* StreamChatTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = A3147EBA27F6E51B00BA9972 /* StreamChatTestHelpers */; }; - A3147EBD27F6E52500BA9972 /* StreamChatTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = A3147EBC27F6E52500BA9972 /* StreamChatTestHelpers */; }; - A3147EBF27F6E52C00BA9972 /* StreamChatTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = A3147EBE27F6E52C00BA9972 /* StreamChatTestHelpers */; }; - A3147EC127F6E53500BA9972 /* StreamChatTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = A3147EC027F6E53500BA9972 /* StreamChatTestHelpers */; }; A31783DD285B79EB005009B9 /* Bundle+PushProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31783DC285B79EB005009B9 /* Bundle+PushProvider.swift */; }; A3227E59284A484300EBE6CC /* UIImage+Resized.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3227E58284A484300EBE6CC /* UIImage+Resized.swift */; }; A3227E5B284A489000EBE6CC /* UIViewController+Alert.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3227E5A284A489000EBE6CC /* UIViewController+Alert.swift */; }; @@ -935,7 +941,6 @@ A34ECB5B27F5D0BF00A804C1 /* TestDataModel.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 7922F30424DACEF100C364BC /* TestDataModel.xcdatamodeld */; }; A34ECB5C27F5D0BF00A804C1 /* TestDataModel2.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = AD7DFBEA25D2AE7400DD9DA3 /* TestDataModel2.xcdatamodeld */; }; A35715F4283E98110014E3B0 /* StreamChatTestMockServer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3A0C9C0283E967600B18DA4 /* StreamChatTestMockServer.swift */; }; - A35715F9283E98ED0014E3B0 /* StreamChatTestMockServer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3A0C999283E952900B18DA4 /* StreamChatTestMockServer.framework */; }; A35715FB283E9A080014E3B0 /* StreamChatTestMockServer.h in Headers */ = {isa = PBXBuildFile; fileRef = A35715FA283E9A080014E3B0 /* StreamChatTestMockServer.h */; settings = {ATTRIBUTES = (Public, ); }; }; A35757C72613081B00DC914C /* ComposerKeyboardHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = A35757C62613081B00DC914C /* ComposerKeyboardHandler.swift */; }; A3600B3C283F639700E1C930 /* StreamTestCase+Tags.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3600B3B283F639700E1C930 /* StreamTestCase+Tags.swift */; }; @@ -952,7 +957,6 @@ A3960E0B27DA587B003AB2B0 /* RetryStrategy_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3960E0A27DA587B003AB2B0 /* RetryStrategy_Tests.swift */; }; A3960E0D27DA5973003AB2B0 /* ConnectionRecoveryHandler_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3960E0C27DA5973003AB2B0 /* ConnectionRecoveryHandler_Tests.swift */; }; A39A8AE7263825F4003453D9 /* ChatMessageLayoutOptionsResolver.swift in Sources */ = {isa = PBXBuildFile; fileRef = A39A8AE6263825F4003453D9 /* ChatMessageLayoutOptionsResolver.swift */; }; - A39B03C127EDFC2F00D6B18A /* Swifter in Frameworks */ = {isa = PBXBuildFile; productRef = A39B03C027EDFC2F00D6B18A /* Swifter */; }; A39B040B27F196F200D6B18A /* StreamChatUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A39B040A27F196F200D6B18A /* StreamChatUITests.swift */; }; A3A0C9A1283E955200B18DA4 /* ChannelResponses.swift in Sources */ = {isa = PBXBuildFile; fileRef = 824445AA27EA364300DB2FD8 /* ChannelResponses.swift */; }; A3A0C9A3283E955200B18DA4 /* HttpServer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8224FD85280EC09800B32D43 /* HttpServer.swift */; }; @@ -967,8 +971,6 @@ A3A0C9B3283E955200B18DA4 /* EventResponses.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82B3510027EA2B1400FEB6A0 /* EventResponses.swift */; }; A3A0C9B4283E955200B18DA4 /* MockServerAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82B350F827EA294900FEB6A0 /* MockServerAttributes.swift */; }; A3A0C9B5283E955200B18DA4 /* ReactionResponses.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82B350FA27EA298800FEB6A0 /* ReactionResponses.swift */; }; - A3A0C9BB283E956200B18DA4 /* StreamChatTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = A3A0C9BA283E956200B18DA4 /* StreamChatTestHelpers */; }; - A3A0C9BD283E956200B18DA4 /* Swifter in Frameworks */ = {isa = PBXBuildFile; productRef = A3A0C9BC283E956200B18DA4 /* Swifter */; }; A3A52B6627EB61FC00311DFC /* EventPayload_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 794927F0249E3DE6009D7EB7 /* EventPayload_Tests.swift */; }; A3A644B327BF99D400F92494 /* ChannelTruncateRequestPayload_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3A644B227BF99D400F92494 /* ChannelTruncateRequestPayload_Tests.swift */; }; A3AFEAA72816F1A200A79A6A /* MessageDeliveryStatus_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3AFEAA62816F1A200A79A6A /* MessageDeliveryStatus_Tests.swift */; }; @@ -1100,7 +1102,6 @@ A3CB2BA02858C06B00DCAE3E /* Ephemeral_Messages_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3CB2B9F2858C06B00DCAE3E /* Ephemeral_Messages_Tests.swift */; }; A3D15D8627E9D4B5006B34D7 /* VirtualTimer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3D15D8327E9D4B5006B34D7 /* VirtualTimer.swift */; }; A3D15D8827E9D4B5006B34D7 /* VirtualTime.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3D15D8527E9D4B5006B34D7 /* VirtualTime.swift */; }; - A3D15D9027E9DA67006B34D7 /* StreamChatTestHelpers in Frameworks */ = {isa = PBXBuildFile; productRef = A3D15D8F27E9DA67006B34D7 /* StreamChatTestHelpers */; }; A3D15D9327EA0584006B34D7 /* VirtualTime_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3D15D8427E9D4B5006B34D7 /* VirtualTime_Tests.swift */; }; A3D15D9627EA0723006B34D7 /* StreamChatTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3D15D9527EA0723006B34D7 /* StreamChatTests.swift */; }; A3D9D68327EDE35100725066 /* ChatChannel.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3D9D68227EDE35100725066 /* ChatChannel.swift */; }; @@ -1190,7 +1191,6 @@ AD45334E25D153E500CD9D47 /* ConnectionController+Combine_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD45334D25D153E500CD9D47 /* ConnectionController+Combine_Tests.swift */; }; AD470C9C26C6D8C60090759A /* ChatMessageListVCDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD470C9B26C6D8C60090759A /* ChatMessageListVCDataSource.swift */; }; AD470C9E26C6D9030090759A /* ChatMessageListVCDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD470C9D26C6D9030090759A /* ChatMessageListVCDelegate.swift */; }; - AD472EF825C425FB00A96E70 /* SnapshotTesting in Frameworks */ = {isa = PBXBuildFile; productRef = AD472EF725C425FB00A96E70 /* SnapshotTesting */; }; AD483B962A2658970004B406 /* ChannelMemberUnbanRequestPayload.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD483B952A2658970004B406 /* ChannelMemberUnbanRequestPayload.swift */; }; AD483B972A2658970004B406 /* ChannelMemberUnbanRequestPayload.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD483B952A2658970004B406 /* ChannelMemberUnbanRequestPayload.swift */; }; AD4C15562A55874700A32955 /* ImageLoading_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD4C15552A55874700A32955 /* ImageLoading_Tests.swift */; }; @@ -1379,8 +1379,6 @@ ADF617692A09927000E70307 /* MessagesPaginationStateHandler_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADF617672A09926900E70307 /* MessagesPaginationStateHandler_Tests.swift */; }; ADF9E1F72A03E7E400109108 /* MessagesPaginationState.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADF9E1F62A03E7E400109108 /* MessagesPaginationState.swift */; }; ADFA09C926A99E0A002A6EFA /* ChatThreadHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFA09C726A99C71002A6EFA /* ChatThreadHeaderView.swift */; }; - ADFCCD7525C9D4D10024505D /* AssertSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9F7B8525C821C300DF8CD2 /* AssertSnapshot.swift */; }; - ADFCCD7625C9D4D10024505D /* SnapshotVariant.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9F7B7C25C8215400DF8CD2 /* SnapshotVariant.swift */; }; BCE4831434E78C9538FA73F8 /* JSONDecoder_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCE48068C1C02C0689BEB64E /* JSONDecoder_Tests.swift */; }; BCE484BA1EE03FF336034250 /* FilterEncoding_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCE483AC99F58A9034EA2ECE /* FilterEncoding_Tests.swift */; }; BCE48639FD7B6B05CD63A6AF /* FilterDecoding_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCE4862E2C4943998F0DCBD9 /* FilterDecoding_Tests.swift */; }; @@ -2165,13 +2163,10 @@ E73BD9EC264D9B2900E208B7 /* ChatFileAttachmentListView+ItemView_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E73BD9EB264D9B2900E208B7 /* ChatFileAttachmentListView+ItemView_Tests.swift */; }; E73BD9EE264D9B3A00E208B7 /* ChatMessageFileAttachmentListView_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E73BD9ED264D9B3A00E208B7 /* ChatMessageFileAttachmentListView_Tests.swift */; }; E74DB0112655473300508D22 /* TypingIndicatorView_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E74DB0102655473300508D22 /* TypingIndicatorView_Tests.swift */; }; - E74DB0A82656631700508D22 /* SnapshotVariant.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9F7B7C25C8215400DF8CD2 /* SnapshotVariant.swift */; }; - E74DB0BB2656631700508D22 /* AssertSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9F7B8525C821C300DF8CD2 /* AssertSnapshot.swift */; }; E74DB0C02656631700508D22 /* CustomUIViewSubclasses.swift in Sources */ = {isa = PBXBuildFile; fileRef = E70A09E925F230EE00C55BBE /* CustomUIViewSubclasses.swift */; }; E74DB0C32656631700508D22 /* UIView+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 225503B725DC59FD00A5A65A /* UIView+Helpers.swift */; }; E74DB0C52656631700508D22 /* UITestsEnvironmentSetup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7849AF9225F2479A007817D4 /* UITestsEnvironmentSetup.swift */; }; E74DB0C82656631700508D22 /* StreamChatUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 790881FD25432B7200896F03 /* StreamChatUI.framework */; }; - E74DB0C92656631700508D22 /* SnapshotTesting in Frameworks */ = {isa = PBXBuildFile; productRef = E74DB08F2656631700508D22 /* SnapshotTesting */; }; E74DB0E92656680900508D22 /* UIView+Annotations.swift in Sources */ = {isa = PBXBuildFile; fileRef = E74DB0E72656680900508D22 /* UIView+Annotations.swift */; }; E74DB10726567FFA00508D22 /* ChatChannelListItemView_Documentation_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E74DB10626567FFA00508D22 /* ChatChannelListItemView_Documentation_Tests.swift */; }; E7516B162642E11A00DE778C /* GiphyAttachmentViewInjector.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7516B152642E11A00DE778C /* GiphyAttachmentViewInjector.swift */; }; @@ -3097,6 +3092,8 @@ 826B1C3628895BB5005DDF13 /* http_unsplash_link.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = http_unsplash_link.json; sourceTree = ""; }; 826B1C38288FD756005DDF13 /* http_truncate.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = http_truncate.json; sourceTree = ""; }; 826EF2B0291C01C1005A9EEF /* Authentication_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Authentication_Tests.swift; sourceTree = ""; }; + 827414402ACDF6C2009CD13C /* String.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = String.swift; sourceTree = ""; }; + 827414422ACDF76C009CD13C /* Dictionary.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Dictionary.swift; sourceTree = ""; }; 8279706E29689680006741A3 /* UserDetails_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDetails_Tests.swift; sourceTree = ""; }; 827DD19F289D5B3300910AC5 /* MessageActionsVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageActionsVC.swift; sourceTree = ""; }; 8292D6DA29B78476007A17D1 /* QuotedReply_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuotedReply_Tests.swift; sourceTree = ""; }; @@ -3731,8 +3728,6 @@ AD99C906279B0C9B009DD9C5 /* MessageDateSeparatorFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageDateSeparatorFormatter.swift; sourceTree = ""; }; AD99C90A279B1363009DD9C5 /* UserLastActivityFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserLastActivityFormatter.swift; sourceTree = ""; }; AD9BE32526680E4200A6D284 /* Stream.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Stream.playground; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; - AD9F7B7C25C8215400DF8CD2 /* SnapshotVariant.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnapshotVariant.swift; sourceTree = ""; }; - AD9F7B8525C821C300DF8CD2 /* AssertSnapshot.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssertSnapshot.swift; sourceTree = ""; }; ADA3572D269C562A004AD8E9 /* ChatChannelHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatChannelHeaderView.swift; sourceTree = ""; }; ADA5A0F7276790C100E1C465 /* ChatMessageListDateSeparatorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatMessageListDateSeparatorView.swift; sourceTree = ""; }; ADA8EBE828CFD52F00DB9B03 /* TextViewUserMentionsHandler_Mock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextViewUserMentionsHandler_Mock.swift; sourceTree = ""; }; @@ -4219,9 +4214,8 @@ buildActionMask = 2147483647; files = ( 7908820625432B7200896F03 /* StreamChatUI.framework in Frameworks */, + 8274181D2ACDE851004A23DA /* StreamSwiftTestHelpers in Frameworks */, A3BD4815281A941B0090D511 /* AutomaticSettings in Frameworks */, - A3147EBD27F6E52500BA9972 /* StreamChatTestHelpers in Frameworks */, - AD472EF825C425FB00A96E70 /* SnapshotTesting in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4242,7 +4236,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - A3D15D9027E9DA67006B34D7 /* StreamChatTestHelpers in Frameworks */, + 827418192ACDE83A004A23DA /* StreamSwiftTestHelpers in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4250,7 +4244,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - A3147EBB27F6E51B00BA9972 /* StreamChatTestHelpers in Frameworks */, + 827418172ACDE830004A23DA /* StreamSwiftTestHelpers in Frameworks */, 793060EF25778897005CF846 /* StreamChatTestTools.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -4267,7 +4261,7 @@ buildActionMask = 2147483647; files = ( F8788F81261DE9B0006019DD /* StreamChatTestTools.framework in Frameworks */, - A3147EB927F6E50F00BA9972 /* StreamChatTestHelpers in Frameworks */, + 8274181B2ACDE844004A23DA /* StreamSwiftTestHelpers in Frameworks */, 799C9456247D59B1001F1104 /* StreamChat.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -4295,9 +4289,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - A35715F9283E98ED0014E3B0 /* StreamChatTestMockServer.framework in Frameworks */, - A3147EC127F6E53500BA9972 /* StreamChatTestHelpers in Frameworks */, - A39B03C127EDFC2F00D6B18A /* Swifter in Frameworks */, + 827414272ACDE941009CD13C /* StreamChatTestMockServer.framework in Frameworks */, + 827418212ACDE86F004A23DA /* StreamSwiftTestHelpers in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4305,8 +4298,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - A3A0C9BB283E956200B18DA4 /* StreamChatTestHelpers in Frameworks */, - A3A0C9BD283E956200B18DA4 /* Swifter in Frameworks */, + 827418152ACDE820004A23DA /* StreamSwiftTestHelpers in Frameworks */, + 8274142D2ACDEBAD009CD13C /* Swifter in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4334,8 +4327,7 @@ buildActionMask = 2147483647; files = ( E74DB0C82656631700508D22 /* StreamChatUI.framework in Frameworks */, - A3147EBF27F6E52C00BA9972 /* StreamChatTestHelpers in Frameworks */, - E74DB0C92656631700508D22 /* SnapshotTesting in Frameworks */, + 8274181F2ACDE85E004A23DA /* StreamSwiftTestHelpers in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -7095,6 +7087,8 @@ isa = PBXGroup; children = ( 8224FD85280EC09800B32D43 /* HttpServer.swift */, + 827414402ACDF6C2009CD13C /* String.swift */, + 827414422ACDF76C009CD13C /* Dictionary.swift */, ); path = Extensions; sourceTree = ""; @@ -7383,15 +7377,6 @@ path = VirtualTime; sourceTree = ""; }; - A3D9D68927EDE52300725066 /* SnapshotTesting */ = { - isa = PBXGroup; - children = ( - AD9F7B7C25C8215400DF8CD2 /* SnapshotVariant.swift */, - AD9F7B8525C821C300DF8CD2 /* AssertSnapshot.swift */, - ); - path = SnapshotTesting; - sourceTree = ""; - }; A3D9D68A27EDE53600725066 /* Extensions */ = { isa = PBXGroup; children = ( @@ -7404,7 +7389,6 @@ A3D9D68D27EDE5AD00725066 /* Helpers */ = { isa = PBXGroup; children = ( - A3D9D68927EDE52300725066 /* SnapshotTesting */, 225503B725DC59FD00A5A65A /* UIView+Helpers.swift */, E70A09E925F230EE00C55BBE /* CustomUIViewSubclasses.swift */, ); @@ -8629,9 +8613,8 @@ ); name = StreamChatUITests; packageProductDependencies = ( - AD472EF725C425FB00A96E70 /* SnapshotTesting */, - A3147EBC27F6E52500BA9972 /* StreamChatTestHelpers */, A3BD4814281A941B0090D511 /* AutomaticSettings */, + 8274181C2ACDE851004A23DA /* StreamSwiftTestHelpers */, ); productName = StreamChatUITests; productReference = 7908820525432B7200896F03 /* StreamChatUITests.xctest */; @@ -8682,7 +8665,7 @@ ); name = StreamChatTestTools; packageProductDependencies = ( - A3D15D8F27E9DA67006B34D7 /* StreamChatTestHelpers */, + 827418182ACDE83A004A23DA /* StreamSwiftTestHelpers */, ); productName = StreamChatTestTools; productReference = 793060E625778896005CF846 /* StreamChatTestTools.framework */; @@ -8703,7 +8686,7 @@ ); name = StreamChatTestToolsTests; packageProductDependencies = ( - A3147EBA27F6E51B00BA9972 /* StreamChatTestHelpers */, + 827418162ACDE830004A23DA /* StreamSwiftTestHelpers */, ); productName = StreamChatTestToolsTests; productReference = 793060EE25778897005CF846 /* StreamChatTestToolsTests.xctest */; @@ -8747,7 +8730,7 @@ ); name = StreamChatTests; packageProductDependencies = ( - A3147EB827F6E50F00BA9972 /* StreamChatTestHelpers */, + 8274181A2ACDE844004A23DA /* StreamSwiftTestHelpers */, ); productName = StreamChatClientTests; productReference = 799C9451247D59B1001F1104 /* StreamChatTests.xctest */; @@ -8814,8 +8797,7 @@ ); name = StreamChatUITestsAppUITests; packageProductDependencies = ( - A39B03C027EDFC2F00D6B18A /* Swifter */, - A3147EC027F6E53500BA9972 /* StreamChatTestHelpers */, + 827418202ACDE86F004A23DA /* StreamSwiftTestHelpers */, ); productName = StreamChatUITestsAppUITests; productReference = A34407DC27D8C3400044F150 /* StreamChatUITestsAppUITests.xctest */; @@ -8837,8 +8819,8 @@ ); name = StreamChatTestMockServer; packageProductDependencies = ( - A3A0C9BA283E956200B18DA4 /* StreamChatTestHelpers */, - A3A0C9BC283E956200B18DA4 /* Swifter */, + 827418142ACDE820004A23DA /* StreamSwiftTestHelpers */, + 8274142C2ACDEBAD009CD13C /* Swifter */, ); productName = StreamChatUITestTools; productReference = A3A0C999283E952900B18DA4 /* StreamChatTestMockServer.framework */; @@ -8933,8 +8915,7 @@ ); name = UISDKDocumentation; packageProductDependencies = ( - E74DB08F2656631700508D22 /* SnapshotTesting */, - A3147EBE27F6E52C00BA9972 /* StreamChatTestHelpers */, + 8274181E2ACDE85E004A23DA /* StreamSwiftTestHelpers */, ); productName = StreamChatUITests; productReference = E74DB0D32656631700508D22 /* UISDKDocumentation.xctest */; @@ -9083,15 +9064,14 @@ ); mainGroup = 8AD5EC8522E9A3E8005CFAC9; packageReferences = ( - AD472EF625C425FB00A96E70 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */, C1BE72712732C91F006EB51E /* XCRemoteSwiftPackageReference "Nuke" */, ADDFDE272779EC67003B3B07 /* XCRemoteSwiftPackageReference "atlantis" */, A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */, - A39B03BF27EDFC2F00D6B18A /* XCRemoteSwiftPackageReference "swifter" */, A3BD4813281A941B0090D511 /* XCRemoteSwiftPackageReference "AutomaticSettings" */, A3BD4869281FD4500090D511 /* XCRemoteSwiftPackageReference "OHHTTPStubs" */, C1B49B39282283C100F4E89E /* XCRemoteSwiftPackageReference "GDPerformanceView-Swift" */, E334B384282468F2002E9640 /* XCRemoteSwiftPackageReference "sentry-cocoa" */, + 8274142B2ACDEBAD009CD13C /* XCRemoteSwiftPackageReference "swifter" */, ); productRefGroup = 8AD5EC9022E9A3E8005CFAC9 /* Products */; projectDirPath = ""; @@ -9872,7 +9852,6 @@ 8893FEF9265F890700DD62BE /* ChatMessageBubbleView_Tests.swift in Sources */, 406CC6152A127552000780F7 /* VoiceRecordingAttachmentViewInjector_Tests.swift in Sources */, A3D9D69727EDE87C00725066 /* ImageLoader_Mock.swift in Sources */, - ADFCCD7625C9D4D10024505D /* SnapshotVariant.swift in Sources */, 64B75B002631700500A466D1 /* ChatMessage_Tests.swift in Sources */, ADAA377125E43C3700C31528 /* ChatSuggestionsVC_Tests.swift in Sources */, E73262E025ED64AB008CB152 /* ChatChannelNamer_Tests.swift in Sources */, @@ -9914,7 +9893,6 @@ E73BD9EC264D9B2900E208B7 /* ChatFileAttachmentListView+ItemView_Tests.swift in Sources */, F87A4A5A26146DAC001653A8 /* ChatMessageActionControl_Tests.swift in Sources */, F86A11022615B94B00D9FE19 /* ChatMessageActionsVC_Tests.swift in Sources */, - ADFCCD7525C9D4D10024505D /* AssertSnapshot.swift in Sources */, F838F6CE263713090025E1F5 /* GalleryVC_Tests.swift in Sources */, AD4CDD85296499160057BC8A /* ScrollViewPaginationHandler_Tests.swift in Sources */, 84F373EE280D95690081E8BA /* ChatMessageDeliveryStatusCheckmarkView_Tests.swift in Sources */, @@ -10881,8 +10859,10 @@ files = ( A3A0C9A6283E955200B18DA4 /* WebsocketResponses.swift in Sources */, A35715F4283E98110014E3B0 /* StreamChatTestMockServer.swift in Sources */, + 827414432ACDF76C009CD13C /* Dictionary.swift in Sources */, A3A0C9A5283E955200B18DA4 /* TestData.swift in Sources */, A3A0C9A3283E955200B18DA4 /* HttpServer.swift in Sources */, + 827414412ACDF6C2009CD13C /* String.swift in Sources */, 829CD5C52848C2EA003C3877 /* ParticipantRobot.swift in Sources */, A3A0C9B3283E955200B18DA4 /* EventResponses.swift in Sources */, A3A0C9A1283E955200B18DA4 /* ChannelResponses.swift in Sources */, @@ -11611,12 +11591,10 @@ 79567F2D266F6002007EADD3 /* TitleContainerView_Documentation_Tests.swift in Sources */, 79567F36266F6F12007EADD3 /* CommandLabelView_Tests.swift in Sources */, 79567F33266F6DE6007EADD3 /* ChatAvatarView_Documentation_Tests.swift in Sources */, - E74DB0A82656631700508D22 /* SnapshotVariant.swift in Sources */, AD7CF1712694ABCE00F3101D /* ComposerVC_Documentation_Tests.swift in Sources */, 79567F43266F9EF7007EADD3 /* CommandButton_Documentation_Tests.swift in Sources */, E74DB10726567FFA00508D22 /* ChatChannelListItemView_Documentation_Tests.swift in Sources */, ADAC47AA275A7C960027B672 /* ChatMessageContentView_Documentation_Tests.swift in Sources */, - E74DB0BB2656631700508D22 /* AssertSnapshot.swift in Sources */, E74DB0C02656631700508D22 /* CustomUIViewSubclasses.swift in Sources */, 79567F39266F71CE007EADD3 /* CommandLabelView_Documentation_Tests.swift in Sources */, 79567F3D266F9C77007EADD3 /* ConfirmButton_Documentation_Tests.swift in Sources */, @@ -12064,7 +12042,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/StreamChatUI/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12096,7 +12074,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/StreamChatUI/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12128,7 +12106,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/StreamChatUI/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12152,7 +12130,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12175,7 +12153,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12197,7 +12175,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12308,7 +12286,7 @@ ENABLE_TESTING_SEARCH_PATHS = YES; INFOPLIST_FILE = "$(SRCROOT)/TestTools/StreamChatTestTools/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12338,7 +12316,7 @@ ENABLE_TESTING_SEARCH_PATHS = YES; INFOPLIST_FILE = "$(SRCROOT)/TestTools/StreamChatTestTools/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12368,7 +12346,7 @@ ENABLE_TESTING_SEARCH_PATHS = YES; INFOPLIST_FILE = "$(SRCROOT)/TestTools/StreamChatTestTools/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12391,7 +12369,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12413,7 +12391,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12434,7 +12412,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12464,7 +12442,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/StreamChat/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12498,7 +12476,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/StreamChat/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12524,7 +12502,7 @@ DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12550,7 +12528,7 @@ DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12733,7 +12711,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_FILE = Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "@executable_path/Frameworks", "@loader_path/Frameworks", @@ -12808,7 +12786,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_FILE = Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "@executable_path/Frameworks", "@loader_path/Frameworks", @@ -12845,7 +12823,7 @@ INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12878,7 +12856,7 @@ INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12909,7 +12887,7 @@ INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -12934,7 +12912,7 @@ GCC_OPTIMIZATION_LEVEL = s; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MARKETING_VERSION = 1.0; PRINCIPAL_CLASS = "$(PRODUCT_NAME).TestsEnvironmentSetup"; PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatUITestsAppUITests; @@ -12958,7 +12936,7 @@ DEVELOPMENT_TEAM = EHV7XZLAHA; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MARKETING_VERSION = 1.0; PRINCIPAL_CLASS = "$(PRODUCT_NAME).TestsEnvironmentSetup"; PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatUITestsAppUITests; @@ -12980,7 +12958,7 @@ DEVELOPMENT_TEAM = EHV7XZLAHA; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MARKETING_VERSION = 1.0; PRINCIPAL_CLASS = "$(PRODUCT_NAME).TestsEnvironmentSetup"; PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatUITestsAppUITests; @@ -13008,7 +12986,7 @@ INFOPLIST_FILE = TestTools/StreamChatTestMockServer/Info.plist; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13042,7 +13020,7 @@ INFOPLIST_FILE = TestTools/StreamChatTestMockServer/Info.plist; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13076,7 +13054,7 @@ INFOPLIST_FILE = TestTools/StreamChatTestMockServer/Info.plist; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13149,7 +13127,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_FILE = Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "@executable_path/Frameworks", "@loader_path/Frameworks", @@ -13186,7 +13164,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/StreamChat/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13212,7 +13190,7 @@ DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2023 Stream.io Inc. All rights reserved."; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13391,7 +13369,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Sources/StreamChat/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = StreamChat; SKIP_INSTALL = YES; @@ -13408,7 +13386,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Sources/StreamChat/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = StreamChat; SKIP_INSTALL = YES; @@ -13425,7 +13403,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Sources/StreamChat/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = StreamChat; SKIP_INSTALL = YES; @@ -13442,7 +13420,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Sources/StreamChat/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = StreamChatUI; SKIP_INSTALL = YES; @@ -13459,7 +13437,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Sources/StreamChat/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = StreamChatUI; SKIP_INSTALL = YES; @@ -13476,7 +13454,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = Sources/StreamChat/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = StreamChatUI; SKIP_INSTALL = YES; @@ -13494,7 +13472,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = "UISDKdocumentation/UISDKDocumentation-info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13517,7 +13495,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = "UISDKdocumentation/UISDKDocumentation-info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13539,7 +13517,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = EHV7XZLAHA; INFOPLIST_FILE = "UISDKdocumentation/UISDKDocumentation-info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -13970,9 +13948,9 @@ /* End XCConfigurationList section */ /* Begin XCRemoteSwiftPackageReference section */ - A39B03BF27EDFC2F00D6B18A /* XCRemoteSwiftPackageReference "swifter" */ = { + 8274142B2ACDEBAD009CD13C /* XCRemoteSwiftPackageReference "swifter" */ = { isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/httpswift/swifter.git"; + repositoryURL = "https://github.com/httpswift/swifter"; requirement = { kind = revision; revision = 1e4f51c92d7ca486242d8bf0722b99de2c3531aa; @@ -13999,15 +13977,7 @@ repositoryURL = "https://github.com/GetStream/stream-chat-swift-test-helpers.git"; requirement = { kind = exactVersion; - version = 0.2.5; - }; - }; - AD472EF625C425FB00A96E70 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing.git"; - requirement = { - kind = exactVersion; - version = 1.11.0; + version = 0.3.0; }; }; ADDFDE272779EC67003B3B07 /* XCRemoteSwiftPackageReference "atlantis" */ = { @@ -14042,56 +14012,48 @@ minimumVersion = 7.0.0; }; }; - E74DB0902656631700508D22 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing.git"; - requirement = { - kind = upToNextMajorVersion; - minimumVersion = 1.8.2; - }; - }; /* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ - A3147EB827F6E50F00BA9972 /* StreamChatTestHelpers */ = { + 8274142C2ACDEBAD009CD13C /* Swifter */ = { isa = XCSwiftPackageProductDependency; - package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; - productName = StreamChatTestHelpers; + package = 8274142B2ACDEBAD009CD13C /* XCRemoteSwiftPackageReference "swifter" */; + productName = Swifter; }; - A3147EBA27F6E51B00BA9972 /* StreamChatTestHelpers */ = { + 827418142ACDE820004A23DA /* StreamSwiftTestHelpers */ = { isa = XCSwiftPackageProductDependency; package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; - productName = StreamChatTestHelpers; + productName = StreamSwiftTestHelpers; }; - A3147EBC27F6E52500BA9972 /* StreamChatTestHelpers */ = { + 827418162ACDE830004A23DA /* StreamSwiftTestHelpers */ = { isa = XCSwiftPackageProductDependency; package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; - productName = StreamChatTestHelpers; + productName = StreamSwiftTestHelpers; }; - A3147EBE27F6E52C00BA9972 /* StreamChatTestHelpers */ = { + 827418182ACDE83A004A23DA /* StreamSwiftTestHelpers */ = { isa = XCSwiftPackageProductDependency; package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; - productName = StreamChatTestHelpers; + productName = StreamSwiftTestHelpers; }; - A3147EC027F6E53500BA9972 /* StreamChatTestHelpers */ = { + 8274181A2ACDE844004A23DA /* StreamSwiftTestHelpers */ = { isa = XCSwiftPackageProductDependency; package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; - productName = StreamChatTestHelpers; + productName = StreamSwiftTestHelpers; }; - A39B03C027EDFC2F00D6B18A /* Swifter */ = { + 8274181C2ACDE851004A23DA /* StreamSwiftTestHelpers */ = { isa = XCSwiftPackageProductDependency; - package = A39B03BF27EDFC2F00D6B18A /* XCRemoteSwiftPackageReference "swifter" */; - productName = Swifter; + package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; + productName = StreamSwiftTestHelpers; }; - A3A0C9BA283E956200B18DA4 /* StreamChatTestHelpers */ = { + 8274181E2ACDE85E004A23DA /* StreamSwiftTestHelpers */ = { isa = XCSwiftPackageProductDependency; package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; - productName = StreamChatTestHelpers; + productName = StreamSwiftTestHelpers; }; - A3A0C9BC283E956200B18DA4 /* Swifter */ = { + 827418202ACDE86F004A23DA /* StreamSwiftTestHelpers */ = { isa = XCSwiftPackageProductDependency; - package = A39B03BF27EDFC2F00D6B18A /* XCRemoteSwiftPackageReference "swifter" */; - productName = Swifter; + package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; + productName = StreamSwiftTestHelpers; }; A3BD4814281A941B0090D511 /* AutomaticSettings */ = { isa = XCSwiftPackageProductDependency; @@ -14103,16 +14065,6 @@ package = A3BD4869281FD4500090D511 /* XCRemoteSwiftPackageReference "OHHTTPStubs" */; productName = OHHTTPStubs; }; - A3D15D8F27E9DA67006B34D7 /* StreamChatTestHelpers */ = { - isa = XCSwiftPackageProductDependency; - package = A3D15D8C27E9D839006B34D7 /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */; - productName = StreamChatTestHelpers; - }; - AD472EF725C425FB00A96E70 /* SnapshotTesting */ = { - isa = XCSwiftPackageProductDependency; - package = AD472EF625C425FB00A96E70 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */; - productName = SnapshotTesting; - }; ADCB576528A425D500B81AE8 /* Sentry */ = { isa = XCSwiftPackageProductDependency; package = E334B384282468F2002E9640 /* XCRemoteSwiftPackageReference "sentry-cocoa" */; @@ -14143,11 +14095,6 @@ package = C1BE72712732C91F006EB51E /* XCRemoteSwiftPackageReference "Nuke" */; productName = Nuke; }; - E74DB08F2656631700508D22 /* SnapshotTesting */ = { - isa = XCSwiftPackageProductDependency; - package = E74DB0902656631700508D22 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */; - productName = SnapshotTesting; - }; /* End XCSwiftPackageProductDependency section */ /* Begin XCVersionGroup section */ diff --git a/StreamChatUITestsAppUITests/StreamChatUITests.swift b/StreamChatUITestsAppUITests/StreamChatUITests.swift index c882b1127b2..2a12ac47749 100644 --- a/StreamChatUITestsAppUITests/StreamChatUITests.swift +++ b/StreamChatUITestsAppUITests/StreamChatUITests.swift @@ -2,8 +2,8 @@ // Copyright © 2023 Stream.io Inc. All rights reserved. // -@_exported import StreamChatTestHelpers @_exported import StreamChatTestMockServer +@_exported import StreamSwiftTestHelpers import Foundation final class StreamChatUITests {} diff --git a/TestTools/StreamChatTestMockServer/Extensions/Dictionary.swift b/TestTools/StreamChatTestMockServer/Extensions/Dictionary.swift new file mode 100644 index 00000000000..6a24ef96c0f --- /dev/null +++ b/TestTools/StreamChatTestMockServer/Extensions/Dictionary.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2022 Stream.io Inc. All rights reserved. +// + +import Foundation + +public extension Dictionary { + + func jsonToString(prettyPrinted: Bool = false) -> String { + var options: JSONSerialization.WritingOptions = [] + if prettyPrinted { + options = JSONSerialization.WritingOptions.prettyPrinted + } + + do { + let data = try JSONSerialization.data(withJSONObject: self, options: options) + if let string = String(data: data, encoding: String.Encoding.utf8) { + return string + } + } catch { + print(error) + } + + return "" + } +} diff --git a/TestTools/StreamChatTestMockServer/Extensions/String.swift b/TestTools/StreamChatTestMockServer/Extensions/String.swift new file mode 100644 index 00000000000..6d26fecd4ff --- /dev/null +++ b/TestTools/StreamChatTestMockServer/Extensions/String.swift @@ -0,0 +1,35 @@ +// +// Copyright © 2022 Stream.io Inc. All rights reserved. +// + +import XCTest + +public extension String { + + var json: [String: Any] { + try! JSONSerialization.jsonObject(with: Data(self.utf8), + options: .mutableContainers) as! [String: Any] + } + + func replace(_ target: String, to: String) -> String { + replacingOccurrences(of: target, + with: to, + options: NSString.CompareOptions.literal, + range: nil) + } + + var html: Self { + self.isEmpty ? "" : "

\(self)

\n" + } + +} + +public extension Substring { + func capitalizingFirstLetter() -> Substring { + prefix(1).capitalized + dropFirst() + } + + mutating func capitalizeFirstLetter() { + self = self.capitalizingFirstLetter() + } +} diff --git a/TestTools/StreamChatTestMockServer/MockServer/WebsocketResponses.swift b/TestTools/StreamChatTestMockServer/MockServer/WebsocketResponses.swift index 94b5f8d454a..8f5c9f48edf 100644 --- a/TestTools/StreamChatTestMockServer/MockServer/WebsocketResponses.swift +++ b/TestTools/StreamChatTestMockServer/MockServer/WebsocketResponses.swift @@ -5,7 +5,6 @@ @testable import StreamChat import Foundation import Swifter -import StreamChatTestHelpers public extension StreamMockServer { diff --git a/TestTools/StreamChatTestMockServer/Utilities/TestData.swift b/TestTools/StreamChatTestMockServer/Utilities/TestData.swift index 294c6def064..3f13dd42109 100644 --- a/TestTools/StreamChatTestMockServer/Utilities/TestData.swift +++ b/TestTools/StreamChatTestMockServer/Utilities/TestData.swift @@ -5,7 +5,6 @@ @testable import StreamChat import Swifter import XCTest -import StreamChatTestHelpers public enum TestData { @@ -50,5 +49,20 @@ public enum TestData { case sad case like } +} +extension XCTestCase { + /// Loads a data from a file. + /// - Parameters: + /// - name: a file name. + /// - extension: a file extension. JSON by default. + /// - Returns: a file data. + public static func mockData(fromFile name: String, bundle: Bundle, extension: String = "json") -> Data { + guard let url = bundle.url(forResource: name, withExtension: `extension`) else { + XCTFail("\n❌ Mock file \"\(name).json\" not found in bundle \(bundle.bundleURL.lastPathComponent)") + return .init() + } + + return try! Data(contentsOf: url) + } } diff --git a/TestTools/StreamChatTestTools/Mocks/StreamChat/Controllers/Controllers/ChatChannelListController_Mock.swift b/TestTools/StreamChatTestTools/Mocks/StreamChat/Controllers/Controllers/ChatChannelListController_Mock.swift index 274e1f8cc4d..652dd7d6507 100644 --- a/TestTools/StreamChatTestTools/Mocks/StreamChat/Controllers/Controllers/ChatChannelListController_Mock.swift +++ b/TestTools/StreamChatTestTools/Mocks/StreamChat/Controllers/Controllers/ChatChannelListController_Mock.swift @@ -4,7 +4,7 @@ import Foundation @testable import StreamChat -import StreamChatTestHelpers +@testable import StreamSwiftTestHelpers public class ChatChannelListController_Mock: ChatChannelListController, Spy { public var recordedFunctions: [String] = [] diff --git a/TestTools/StreamChatTestTools/Mocks/StreamChat/Repositories/AuthenticationRepository_Mock.swift b/TestTools/StreamChatTestTools/Mocks/StreamChat/Repositories/AuthenticationRepository_Mock.swift index 95ddd026a7a..6fcadf69b67 100644 --- a/TestTools/StreamChatTestTools/Mocks/StreamChat/Repositories/AuthenticationRepository_Mock.swift +++ b/TestTools/StreamChatTestTools/Mocks/StreamChat/Repositories/AuthenticationRepository_Mock.swift @@ -3,8 +3,8 @@ // import Foundation -import StreamChatTestHelpers @testable import StreamChat +@testable import StreamSwiftTestHelpers class AuthenticationRepository_Mock: AuthenticationRepository, Spy { enum Signature { diff --git a/TestTools/StreamChatTestTools/StreamChatTestTools.swift b/TestTools/StreamChatTestTools/StreamChatTestTools.swift index ff962a0d36a..2128252a00d 100644 --- a/TestTools/StreamChatTestTools/StreamChatTestTools.swift +++ b/TestTools/StreamChatTestTools/StreamChatTestTools.swift @@ -3,7 +3,7 @@ // import Foundation -@_exported import StreamChatTestHelpers +@_exported import StreamSwiftTestHelpers import XCTest extension Bundle { diff --git a/Tests/StreamChatTests/APIClient/Endpoints/Payloads/CreateCallPayload_Tests.swift b/Tests/StreamChatTests/APIClient/Endpoints/Payloads/CreateCallPayload_Tests.swift index dbd2f681582..978b84d3222 100644 --- a/Tests/StreamChatTests/APIClient/Endpoints/Payloads/CreateCallPayload_Tests.swift +++ b/Tests/StreamChatTests/APIClient/Endpoints/Payloads/CreateCallPayload_Tests.swift @@ -4,7 +4,7 @@ import Foundation @testable import StreamChat -import StreamChatTestHelpers +@testable import StreamSwiftTestHelpers import XCTest final class CreateCallPayload_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/APIClient/Endpoints/Requests/CallRequestBody_Tests.swift b/Tests/StreamChatTests/APIClient/Endpoints/Requests/CallRequestBody_Tests.swift index 30b33a8deda..6478346172e 100644 --- a/Tests/StreamChatTests/APIClient/Endpoints/Requests/CallRequestBody_Tests.swift +++ b/Tests/StreamChatTests/APIClient/Endpoints/Requests/CallRequestBody_Tests.swift @@ -4,7 +4,7 @@ import Foundation @testable import StreamChat -import StreamChatTestHelpers +@testable import StreamSwiftTestHelpers import XCTest final class CallRequestBody_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Audio/AudioAnalysisEngine_Tests.swift b/Tests/StreamChatTests/Audio/AudioAnalysisEngine_Tests.swift index 5c1c07fec4e..c1ea276bd80 100644 --- a/Tests/StreamChatTests/Audio/AudioAnalysisEngine_Tests.swift +++ b/Tests/StreamChatTests/Audio/AudioAnalysisEngine_Tests.swift @@ -4,7 +4,7 @@ import Foundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class AudioAnalysisEngine_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Audio/StreamAssetPropertyLoader_Tests.swift b/Tests/StreamChatTests/Audio/StreamAssetPropertyLoader_Tests.swift index 3c4c3998e85..5f93f792187 100644 --- a/Tests/StreamChatTests/Audio/StreamAssetPropertyLoader_Tests.swift +++ b/Tests/StreamChatTests/Audio/StreamAssetPropertyLoader_Tests.swift @@ -5,7 +5,7 @@ import AVFoundation import Foundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class StreamAssetPropertyLoader_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Audio/StreamAudioPlayer_Tests.swift b/Tests/StreamChatTests/Audio/StreamAudioPlayer_Tests.swift index 5f1f3ce717a..4ab6cb66c8b 100644 --- a/Tests/StreamChatTests/Audio/StreamAudioPlayer_Tests.swift +++ b/Tests/StreamChatTests/Audio/StreamAudioPlayer_Tests.swift @@ -5,7 +5,7 @@ import AVFoundation import Foundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class StreamAudioPlayer_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Audio/StreamAudioQueuePlayer_Tests.swift b/Tests/StreamChatTests/Audio/StreamAudioQueuePlayer_Tests.swift index ecb4f2b4ec4..8f815adbae5 100644 --- a/Tests/StreamChatTests/Audio/StreamAudioQueuePlayer_Tests.swift +++ b/Tests/StreamChatTests/Audio/StreamAudioQueuePlayer_Tests.swift @@ -4,7 +4,7 @@ import AVFoundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class StreamAudioQueuePlayer_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Audio/StreamAudioRecorder_Tests.swift b/Tests/StreamChatTests/Audio/StreamAudioRecorder_Tests.swift index cacb8f882bd..f883787e225 100644 --- a/Tests/StreamChatTests/Audio/StreamAudioRecorder_Tests.swift +++ b/Tests/StreamChatTests/Audio/StreamAudioRecorder_Tests.swift @@ -5,7 +5,7 @@ import AVFoundation import Foundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class StreamAudioRecorder_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Audio/StreamAudioSessionConfigurator_Tests.swift b/Tests/StreamChatTests/Audio/StreamAudioSessionConfigurator_Tests.swift index 551b9a47b9f..98e1ead3b09 100644 --- a/Tests/StreamChatTests/Audio/StreamAudioSessionConfigurator_Tests.swift +++ b/Tests/StreamChatTests/Audio/StreamAudioSessionConfigurator_Tests.swift @@ -4,7 +4,7 @@ import AVFoundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class StreamAudioSessionConfigurator_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Audio/StreamAudioWaveformAnalyser_Tests.swift b/Tests/StreamChatTests/Audio/StreamAudioWaveformAnalyser_Tests.swift index 38d134cc60f..de3c5e0d0f4 100644 --- a/Tests/StreamChatTests/Audio/StreamAudioWaveformAnalyser_Tests.swift +++ b/Tests/StreamChatTests/Audio/StreamAudioWaveformAnalyser_Tests.swift @@ -4,7 +4,7 @@ import AVFoundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class StreamAudioWaveformAnalyser_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Models/Attachments/AnyAttachmentPayload_Tests.swift b/Tests/StreamChatTests/Models/Attachments/AnyAttachmentPayload_Tests.swift index 6a6b70f9377..769ada60a9d 100644 --- a/Tests/StreamChatTests/Models/Attachments/AnyAttachmentPayload_Tests.swift +++ b/Tests/StreamChatTests/Models/Attachments/AnyAttachmentPayload_Tests.swift @@ -3,7 +3,7 @@ // @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class AnyAttachmentPayload_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/StreamChatTests.swift b/Tests/StreamChatTests/StreamChatTests.swift index 4f460cbd3f0..1c2e1911adc 100644 --- a/Tests/StreamChatTests/StreamChatTests.swift +++ b/Tests/StreamChatTests/StreamChatTests.swift @@ -4,6 +4,6 @@ import Foundation -@_exported import StreamChatTestHelpers +@_exported import StreamSwiftTestHelpers final class StreamChatTests {} diff --git a/Tests/StreamChatTests/Utils/CooldownTracker_Tests.swift b/Tests/StreamChatTests/Utils/CooldownTracker_Tests.swift index ad33565eee5..f9c996b0024 100644 --- a/Tests/StreamChatTests/Utils/CooldownTracker_Tests.swift +++ b/Tests/StreamChatTests/Utils/CooldownTracker_Tests.swift @@ -3,8 +3,8 @@ // @testable import StreamChat -import StreamChatTestHelpers -import StreamChatTestTools +@testable import StreamChatTestTools +@testable import StreamSwiftTestHelpers import XCTest final class CooldownTracker_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Utils/Debouncer_Tests.swift b/Tests/StreamChatTests/Utils/Debouncer_Tests.swift index e60c14d7de9..212882a8f7e 100644 --- a/Tests/StreamChatTests/Utils/Debouncer_Tests.swift +++ b/Tests/StreamChatTests/Utils/Debouncer_Tests.swift @@ -4,8 +4,8 @@ import Foundation @testable import StreamChat -import StreamChatTestHelpers -import StreamChatTestTools +@testable import StreamChatTestTools +@testable import StreamSwiftTestHelpers import XCTest final class Debouncer_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Utils/LazyCachedMapCollection_Tests.swift b/Tests/StreamChatTests/Utils/LazyCachedMapCollection_Tests.swift index f386cb4d55b..ca8edabc03e 100644 --- a/Tests/StreamChatTests/Utils/LazyCachedMapCollection_Tests.swift +++ b/Tests/StreamChatTests/Utils/LazyCachedMapCollection_Tests.swift @@ -3,7 +3,7 @@ // @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools import XCTest final class LazyCachedMapCollection_Tests: XCTestCase { diff --git a/Tests/StreamChatTests/Utils/MulticastDelegate_Tests.swift b/Tests/StreamChatTests/Utils/MulticastDelegate_Tests.swift index 9f6f0a4bb0d..0ba18721f3e 100644 --- a/Tests/StreamChatTests/Utils/MulticastDelegate_Tests.swift +++ b/Tests/StreamChatTests/Utils/MulticastDelegate_Tests.swift @@ -3,7 +3,7 @@ // @testable import StreamChat -import StreamChatTestHelpers +@testable import StreamSwiftTestHelpers import XCTest final class MulticastDelegate_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/Helpers/SnapshotTesting/AssertSnapshot.swift b/Tests/StreamChatUITests/Helpers/SnapshotTesting/AssertSnapshot.swift deleted file mode 100644 index 10057173e7f..00000000000 --- a/Tests/StreamChatUITests/Helpers/SnapshotTesting/AssertSnapshot.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// Copyright © 2023 Stream.io Inc. All rights reserved. -// - -import SnapshotTesting -import SwiftUI -import XCTest - -/// Set this property true, to easily re-record all snapshots. -let overrideRecording: Bool? = nil - -/// The percentage a pixel must match the source pixel to be considered a match. -let precision: Float = 0.96 - -/// The default view controller size. Simulates an iPhone in portrait mode. -let defaultScreenSize = CGSize(width: 360, height: 700) - -/// Snapshot of a view controller. All variants will be tested by default. For each variant, it will take a snapshot. -/// It is recommended to test all trait variants only for view controllers, and for small view components only test -/// the default variant. This is to minimize the amount of pictures stored in the repo. -/// -/// - Parameters: -/// - vc: The view controller to be tested. -/// - isEmbeddedInNavigationController: If the view controller should be embedded in a navigation controller. -/// Useful to test the navigation bar. -/// - variants: The variants that a snapshot will be taken. All variants should be tested for a view controller. -/// - screenSize: The size of the view controller. -/// - suffix: When multiple snapshots are recorded from within the same test, the suffix will be added -/// to the name of the snapshot image file to uniquely identify it. -/// - record: True if a new reference should be saved. False by default, -/// so that the newly captured snapshot is compared with the current reference. -func AssertSnapshot( - _ vc: UIViewController, - isEmbeddedInNavigationController: Bool = false, - variants: [SnapshotVariant] = SnapshotVariant.all, - screenSize: CGSize = defaultScreenSize, - suffix: String? = nil, - record: Bool = false, - line: UInt = #line, - file: StaticString = #filePath, - function: String = #function -) { - let viewController = isEmbeddedInNavigationController ? UINavigationController(rootViewController: vc) : vc - - variants.forEach { variant in - assertSnapshot( - matching: viewController, - as: .image(perceptualPrecision: precision, size: screenSize, traits: variant.traits), - named: variant.snapshotName + (suffix.map { "." + $0 } ?? ""), - record: overrideRecording ?? record, - file: file, - testName: function, - line: line - ) - } -} - -/// Snapshot of a view. Used for view components. Only the default variant is tested. -/// To minimize the amount of snapshot pictures saved in the repo, the rest of the variants should -/// be tested in view controllers. -/// -/// - Parameters: -/// - view: The component to be tested. -/// - variants: The variants that a snapshot will be taken. -/// Only the light and dark variants should be tested in small components. -/// - suffix: When multiple snapshots are recorded from within the same test, the suffix will be added -/// to the name of the snapshot image file to uniquely identify it. -/// - record: True if a new reference should be saved. False by default, -/// so that the newly captured snapshot is compared with the current reference. -func AssertSnapshot( - _ view: UIView, - variants: [SnapshotVariant] = SnapshotVariant.all, - size: CGSize? = nil, - suffix: String? = nil, - record: Bool = false, - line: UInt = #line, - file: StaticString = #filePath, - function: String = #function -) { - variants.forEach { variant in - assertSnapshot( - matching: view, - as: size != nil ? - .image(perceptualPrecision: precision, size: size!, traits: variant.traits) - : .image(perceptualPrecision: precision, traits: variant.traits), - named: variant.snapshotName + (suffix.map { "." + $0 } ?? ""), - record: overrideRecording ?? record, - file: file, - testName: function, - line: line - ) - } -} - -@available(iOS 13.0, *) -/// Snapshot of a UIViewControllerRepresentable. All variants will be tested by default. For each variant, it will take a snapshot. -/// This uses the default view controller screen size. -func AssertSnapshot( - _ view: View, - isEmbeddedInNavigationController: Bool = false, - variants: [SnapshotVariant] = SnapshotVariant.all, - screenSize: CGSize = defaultScreenSize, - suffix: String? = nil, - record: Bool = false, - line: UInt = #line, - file: StaticString = #filePath, - function: String = #function -) { - let hostingVC = UIHostingController(rootView: view) - AssertSnapshot( - hostingVC, - isEmbeddedInNavigationController: isEmbeddedInNavigationController, - variants: variants, - screenSize: screenSize, - suffix: suffix, - record: overrideRecording ?? record, - line: line, - file: file, - function: function - ) -} - -@available(iOS 13.0, *) -/// Snapshot of a SwiftUI view. Used for SwiftUI view components. -/// -/// - Parameters: -/// - view: The View component to be tested. -/// - variants: The variants that a snapshot will be taken. -/// Only the light and dark variants should be tested in small components. -/// - device: Device on which the snapshots will be taken. -/// - size: The size of the view. -/// - suffix: When multiple snapshots are recorded from within the same test, the suffix will be added -/// to the name of the snapshot image file to uniquely identify it. -/// - record: True if a new reference should be saved. False by default, -/// so that the newly captured snapshot is compared with the current reference. -func AssertSnapshot( - _ view: View, - variants: [SnapshotVariant] = SnapshotVariant.all, - device: ViewImageConfig = .iPhoneX, - size: CGSize? = nil, - suffix: String? = nil, - record: Bool = false, - line: UInt = #line, - file: StaticString = #filePath, - function: String = #function -) { - variants.forEach { variant in - assertSnapshot( - matching: view, - as: size != nil ? - .image(perceptualPrecision: precision, layout: .sizeThatFits) - : .image(perceptualPrecision: precision, layout: .device(config: device), traits: variant.traits), - named: variant.snapshotName + (suffix.map { "." + $0 } ?? ""), - record: overrideRecording ?? record, - file: file, - testName: function, - line: line - ) - } -} - -/// A wrapper view that renders the content in its ideal size -@available(iOS 13, *) -struct SnapshotContainer: View { - let content: Content - - var body: some View { - VStack { - Spacer() - HStack { - Spacer() - content.fixedSize() - Spacer() - }.fixedSize() - Spacer() - }.fixedSize() - } -} diff --git a/Tests/StreamChatUITests/Helpers/SnapshotTesting/SnapshotVariant.swift b/Tests/StreamChatUITests/Helpers/SnapshotTesting/SnapshotVariant.swift deleted file mode 100644 index acef86f5022..00000000000 --- a/Tests/StreamChatUITests/Helpers/SnapshotTesting/SnapshotVariant.swift +++ /dev/null @@ -1,114 +0,0 @@ -// -// Copyright © 2023 Stream.io Inc. All rights reserved. -// - -@testable import StreamChatUI -import XCTest - -/// A Snapshot Variant is a combination of SnapshotTraits, -/// that will result in a snapshot test with multiple UITraitCollection's. -struct SnapshotVariant { - let snapshotTraits: [SnapshotTrait] - var snapshotName: String { - snapshotTraits.map(\.name).joined(separator: ".") - } - - var traits: UITraitCollection { - UITraitCollection(traitsFrom: [UITraitCollection(displayScale: 1)] + snapshotTraits.map(\.trait)) - } -} - -/// A Snapshot Trait is usually just a combination of a UITraitCollection and it's name. -struct SnapshotTrait { - let name: String - let trait: UITraitCollection -} - -extension SnapshotVariant { - // MARK: - Combinations - - static let all: [SnapshotVariant] = { - [smallDark, defaultLight, extraExtraExtraLargeLight, rightToLeftLayout] - }() - - static let onlyUserInterfaceStyles: [SnapshotVariant] = { - [defaultLight, defaultDark] - }() - - // MARK: - Variants - - static let extraExtraExtraLargeLight: SnapshotVariant = { - var traits = [extraExtraExtraLargeTrait] - if #available(iOS 12.0, *) { - traits.append(lightTrait) - } - return SnapshotVariant(snapshotTraits: traits) - }() - - static let defaultDark: SnapshotVariant = { - var traits = [defaultTrait] - if #available(iOS 12.0, *) { - traits.append(darkTrait) - } - return SnapshotVariant(snapshotTraits: traits) - }() - - static let defaultLight: SnapshotVariant = { - var traits = [defaultTrait] - if #available(iOS 12.0, *) { - traits.append(lightTrait) - } - return SnapshotVariant(snapshotTraits: traits) - }() - - static let smallDark: SnapshotVariant = { - var traits = [smallTrait] - if #available(iOS 12.0, *) { - traits.append(darkTrait) - } - return SnapshotVariant(snapshotTraits: traits) - }() - - static let rightToLeftLayout = SnapshotVariant(snapshotTraits: [rightToLeftLayoutTrait, defaultTrait]) - - // MARK: - Traits - - private static let extraExtraExtraLargeTrait = SnapshotTrait( - name: "extraExtraExtraLarge", - trait: UITraitCollection(preferredContentSizeCategory: .extraExtraExtraLarge) - ) - private static let defaultTrait = SnapshotTrait( - name: "default", - trait: UITraitCollection(preferredContentSizeCategory: .large) - ) - private static let smallTrait = SnapshotTrait( - name: "small", - trait: UITraitCollection(preferredContentSizeCategory: .small) - ) - - @available(iOS 12.0, *) - private static let lightTrait = SnapshotTrait( - name: "light", - trait: UITraitCollection(userInterfaceStyle: .light) - ) - - @available(iOS 12.0, *) - private static let darkTrait = SnapshotTrait( - name: "dark", - trait: UITraitCollection(userInterfaceStyle: .dark) - ) - - private static let rightToLeftLayoutTrait = SnapshotTrait( - name: "rightToLeftLayout", trait: .init(layoutDirection: .rightToLeft) - ) -} - -extension Array where Element == SnapshotVariant { - static let all: [SnapshotVariant] = { - SnapshotVariant.all - }() - - static let onlyUserInterfaceStyles: [SnapshotVariant] = { - SnapshotVariant.onlyUserInterfaceStyles - }() -} diff --git a/Tests/StreamChatUITests/Mocks/MockAudioSessionFeedbackGenerator.swift b/Tests/StreamChatUITests/Mocks/MockAudioSessionFeedbackGenerator.swift index 2aa1e6a909d..3dce1d95700 100644 --- a/Tests/StreamChatUITests/Mocks/MockAudioSessionFeedbackGenerator.swift +++ b/Tests/StreamChatUITests/Mocks/MockAudioSessionFeedbackGenerator.swift @@ -3,7 +3,7 @@ // import Foundation -import StreamChatTestTools +@testable import StreamChatTestTools import StreamChatUI public final class MockAudioSessionFeedbackGenerator: AudioSessionFeedbackGenerator, Spy { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC+SwiftUI_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC+SwiftUI_Tests.swift index 410d854c4ff..09f509c50e7 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC+SwiftUI_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC+SwiftUI_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC_Tests.swift index fe0fd6a61b4..b2f2d55e852 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannel/ChatChannelVC_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatChannelVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListCollectionViewCell_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListCollectionViewCell_Tests.swift index 5700c5b4a41..b186bacda1a 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListCollectionViewCell_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListCollectionViewCell_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListEmptyView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListEmptyView_Tests.swift index a79286d5cbd..dd06e9ee435 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListEmptyView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListEmptyView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest class ChatChannelListEmptyView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListErrorView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListErrorView_Tests.swift index 0f265003c8b..3fbdde70aca 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListErrorView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListErrorView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest class ChatChannelListErrorView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView+SwiftUI_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView+SwiftUI_Tests.swift index 96cbd3c1d30..e957a5ab03b 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView+SwiftUI_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView+SwiftUI_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView_Tests.swift index b5418db337c..7ddc95b7b81 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatChannelListItemView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC+SwiftUI_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC+SwiftUI_Tests.swift index 955cf58e018..1a9442d007d 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC+SwiftUI_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC+SwiftUI_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC_Tests.swift index b39eecd2d01..5cf94a95bf3 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListVC_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatChannelListVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView+SwiftUI_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView+SwiftUI_Tests.swift index d0d1219255f..f0e1dee448a 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView+SwiftUI_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView+SwiftUI_Tests.swift @@ -4,6 +4,7 @@ @testable import StreamChat @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView_Tests.swift index 01d46254533..89c6cd8bcc7 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelUnreadCountView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatChannelUnreadCountView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChannelListSearchStrategy_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChannelListSearchStrategy_Tests.swift index 36a00ea7239..bfaae2c7415 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChannelListSearchStrategy_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChannelListSearchStrategy_Tests.swift @@ -3,7 +3,7 @@ // @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatChannelSearchVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatChannelSearchVC_Tests.swift index ad8424aa93e..167075598ed 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatChannelSearchVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatChannelSearchVC_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatChannelSearchVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatMessageSearchVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatMessageSearchVC_Tests.swift index 31223c3a1b2..f00d95ee98b 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatMessageSearchVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/Search/ChatMessageSearchVC_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageSearchVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/SwipeableView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/SwipeableView_Tests.swift index 9dd55bfcba1..81fac7e7dc7 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/SwipeableView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatChannelList/SwipeableView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class SwipeableView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatFileAttachmentListView+ItemView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatFileAttachmentListView+ItemView_Tests.swift index 47a7a4175a6..8e8324a2a78 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatFileAttachmentListView+ItemView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatFileAttachmentListView+ItemView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import UIKit import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageFileAttachmentListView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageFileAttachmentListView_Tests.swift index 5102e822426..3b50636cae3 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageFileAttachmentListView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageFileAttachmentListView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import UIKit import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageGalleryView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageGalleryView_Tests.swift index 6956eec1cd5..3d58a7c9089 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageGalleryView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageGalleryView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import UIKit import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageLinkPreviewView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageLinkPreviewView_Tests.swift index 8792197a0d7..99c790f410d 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageLinkPreviewView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageLinkPreviewView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import UIKit import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageVoiceRecordingAttachmentListView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageVoiceRecordingAttachmentListView_Tests.swift index 4cee64fd4e2..ce8410bb85a 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageVoiceRecordingAttachmentListView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Attachments/ChatMessageVoiceRecordingAttachmentListView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import UIKit import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageBubbleView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageBubbleView_Tests.swift index f062b7d72f8..80c2d701ce9 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageBubbleView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageBubbleView_Tests.swift @@ -3,8 +3,9 @@ // @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageBubbleView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageContentView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageContentView_Tests.swift index 7f5d8192777..271ea9bc613 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageContentView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageContentView_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageContentView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusCheckmarkView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusCheckmarkView_Tests.swift index 7fcb8b19e95..96ecfd3bc8d 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusCheckmarkView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusCheckmarkView_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageDeliveryStatusCheckmarkView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusView_Tests.swift index a42819a7b5e..cea21e0d6cf 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageDeliveryStatusView_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageDeliveryStatusView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageErrorIndicator_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageErrorIndicator_Tests.swift index f79c50a600e..7bb90419e37 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageErrorIndicator_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatMessageErrorIndicator_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageErrorIndicator_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatReactionsBubbleView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatReactionsBubbleView_Tests.swift index 40b0b962df1..aa7564ab133 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatReactionsBubbleView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/ChatMessage/ChatReactionsBubbleView_Tests.swift @@ -3,8 +3,9 @@ // @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatReactionsBubbleView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/JumpToUnreadMessagesButton_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/JumpToUnreadMessagesButton_Tests.swift index b18bd1cd0be..e706a6d26f1 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/JumpToUnreadMessagesButton_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/JumpToUnreadMessagesButton_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class JumpToUnreadMessagesButtonTests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionAuthorsVC/ChatMessageReactionAuthorsVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionAuthorsVC/ChatMessageReactionAuthorsVC_Tests.swift index 2babe33ecba..bdf9b7a4dc3 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionAuthorsVC/ChatMessageReactionAuthorsVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionAuthorsVC/ChatMessageReactionAuthorsVC_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageReactionAuthorsVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionsView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionsView_Tests.swift index 1a58f2ff468..f50b0f04857 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionsView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/Reactions/ChatMessageReactionsView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageReactionsView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/TypingIndicatorView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/TypingIndicatorView_Tests.swift index 811baf0e3b8..4560b7f6638 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/TypingIndicatorView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatMessageList/TypingIndicatorView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class TypingIndicatorViewTests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC+SwiftUI_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC+SwiftUI_Tests.swift index 5238b7f3b16..68c5833f0af 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC+SwiftUI_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC+SwiftUI_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC_Tests.swift index 1b46053d903..f0b6bc1c98c 100644 --- a/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/ChatThread/ChatThreadVC_Tests.swift @@ -2,10 +2,10 @@ // Copyright © 2023 Stream.io Inc. All rights reserved. // -import SnapshotTesting import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatThreadVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VideoAttachmentComposerPreview_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VideoAttachmentComposerPreview_Tests.swift index 260bf1d7313..f3ba3ab6166 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VideoAttachmentComposerPreview_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VideoAttachmentComposerPreview_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VoiceRecordingAttachmentComposerPreview_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VoiceRecordingAttachmentComposerPreview_Tests.swift index daab3235904..591ac3547e9 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VoiceRecordingAttachmentComposerPreview_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentViews/VoiceRecordingAttachmentComposerPreview_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class VoiceRecordingAttachmentComposerPreview_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentsPreviewVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentsPreviewVC_Tests.swift index 49bd787510e..8451f4296d1 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentsPreviewVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Attachments/AttachmentsPreviewVC_Tests.swift @@ -4,6 +4,7 @@ import StreamChat @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class AttachmentsPreviewVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView+SwiftUI_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView+SwiftUI_Tests.swift index 871c0dbdc6c..ad5ed022339 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView+SwiftUI_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView+SwiftUI_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView_Tests.swift index 168122bcd44..f4a73a56d57 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatChannelAvatarView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatUserAvatarView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatUserAvatarView_Tests.swift index 7bbff74eb50..27db832b163 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatUserAvatarView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/ChatUserAvatarView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatUserAvatarView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/CurrentChatUserAvatarView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/CurrentChatUserAvatarView_Tests.swift index 1e9bb056f2d..11641d0c52e 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/CurrentChatUserAvatarView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/AvatarView/CurrentChatUserAvatarView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class CurrentChatUserAvatarView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ChatChannelHeaderView/ChatChannelHeaderView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ChatChannelHeaderView/ChatChannelHeaderView_Tests.swift index 9629c5a5fa6..957109307c9 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ChatChannelHeaderView/ChatChannelHeaderView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ChatChannelHeaderView/ChatChannelHeaderView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatChannelHeaderView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ClampedView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ClampedView_Tests.swift index a01effd505a..02d69a024a0 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ClampedView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ClampedView_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/CommandLabelView/CommandLabelView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/CommandLabelView/CommandLabelView_Tests.swift index fc40ecb3f3f..420dbf1dce0 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/CommandLabelView/CommandLabelView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/CommandLabelView/CommandLabelView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ConfirmButton/ConfirmButton_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ConfirmButton/ConfirmButton_Tests.swift index 953319fa886..05e2019f246 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ConfirmButton/ConfirmButton_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ConfirmButton/ConfirmButton_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ContainerStackView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ContainerStackView_Tests.swift index 08bb76cf000..bd0821b5ddf 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/ContainerStackView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/ContainerStackView_Tests.swift @@ -3,6 +3,7 @@ // @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ContainerStackView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/PillButton_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/PillButton_Tests.swift index 7fb160d6751..eae0234be2b 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/PillButton_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/PillButton_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class PillButton_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/PlayPauseButton/PlayPauseButton_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/PlayPauseButton/PlayPauseButton_Tests.swift index 23bca23981c..4075ff05d3c 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/PlayPauseButton/PlayPauseButton_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/PlayPauseButton/PlayPauseButton_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class PlayPauseButton_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView+SwiftUI_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView+SwiftUI_Tests.swift index e0341d123f1..8eb9a8b888e 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView+SwiftUI_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView+SwiftUI_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView_Tests.swift index 8bed8740f38..400814c397d 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/QuotedChatMessageView/QuotedChatMessageView_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/RecordButton/RecordButton_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/RecordButton/RecordButton_Tests.swift index 304190aa9fe..6f8ff19fb94 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/RecordButton/RecordButton_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/RecordButton/RecordButton_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class RecordButton_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/SendButton/SendButton_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/SendButton/SendButton_Tests.swift index 01b79f72bd0..1723a22a2c8 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/SendButton/SendButton_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/SendButton/SendButton_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import SwiftUI import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatCommandSuggestionView/ChatCommandSuggestionView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatCommandSuggestionView/ChatCommandSuggestionView_Tests.swift index 9843bd03218..4c63abec726 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatCommandSuggestionView/ChatCommandSuggestionView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatCommandSuggestionView/ChatCommandSuggestionView_Tests.swift @@ -4,6 +4,7 @@ @testable import StreamChat @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatCommandSuggestionView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatMentionSuggestionView/ChatMentionSuggestionView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatMentionSuggestionView/ChatMentionSuggestionView_Tests.swift index 11ec8997f16..7abacf02d2f 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatMentionSuggestionView/ChatMentionSuggestionView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatMentionSuggestionView/ChatMentionSuggestionView_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMentionSuggestionView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatSuggestionsVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatSuggestionsVC_Tests.swift index e8f6b4e5e95..46cc168b2e1 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatSuggestionsVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/ChatSuggestionsVC_Tests.swift @@ -3,8 +3,9 @@ // @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatSuggestionsVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/TitleContainerView/TitleContainerView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/TitleContainerView/TitleContainerView_Tests.swift index c71d4123c7c..245c99f358b 100644 --- a/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/TitleContainerView/TitleContainerView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/CommonViews/Suggestions/TitleContainerView/TitleContainerView_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class TitleContainerView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/Composer/ComposerVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/Composer/ComposerVC_Tests.swift index 4b2248fae5e..7278e4c1f7c 100644 --- a/Tests/StreamChatUITests/SnapshotTests/Composer/ComposerVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/Composer/ComposerVC_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ComposerVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/Gallery/GalleryVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/Gallery/GalleryVC_Tests.swift index 267eb9cccba..2b88048551a 100644 --- a/Tests/StreamChatUITests/SnapshotTests/Gallery/GalleryVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/Gallery/GalleryVC_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class GalleryVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionControl_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionControl_Tests.swift index 91df6238198..9db6e25a2f7 100644 --- a/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionControl_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionControl_Tests.swift @@ -3,8 +3,9 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageActionControl_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionsVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionsVC_Tests.swift index 20e3499882b..67a98179bc4 100644 --- a/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionsVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessageActionsVC_Tests.swift @@ -5,6 +5,7 @@ @testable import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class ChatMessageActionsVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessagePopupVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessagePopupVC_Tests.swift index 992f20e016a..afb3e8d32ff 100644 --- a/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessagePopupVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/MessageActionsPopup/ChatMessagePopupVC_Tests.swift @@ -5,6 +5,7 @@ import StreamChat @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest extension ChatMessagePopupVC: AppearanceProvider {} diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/AudioQueuePlayerNextItemProvider_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/AudioQueuePlayerNextItemProvider_Tests.swift index c357b869aa5..ebbed48d592 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/AudioQueuePlayerNextItemProvider_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/AudioQueuePlayerNextItemProvider_Tests.swift @@ -3,8 +3,8 @@ // @testable import StreamChat -@testable import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class AudioQueuePlayerNextItemProvider_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/BiDirectionalPanGestureRecogniser_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/BiDirectionalPanGestureRecogniser_Tests.swift index a94660d5840..3453a5e5c74 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/BiDirectionalPanGestureRecogniser_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/BiDirectionalPanGestureRecogniser_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class BiDirectionalPanGestureRecogniser_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/StreamAudioSessionFeedbackGenerator_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/StreamAudioSessionFeedbackGenerator_Tests.swift index d0b448354d1..7d9c40fb139 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/StreamAudioSessionFeedbackGenerator_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Components/StreamAudioSessionFeedbackGenerator_Tests.swift @@ -4,7 +4,7 @@ import Foundation @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import UIKit import XCTest diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/AudioVisualizationView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/AudioVisualizationView_Tests.swift index ea5c41a72b4..f8704846d68 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/AudioVisualizationView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/AudioVisualizationView_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class AudioVisualizationView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LiveRecordingView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LiveRecordingView_Tests.swift index f40891c6828..5d9824aca34 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LiveRecordingView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LiveRecordingView_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class LiveRecordingView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LockIndicatorView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LockIndicatorView_Tests.swift index 7baaa41c401..16f7e332d2d 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LockIndicatorView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/LockIndicatorView_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class LockIndicatorView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingIndicatorView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingIndicatorView_Tests.swift index cac068ed3f4..895970e2b61 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingIndicatorView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingIndicatorView_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class RecordingIndicatorView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingTipView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingTipView_Tests.swift index 2ad4adb263e..1cec77087cd 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingTipView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/RecordingTipView_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class RecordingTipView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/SlideToCancelView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/SlideToCancelView_Tests.swift index 0ceb3f43484..9f830d4b37e 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/SlideToCancelView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/SlideToCancelView_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class SlideToCancelView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/WaveformView_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/WaveformView_Tests.swift index 6178ef63dc7..8634d0dad99 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/WaveformView_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/Views/WaveformView_Tests.swift @@ -3,8 +3,8 @@ // import StreamChat -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class WaveformView_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/VoiceRecordingVC_Tests.swift b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/VoiceRecordingVC_Tests.swift index deefd130da4..ef1d29ecb02 100644 --- a/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/VoiceRecordingVC_Tests.swift +++ b/Tests/StreamChatUITests/SnapshotTests/VoiceRecording/VoiceRecordingVC_Tests.swift @@ -4,9 +4,9 @@ import AVFoundation @testable import StreamChat -import StreamChatTestHelpers @testable import StreamChatTestTools @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class VoiceRecordingVC_Tests: XCTestCase { diff --git a/Tests/StreamChatUITests/Utils/DefaultMarkdownFormatter_Tests.swift b/Tests/StreamChatUITests/Utils/DefaultMarkdownFormatter_Tests.swift index 98af416b01c..7780e2c0067 100644 --- a/Tests/StreamChatUITests/Utils/DefaultMarkdownFormatter_Tests.swift +++ b/Tests/StreamChatUITests/Utils/DefaultMarkdownFormatter_Tests.swift @@ -2,8 +2,8 @@ // Copyright © 2023 Stream.io Inc. All rights reserved. // -import StreamChatTestHelpers @testable import StreamChatUI +@testable import StreamSwiftTestHelpers import XCTest final class DefaultMarkdownFormatter_Tests: XCTestCase { diff --git a/Tests/UISDKdocumentationTests/AttachmentButton_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/AttachmentButton_Documentation_Tests.swift index 83528b1bcf7..92deb536833 100644 --- a/Tests/UISDKdocumentationTests/AttachmentButton_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/AttachmentButton_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/AttachmentPlaceholderView_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/AttachmentPlaceholderView_Documentation_Tests.swift index f5950e8f991..0cb99a16824 100644 --- a/Tests/UISDKdocumentationTests/AttachmentPlaceholderView_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/AttachmentPlaceholderView_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/ChatAvatarView_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/ChatAvatarView_Documentation_Tests.swift index 36c38a3fb49..1d275622ece 100644 --- a/Tests/UISDKdocumentationTests/ChatAvatarView_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/ChatAvatarView_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/CommandButton_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/CommandButton_Documentation_Tests.swift index c4ec6769c4e..26e366f3964 100644 --- a/Tests/UISDKdocumentationTests/CommandButton_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/CommandButton_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/CommandLabelView_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/CommandLabelView_Documentation_Tests.swift index 24437d8798a..6e12acc64c1 100644 --- a/Tests/UISDKdocumentationTests/CommandLabelView_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/CommandLabelView_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/ConfirmButton_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/ConfirmButton_Documentation_Tests.swift index 95e9920eee3..73c9170a65a 100644 --- a/Tests/UISDKdocumentationTests/ConfirmButton_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/ConfirmButton_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/OnlineIndicatorView_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/OnlineIndicatorView_Documentation_Tests.swift index 878107a9347..2a973f7701c 100644 --- a/Tests/UISDKdocumentationTests/OnlineIndicatorView_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/OnlineIndicatorView_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/SendButton_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/SendButton_Documentation_Tests.swift index df0fd27c0ab..5df27081729 100644 --- a/Tests/UISDKdocumentationTests/SendButton_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/SendButton_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/ShrinkInputButton_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/ShrinkInputButton_Documentation_Tests.swift index 7164e8f31b7..5462ac87733 100644 --- a/Tests/UISDKdocumentationTests/ShrinkInputButton_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/ShrinkInputButton_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/TitleContainerView_Documentation_Tests.swift b/Tests/UISDKdocumentationTests/TitleContainerView_Documentation_Tests.swift index 87b2be516d6..6eb8fb9291b 100644 --- a/Tests/UISDKdocumentationTests/TitleContainerView_Documentation_Tests.swift +++ b/Tests/UISDKdocumentationTests/TitleContainerView_Documentation_Tests.swift @@ -3,7 +3,7 @@ // import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest diff --git a/Tests/UISDKdocumentationTests/UIView+Annotations.swift b/Tests/UISDKdocumentationTests/UIView+Annotations.swift index 320007c2285..73bce2d1361 100644 --- a/Tests/UISDKdocumentationTests/UIView+Annotations.swift +++ b/Tests/UISDKdocumentationTests/UIView+Annotations.swift @@ -3,7 +3,7 @@ // @testable import StreamChat -import StreamChatTestTools +@testable import StreamChatTestTools @testable import StreamChatUI import SwiftUI import XCTest