Skip to content

Commit 7f0a160

Browse files
committed
tweaks in iOS imports
1 parent a34b0f7 commit 7f0a160

30 files changed

+7
-166
lines changed

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/AudioProcessingAdapter.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#import "include/stream_webrtc_flutter/AudioProcessingAdapter.h"
2-
#if TARGET_OS_IPHONE
32
#import <StreamWebRTC/RTCAudioRenderer.h>
4-
#elif TARGET_OS_MAC
5-
#import <WebRTC/RTCAudioRenderer.h>
6-
#endif
73
#import <os/lock.h>
84

95
@implementation AudioProcessingAdapter {

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/FlutterDataPacketCryptor.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
#import "include/stream_webrtc_flutter/FlutterDataPacketCryptor.h"
22
#import "include/stream_webrtc_flutter/FlutterRTCFrameCryptor.h"
33

4-
#if TARGET_OS_IPHONE
54
#import <StreamWebRTC/StreamWebRTC.h>
6-
#elif TARGET_OS_MAC
7-
#import <WebRTC/WebRTC.h>
8-
#endif
95
#import <objc/runtime.h>
106

117
@implementation FlutterWebRTCPlugin (DataPacketCryptor)

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/FlutterRTCDataChannel.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#import "include/stream_webrtc_flutter/FlutterRTCDataChannel.h"
2-
#if TARGET_OS_IPHONE
32
#import <StreamWebRTC/RTCDataChannelConfiguration.h>
4-
#elif TARGET_OS_MAC
5-
#import <WebRTC/RTCDataChannelConfiguration.h>
6-
#endif
73
#import <objc/runtime.h>
84
#import "include/stream_webrtc_flutter/FlutterRTCPeerConnection.h"
95

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/FlutterRTCDesktopCapturer.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
#import "include/stream_webrtc_flutter/FlutterRTCDesktopCapturer.h"
44

5-
#if TARGET_OS_IPHONE
65
#import <ReplayKit/ReplayKit.h>
76
#import "include/stream_webrtc_flutter/Broadcast/FlutterBroadcastScreenCapturer.h"
87
#import "include/stream_webrtc_flutter/FlutterRPScreenRecorder.h"
9-
#endif
10-
118
#import "include/stream_webrtc_flutter/LocalVideoTrack.h"
129
#import "include/stream_webrtc_flutter/VideoProcessingAdapter.h"
1310

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/FlutterRTCFrameCapturer.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
#if TARGET_OS_IPHONE
2-
#import <Flutter/Flutter.h>
3-
#elif TARGET_OS_OSX
4-
#import <FlutterMacOS/FlutterMacOS.h>
5-
#endif
6-
71
#import "include/stream_webrtc_flutter/FlutterRTCFrameCapturer.h"
2+
#import <Flutter/Flutter.h>
83

94
@import CoreImage;
105
@import CoreVideo;

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/FlutterRTCMediaRecorder.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#import "include/stream_webrtc_flutter/FlutterRTCMediaRecorder.h"
2-
#if TARGET_OS_IPHONE
32
#import <StreamWebRTC/StreamWebRTC.h>
4-
#elif TARGET_OS_MAC
5-
#import <WebRTC/WebRTC.h>
6-
#endif
73
#import "include/stream_webrtc_flutter/FlutterRTCAudioSink.h"
84
#import "include/stream_webrtc_flutter/FlutterRTCFrameCapturer.h"
95

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/FlutterRTCVideoRenderer.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22

33
#import <AVFoundation/AVFoundation.h>
44
#import <CoreGraphics/CGImage.h>
5-
#if TARGET_OS_IPHONE
65
#import <StreamWebRTC/RTCYUVHelper.h>
76
#import <StreamWebRTC/RTCYUVPlanarBuffer.h>
87
#import <StreamWebRTC/StreamWebRTC.h>
9-
#elif TARGET_OS_MAC
10-
#import <WebRTC/RTCYUVHelper.h>
11-
#import <WebRTC/RTCYUVPlanarBuffer.h>
12-
#import <WebRTC/WebRTC.h>
13-
#endif
148

159
#import <objc/runtime.h>
1610

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/FlutterWebRTCPlugin.m

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,28 @@
22
#import "include/stream_webrtc_flutter/AudioUtils.h"
33
#import "include/stream_webrtc_flutter/CameraUtils.h"
44

5+
#import "include/stream_webrtc_flutter/AudioManager.h"
56
#import "include/stream_webrtc_flutter/FlutterDataPacketCryptor.h"
67
#import "include/stream_webrtc_flutter/FlutterRTCDataChannel.h"
78
#import "include/stream_webrtc_flutter/FlutterRTCDesktopCapturer.h"
89
#import "include/stream_webrtc_flutter/FlutterRTCFrameCryptor.h"
10+
#import "include/stream_webrtc_flutter/FlutterRTCMediaRecorder.h"
911
#import "include/stream_webrtc_flutter/FlutterRTCMediaStream.h"
1012
#import "include/stream_webrtc_flutter/FlutterRTCPeerConnection.h"
13+
#import "include/stream_webrtc_flutter/FlutterRTCVideoPlatformViewController.h"
14+
#import "include/stream_webrtc_flutter/FlutterRTCVideoPlatformViewFactory.h"
1115
#import "include/stream_webrtc_flutter/FlutterRTCVideoRenderer.h"
1216
#import "include/stream_webrtc_flutter/ProcessorProvider.h"
1317
#import "include/stream_webrtc_flutter/VideoEffectProcessor.h"
1418
#import "include/stream_webrtc_flutter/VideoFrameProcessor.h"
15-
#if TARGET_OS_IPHONE
16-
#import "include/stream_webrtc_flutter/FlutterRTCMediaRecorder.h"
17-
#import "include/stream_webrtc_flutter/FlutterRTCVideoPlatformViewController.h"
18-
#import "include/stream_webrtc_flutter/FlutterRTCVideoPlatformViewFactory.h"
19-
#endif
20-
#import "include/stream_webrtc_flutter/AudioManager.h"
2119

2220
#import <AVFoundation/AVFoundation.h>
2321
#import <AVKit/AVKit.h>
2422

25-
#if TARGET_OS_IPHONE
2623
#import <StreamWebRTC/RTCCallbackLogger.h>
2724
#import <StreamWebRTC/RTCFieldTrials.h>
2825
#import <StreamWebRTC/RTCLogging.h>
2926
#import <StreamWebRTC/StreamWebRTC.h>
30-
#elif TARGET_OS_MAC
31-
#import <WebRTC/RTCCallbackLogger.h>
32-
#import <WebRTC/RTCFieldTrials.h>
33-
#import <WebRTC/RTCLogging.h>
34-
#import <WebRTC/WebRTC.h>
35-
#endif
3627

3728
#import "include/stream_webrtc_flutter/LocalAudioTrack.h"
3829
#import "include/stream_webrtc_flutter/LocalTrack.h"

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/VideoEffectProcessor.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#import "include/stream_webrtc_flutter/VideoEffectProcessor.h"
2-
#if TARGET_OS_IPHONE
32
#import <StreamWebRTC/RTCVideoCapturer.h>
4-
#elif TARGET_OS_MAC
5-
#import <WebRTC/RTCVideoCapturer.h>
6-
#endif
73

84
@implementation VideoEffectProcessor
95
- (instancetype)initWithProcessors:

ios/stream_webrtc_flutter/Sources/stream_webrtc_flutter/include/stream_webrtc_flutter/AudioManager.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#import <Foundation/Foundation.h>
2-
#if TARGET_OS_IPHONE
32
#import <StreamWebRTC/StreamWebRTC.h>
4-
#elif TARGET_OS_MAC
5-
#import <WebRTC/WebRTC.h>
6-
#endif
73
#import "AudioProcessingAdapter.h"
84

95
@interface AudioManager : NSObject

0 commit comments

Comments
 (0)