diff --git a/.github/workflows/cron-checks.yml b/.github/workflows/cron-checks.yml index 1d2636bd..9162d8b9 100644 --- a/.github/workflows/cron-checks.yml +++ b/.github/workflows/cron-checks.yml @@ -27,22 +27,19 @@ jobs: # setup_runtime: false - ios: "18.5" device: "iPhone 16 Pro" - xcode: "26.0.1" setup_runtime: false - ios: "17.5" device: "iPhone 15 Pro" - xcode: "26.0.1" setup_runtime: true - ios: "16.4" device: "iPhone 14 Pro" - xcode: "16.4" setup_runtime: true fail-fast: false runs-on: macos-15 env: GITHUB_EVENT: ${{ toJson(github.event) }} ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }} - XCODE_VERSION: ${{ matrix.xcode }} + XCODE_VERSION: "26.0.1" steps: - uses: actions/checkout@v4.1.1 - uses: ./.github/actions/bootstrap diff --git a/.github/workflows/smoke-checks.yml b/.github/workflows/smoke-checks.yml index 0e656491..c859e372 100644 --- a/.github/workflows/smoke-checks.yml +++ b/.github/workflows/smoke-checks.yml @@ -66,7 +66,7 @@ jobs: build-old-xcode: name: Build SDKs (Old Xcode) runs-on: macos-14 - if: false # Disabled for now ${{ github.event.inputs.record_snapshots != 'true' }} + if: ${{ github.event.inputs.record_snapshots != 'true' }} env: XCODE_VERSION: "16.1" steps: @@ -78,7 +78,7 @@ jobs: - uses: ./.github/actions/xcode-cache - uses: ./.github/actions/ruby-cache - name: Build SwiftUI - run: bundle exec fastlane test_ui device:"iPhone 16" build_for_testing:true + run: bundle exec fastlane test_ui device:"iPhone 16 (18.1)" build_for_testing:true timeout-minutes: 25 - name: Build XCFrameworks run: bundle exec fastlane build_xcframeworks diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/AddUsersViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/AddUsersViewModel.swift index d16a91cd..b0b0d489 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/AddUsersViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/AddUsersViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift index 51a6a3c3..b933f151 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import Foundation import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/FileAttachmentsViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/FileAttachmentsViewModel.swift index 2c5933a6..9e7ca23a 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/FileAttachmentsViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/FileAttachmentsViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import Foundation import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/MediaAttachmentsViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/MediaAttachmentsViewModel.swift index 7ba4f5eb..f4845e63 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/MediaAttachmentsViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/MediaAttachmentsViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import Foundation import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/PinnedMessagesViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/PinnedMessagesViewModel.swift index c6223dc1..e5ff4a1f 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/PinnedMessagesViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/PinnedMessagesViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import Foundation import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelViewModel.swift index 48d119fc..7f238246 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelViewModel.swift @@ -797,6 +797,8 @@ import SwiftUI } case .move: continue + @unknown default: + continue } } diff --git a/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAssetsUtils.swift b/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAssetsUtils.swift index 53fdfa97..59285afd 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAssetsUtils.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAssetsUtils.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import Photos import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/VoiceRecordingContainerView.swift b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/VoiceRecordingContainerView.swift index 4371cc16..387bdd8f 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/VoiceRecordingContainerView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/VoiceRecordingContainerView.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AttachmentDownloadingStateView.swift b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AttachmentDownloadingStateView.swift index a44a299a..af5b0fca 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AttachmentDownloadingStateView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AttachmentDownloadingStateView.swift @@ -33,6 +33,8 @@ struct AttachmentDownloadingStateView: View { case .downloaded: EmptyView() + @unknown default: + EmptyView() } } .id("\(url.absoluteString)-\(downloadState.state))") diff --git a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageRepliesView.swift b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageRepliesView.swift index f050d674..5af249a3 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageRepliesView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageRepliesView.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift index db42539e..5beb8392 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions/MessageActionsViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions/MessageActionsViewModel.swift index 67f2403d..68930e26 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions/MessageActionsViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions/MessageActionsViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannel/Reactions/ReactionsUsersViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/Reactions/ReactionsUsersViewModel.swift index 87e57a99..f3cd55f5 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/Reactions/ReactionsUsersViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/Reactions/ReactionsUsersViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import StreamChat import SwiftUI diff --git a/Sources/StreamChatSwiftUI/ChatChannelList/MoreChannelActionsViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannelList/MoreChannelActionsViewModel.swift index af72244a..9fdb5432 100644 --- a/Sources/StreamChatSwiftUI/ChatChannelList/MoreChannelActionsViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannelList/MoreChannelActionsViewModel.swift @@ -2,6 +2,7 @@ // Copyright © 2025 Stream.io Inc. All rights reserved. // +import Combine import Foundation import StreamChat import SwiftUI