|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
#import <SignalMessaging/LockInteractionController.h>
|
|
|
|
|
#import <SignalMessaging/OWSPreferences.h>
|
|
|
|
|
#import <SignalMessaging/OWSSounds.h>
|
|
|
|
|
#import <SignalMessaging/SignalMessaging-Swift.h>
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
@ -26,15 +27,20 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
OWSAssertDebug(primaryStorage);
|
|
|
|
|
|
|
|
|
|
// TODO: We should probably mock this out.
|
|
|
|
|
OWSAudioSession *audioSession = [OWSAudioSession new];
|
|
|
|
|
LockInteractionController *lockInteractionController = [[LockInteractionController alloc] initDefault];
|
|
|
|
|
OWSPreferences *preferences = [OWSPreferences new];
|
|
|
|
|
OWSSounds *sounds = [[OWSSounds alloc] initWithPrimaryStorage:primaryStorage];
|
|
|
|
|
LockInteractionController *lockInteractionController = [[LockInteractionController alloc] initDefault];
|
|
|
|
|
id<OWSProximityMonitoringManager> proximityMonitoringManager = [OWSProximityMonitoringManagerImpl new];
|
|
|
|
|
OWSWindowManager *windowManager = [[OWSWindowManager alloc] initDefault];
|
|
|
|
|
|
|
|
|
|
self = [super initWithPreferences:preferences
|
|
|
|
|
sounds:sounds
|
|
|
|
|
lockInteractionController:lockInteractionController
|
|
|
|
|
windowManager:windowManager];
|
|
|
|
|
self = [super initWithAudioSession:audioSession
|
|
|
|
|
lockInteractionController:lockInteractionController
|
|
|
|
|
preferences:preferences
|
|
|
|
|
proximityMonitoringManager:proximityMonitoringManager
|
|
|
|
|
sounds:sounds
|
|
|
|
|
windowManager:windowManager];
|
|
|
|
|
|
|
|
|
|
OWSAssertDebug(self);
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|