Skip to content

Commit fde8ca6

Browse files
committed
Change swift version everywhere
1 parent 3363081 commit fde8ca6

File tree

11 files changed

+17
-17
lines changed

11 files changed

+17
-17
lines changed

.swiftformat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Stream rules
22
--header "\nCopyright © {year} Stream.io Inc. All rights reserved.\n"
3-
--swiftversion 5.9
3+
--swiftversion 6.0
44

55
--ifdef no-indent
66
--disable redundantType

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</p>
77
<p align="center">
88
<a href="https://getstream.io/video/docs/sdk/ios/"><img src="https://img.shields.io/badge/iOS-13%2B-lightblue" /></a>
9-
<a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-5.9%2B-orange.svg" /></a>
9+
<a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-6.0%2B-orange.svg" /></a>
1010
</p>
1111
<p align="center">
1212
<img id="stream-video-label" alt="StreamVideo" src="https://img.shields.io/badge/StreamVideo-7.48%20MB-blue"/>

Sources/StreamVideo/WebRTC/v2/PeerConnection/MediaAdapters/VideoMediaAdapter.swift

+7-7
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
168168
func didUpdateCameraPosition(
169169
_ position: AVCaptureDevice.Position
170170
) async throws {
171-
try await(localMediaManager as? LocalVideoMediaAdapter)?
171+
try await (localMediaManager as? LocalVideoMediaAdapter)?
172172
.didUpdateCameraPosition(position)
173173
}
174174

@@ -184,14 +184,14 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
184184
///
185185
/// - Parameter factor: The zoom factor.
186186
func zoom(by factor: CGFloat) async throws {
187-
try await(localMediaManager as? LocalVideoMediaAdapter)?.zoom(by: factor)
187+
try await (localMediaManager as? LocalVideoMediaAdapter)?.zoom(by: factor)
188188
}
189189

190190
/// Focuses the camera at a given point.
191191
///
192192
/// - Parameter point: The point to focus on.
193193
func focus(at point: CGPoint) async throws {
194-
try await(localMediaManager as? LocalVideoMediaAdapter)?.focus(at: point)
194+
try await (localMediaManager as? LocalVideoMediaAdapter)?.focus(at: point)
195195
}
196196

197197
/// Adds a video output to the capture session.
@@ -200,7 +200,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
200200
func addVideoOutput(
201201
_ videoOutput: AVCaptureVideoDataOutput
202202
) async throws {
203-
try await(localMediaManager as? LocalVideoMediaAdapter)?.addVideoOutput(videoOutput)
203+
try await (localMediaManager as? LocalVideoMediaAdapter)?.addVideoOutput(videoOutput)
204204
}
205205

206206
/// Removes a video output from the capture session.
@@ -209,7 +209,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
209209
func removeVideoOutput(
210210
_ videoOutput: AVCaptureVideoDataOutput
211211
) async throws {
212-
try await(localMediaManager as? LocalVideoMediaAdapter)?.removeVideoOutput(videoOutput)
212+
try await (localMediaManager as? LocalVideoMediaAdapter)?.removeVideoOutput(videoOutput)
213213
}
214214

215215
/// Adds a photo output to the capture session.
@@ -218,7 +218,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
218218
func addCapturePhotoOutput(
219219
_ capturePhotoOutput: AVCapturePhotoOutput
220220
) async throws {
221-
try await(localMediaManager as? LocalVideoMediaAdapter)?
221+
try await (localMediaManager as? LocalVideoMediaAdapter)?
222222
.addCapturePhotoOutput(capturePhotoOutput)
223223
}
224224

@@ -228,7 +228,7 @@ final class VideoMediaAdapter: MediaAdapting, @unchecked Sendable {
228228
func removeCapturePhotoOutput(
229229
_ capturePhotoOutput: AVCapturePhotoOutput
230230
) async throws {
231-
try await(localMediaManager as? LocalVideoMediaAdapter)?
231+
try await (localMediaManager as? LocalVideoMediaAdapter)?
232232
.removeCapturePhotoOutput(capturePhotoOutput)
233233
}
234234

Sources/StreamVideoSwiftUI/CallingViews/LobbyViewModel.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class LobbyViewModel: ObservableObject, @unchecked Sendable {
5656
(camera as? Camera)?.switchCaptureDevice()
5757
}
5858
Task {
59-
await(camera as? Camera)?.start()
59+
await (camera as? Camera)?.start()
6060
}
6161
}
6262
}

StreamVideo-XCFramework.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
99
spec.author = { 'getstream.io' => '[email protected]' }
1010
spec.social_media_url = 'https://getstream.io'
1111

12-
spec.swift_version = '5.9'
12+
spec.swift_version = '6.0'
1313
spec.platform = :ios, '13.0'
1414
spec.requires_arc = true
1515

StreamVideo.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
99
spec.author = { 'getstream.io' => '[email protected]' }
1010
spec.social_media_url = 'https://getstream.io'
1111

12-
spec.swift_version = '5.9'
12+
spec.swift_version = '6.0'
1313
spec.platform = :ios, '13.0'
1414
spec.requires_arc = true
1515

StreamVideoSwiftUI-XCFramework.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
99
spec.author = { 'getstream.io' => '[email protected]' }
1010
spec.social_media_url = 'https://getstream.io'
1111

12-
spec.swift_version = '5.9'
12+
spec.swift_version = '6.0'
1313
spec.platform = :ios, '13.0'
1414
spec.requires_arc = true
1515

StreamVideoSwiftUI.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
99
spec.author = { 'getstream.io' => '[email protected]' }
1010
spec.social_media_url = 'https://getstream.io'
1111

12-
spec.swift_version = '5.9'
12+
spec.swift_version = '6.0'
1313
spec.platform = :ios, '13.0'
1414
spec.requires_arc = true
1515

StreamVideoTests/WebRTC/Extensions/Foundation/Task_TimeoutTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final class TaskTimeoutTests: XCTestCase, @unchecked Sendable {
5454
return "Task 2"
5555
}.value
5656

57-
let (result1, result2) = try await(task1, task2)
57+
let (result1, result2) = try await (task1, task2)
5858

5959
XCTAssertEqual(result1, "Task 1")
6060
XCTAssertEqual(result2, "Task 2")

StreamVideoUIKit-XCFramework.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
99
spec.author = { 'getstream.io' => '[email protected]' }
1010
spec.social_media_url = 'https://getstream.io'
1111

12-
spec.swift_version = '5.9'
12+
spec.swift_version = '6.0'
1313
spec.platform = :ios, '13.0'
1414
spec.requires_arc = true
1515

StreamVideoUIKit.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
99
spec.author = { 'getstream.io' => '[email protected]' }
1010
spec.social_media_url = 'https://getstream.io'
1111

12-
spec.swift_version = '5.9'
12+
spec.swift_version = '6.0'
1313
spec.platform = :ios, '13.0'
1414
spec.requires_arc = true
1515

0 commit comments

Comments
 (0)