From 33630816c7e77fd989fc3479a794decf5ce1a018 Mon Sep 17 00:00:00 2001
From: Ilias Pavlidakis
diff --git a/Sources/StreamVideo/WebRTC/v2/PeerConnection/MediaAdapters/VideoMediaAdapter.swift b/Sources/StreamVideo/WebRTC/v2/PeerConnection/MediaAdapters/VideoMediaAdapter.swift
index f6c2106b2..630bbd29a 100644
--- a/Sources/StreamVideo/WebRTC/v2/PeerConnection/MediaAdapters/VideoMediaAdapter.swift
+++ b/Sources/StreamVideo/WebRTC/v2/PeerConnection/MediaAdapters/VideoMediaAdapter.swift
@@ -168,7 +168,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
func didUpdateCameraPosition(
_ position: AVCaptureDevice.Position
) async throws {
- try await(localMediaManager as? LocalVideoMediaAdapter)?
+ try await (localMediaManager as? LocalVideoMediaAdapter)?
.didUpdateCameraPosition(position)
}
@@ -184,14 +184,14 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
///
/// - Parameter factor: The zoom factor.
func zoom(by factor: CGFloat) async throws {
- try await(localMediaManager as? LocalVideoMediaAdapter)?.zoom(by: factor)
+ try await (localMediaManager as? LocalVideoMediaAdapter)?.zoom(by: factor)
}
/// Focuses the camera at a given point.
///
/// - Parameter point: The point to focus on.
func focus(at point: CGPoint) async throws {
- try await(localMediaManager as? LocalVideoMediaAdapter)?.focus(at: point)
+ try await (localMediaManager as? LocalVideoMediaAdapter)?.focus(at: point)
}
/// Adds a video output to the capture session.
@@ -200,7 +200,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
func addVideoOutput(
_ videoOutput: AVCaptureVideoDataOutput
) async throws {
- try await(localMediaManager as? LocalVideoMediaAdapter)?.addVideoOutput(videoOutput)
+ try await (localMediaManager as? LocalVideoMediaAdapter)?.addVideoOutput(videoOutput)
}
/// Removes a video output from the capture session.
@@ -209,7 +209,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
func removeVideoOutput(
_ videoOutput: AVCaptureVideoDataOutput
) async throws {
- try await(localMediaManager as? LocalVideoMediaAdapter)?.removeVideoOutput(videoOutput)
+ try await (localMediaManager as? LocalVideoMediaAdapter)?.removeVideoOutput(videoOutput)
}
/// Adds a photo output to the capture session.
@@ -218,7 +218,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
func addCapturePhotoOutput(
_ capturePhotoOutput: AVCapturePhotoOutput
) async throws {
- try await(localMediaManager as? LocalVideoMediaAdapter)?
+ try await (localMediaManager as? LocalVideoMediaAdapter)?
.addCapturePhotoOutput(capturePhotoOutput)
}
@@ -228,7 +228,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
func removeCapturePhotoOutput(
_ capturePhotoOutput: AVCapturePhotoOutput
) async throws {
- try await(localMediaManager as? LocalVideoMediaAdapter)?
+ try await (localMediaManager as? LocalVideoMediaAdapter)?
.removeCapturePhotoOutput(capturePhotoOutput)
}
diff --git a/Sources/StreamVideoSwiftUI/CallingViews/LobbyViewModel.swift b/Sources/StreamVideoSwiftUI/CallingViews/LobbyViewModel.swift
index 048c593c3..13a431757 100644
--- a/Sources/StreamVideoSwiftUI/CallingViews/LobbyViewModel.swift
+++ b/Sources/StreamVideoSwiftUI/CallingViews/LobbyViewModel.swift
@@ -56,7 +56,7 @@ public class LobbyViewModel: ObservableObject, @unchecked Sendable {
(camera as? Camera)?.switchCaptureDevice()
}
Task {
- await(camera as? Camera)?.start()
+ await (camera as? Camera)?.start()
}
}
}
diff --git a/StreamVideo-XCFramework.podspec b/StreamVideo-XCFramework.podspec
index 60afe48e5..ca4e944cd 100644
--- a/StreamVideo-XCFramework.podspec
+++ b/StreamVideo-XCFramework.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => 'support@getstream.io' }
spec.social_media_url = 'https://getstream.io'
- spec.swift_version = '5.9'
+ spec.swift_version = '6.0'
spec.platform = :ios, '13.0'
spec.requires_arc = true
diff --git a/StreamVideo.podspec b/StreamVideo.podspec
index 1ccd2b433..aa6eb7e38 100644
--- a/StreamVideo.podspec
+++ b/StreamVideo.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => 'support@getstream.io' }
spec.social_media_url = 'https://getstream.io'
- spec.swift_version = '5.9'
+ spec.swift_version = '6.0'
spec.platform = :ios, '13.0'
spec.requires_arc = true
diff --git a/StreamVideoSwiftUI-XCFramework.podspec b/StreamVideoSwiftUI-XCFramework.podspec
index 437e98357..9fd9a93c1 100644
--- a/StreamVideoSwiftUI-XCFramework.podspec
+++ b/StreamVideoSwiftUI-XCFramework.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => 'support@getstream.io' }
spec.social_media_url = 'https://getstream.io'
- spec.swift_version = '5.9'
+ spec.swift_version = '6.0'
spec.platform = :ios, '13.0'
spec.requires_arc = true
diff --git a/StreamVideoSwiftUI.podspec b/StreamVideoSwiftUI.podspec
index 51162f933..45b46b065 100644
--- a/StreamVideoSwiftUI.podspec
+++ b/StreamVideoSwiftUI.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => 'support@getstream.io' }
spec.social_media_url = 'https://getstream.io'
- spec.swift_version = '5.9'
+ spec.swift_version = '6.0'
spec.platform = :ios, '13.0'
spec.requires_arc = true
diff --git a/StreamVideoTests/WebRTC/Extensions/Foundation/Task_TimeoutTests.swift b/StreamVideoTests/WebRTC/Extensions/Foundation/Task_TimeoutTests.swift
index f4250889e..0bbf4aad8 100644
--- a/StreamVideoTests/WebRTC/Extensions/Foundation/Task_TimeoutTests.swift
+++ b/StreamVideoTests/WebRTC/Extensions/Foundation/Task_TimeoutTests.swift
@@ -54,7 +54,7 @@ final class TaskTimeoutTests: XCTestCase, @unchecked Sendable {
return "Task 2"
}.value
- let (result1, result2) = try await(task1, task2)
+ let (result1, result2) = try await (task1, task2)
XCTAssertEqual(result1, "Task 1")
XCTAssertEqual(result2, "Task 2")
diff --git a/StreamVideoUIKit-XCFramework.podspec b/StreamVideoUIKit-XCFramework.podspec
index da8365da3..f7633ab17 100644
--- a/StreamVideoUIKit-XCFramework.podspec
+++ b/StreamVideoUIKit-XCFramework.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => 'support@getstream.io' }
spec.social_media_url = 'https://getstream.io'
- spec.swift_version = '5.9'
+ spec.swift_version = '6.0'
spec.platform = :ios, '13.0'
spec.requires_arc = true
diff --git a/StreamVideoUIKit.podspec b/StreamVideoUIKit.podspec
index 9ff6b6b06..1cecc529e 100644
--- a/StreamVideoUIKit.podspec
+++ b/StreamVideoUIKit.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => 'support@getstream.io' }
spec.social_media_url = 'https://getstream.io'
- spec.swift_version = '5.9'
+ spec.swift_version = '6.0'
spec.platform = :ios, '13.0'
spec.requires_arc = true
From 8721b3441d1d774a01c14f42ee633fc188ba1a07 Mon Sep 17 00:00:00 2001
From: Ilias Pavlidakis