Skip to content

Commit 31d363b

Browse files
committed
Fix automated code review
1 parent d8268cc commit 31d363b

File tree

10 files changed

+18
-45
lines changed

10 files changed

+18
-45
lines changed

Sources/StreamVideo/Utils/AudioSession/AudioDeviceModule/RTCAudioDeviceModuleControlling.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//
2-
// RTCAudioDeviceModuleControlling.swift
3-
// StreamVideo
4-
//
5-
// Created by Ilias Pavlidakis on 25/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

85
import Combine

Sources/StreamVideo/Utils/AudioSession/RTCAudioStore/Namespace/Middleware/RTCAudioStore+AudioDeviceModuleMiddleware.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
//
2-
// RTCAudioStore+AudioDeviceModuleMiddleware.swift
3-
// StreamVideo
4-
//
5-
// Created by Ilias Pavlidakis on 9/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

8-
import Foundation
95
import AVFoundation
6+
import Foundation
107
import StreamWebRTC
118

129
extension RTCAudioStore {

Sources/StreamVideo/Utils/AudioSession/RTCAudioStore/Namespace/RTCAudioStore+Action.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
//
2-
// RTCAudioStore+Action.swift
3-
// StreamVideo
4-
//
5-
// Created by Ilias Pavlidakis on 9/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

8-
import Foundation
95
import AVFoundation
6+
import Foundation
107

118
extension RTCAudioStore {
129

@@ -152,4 +149,3 @@ extension RTCAudioStore {
152149
}
153150
}
154151
}
155-

Sources/StreamVideo/Utils/AudioSession/RTCAudioStore/Namespace/RTCAudioStore+Coordinator.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//
2-
// RTCAudioStore+Coordinator.swift
3-
// StreamVideo
4-
//
5-
// Created by Ilias Pavlidakis on 10/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

85
import Foundation
@@ -110,6 +107,5 @@ extension RTCAudioStore {
110107
return value != state.prefersNoInterruptionsFromSystemAlerts
111108
}
112109
}
113-
114110
}
115111
}

Sources/StreamVideo/Utils/AudioSession/RTCAudioStore/Namespace/RTCAudioStore+Namespace.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//
2-
// RTCAudioStore+Namespace.swift
3-
// StreamVideo
4-
//
5-
// Created by Ilias Pavlidakis on 9/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

85
import Foundation

Sources/StreamVideo/Utils/AudioSession/RTCAudioStore/RTCAudioStore.swift

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
//
2-
// RTCAudioStore.swift
3-
// StreamVideo
4-
//
5-
// Created by Ilias Pavlidakis on 9/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

5+
import Combine
86
import Foundation
97
import StreamWebRTC
10-
import Combine
118

129
/// Redux-style store that keeps WebRTC, CallKit, and app audio state aligned
1310
/// while exposing Combine publishers to observers.
@@ -50,13 +47,13 @@ final class RTCAudioStore: @unchecked Sendable {
5047
)
5148
),
5249
reducers: Namespace.reducers(audioSession: audioSession),
53-
middleware: Namespace.middleware(audioSession: audioSession),
50+
middleware: Namespace.middleware(audioSession: audioSession)
5451
)
5552

5653
store.dispatch([
5754
.normal(.webRTCAudioSession(.setPrefersNoInterruptionsFromSystemAlerts(true))),
5855
.normal(.webRTCAudioSession(.setUseManualAudio(true))),
59-
.normal(.webRTCAudioSession(.setAudioEnabled(false))),
56+
.normal(.webRTCAudioSession(.setAudioEnabled(false)))
6057
])
6158
}
6259

@@ -114,7 +111,7 @@ final class RTCAudioStore: @unchecked Sendable {
114111
function: StaticString = #function,
115112
line: UInt = #line
116113
) -> StoreTask<Namespace> {
117-
store.dispatch(
114+
store.dispatch(
118115
[action],
119116
file: file,
120117
function: function,

Sources/StreamVideo/Utils/Logger/Logger+ThrowingExecution.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//
2-
// Logger+ThrowingExecution.swift
3-
// StreamVideo
4-
//
5-
// Created by Ilias Pavlidakis on 16/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

85
import Foundation

StreamVideoTests/Mock/MockRTCAudioDeviceModule.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
//
2-
// MockRTCAudioDeviceModule.swift
3-
// StreamVideoTests
4-
//
5-
// Created by Ilias Pavlidakis on 16/10/25.
2+
// Copyright © 2025 Stream.io Inc. All rights reserved.
63
//
74

5+
import Combine
86
import Foundation
9-
import StreamWebRTC
107
@testable import StreamVideo
11-
import Combine
8+
import StreamWebRTC
129

1310
final class MockRTCAudioDeviceModule: RTCAudioDeviceModuleControlling, Mockable, @unchecked Sendable {
1411

StreamVideoTests/Utils/AudioSession/AudioDeviceModule/AudioDeviceModule_Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ final class AudioDeviceModule_Tests: XCTestCase, @unchecked Sendable {
519519
operation: (RTCAudioDeviceModule) -> Void,
520520
file: StaticString = #file,
521521
function: StaticString = #function,
522-
line: UInt = #line,
522+
line: UInt = #line
523523
) async throws {
524524
let sinkExpectation = expectation(description: "Sink was called.")
525525
let disposableBag = DisposableBag()

StreamVideoTests/Utils/AudioSession/RTCAudioStore/Components/RTCAudioStore_AVAudioSessionConfigurationValidatorTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import AVFoundation
77
import XCTest
88

99
final class RTCAudioStore_AVAudioSessionConfigurationValidatorTests: XCTestCase,
10-
@unchecked Sendable
11-
{
10+
@unchecked Sendable {
1211

1312
private var subject: RTCAudioStore.StoreState.AVAudioSessionConfiguration!
1413

0 commit comments

Comments
 (0)