mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
Objective-C
47 lines
1.5 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <SignalServiceKit/SSKEnvironment.h>
|
|
|
|
@class LockInteractionController;
|
|
@class OWSContactsManager;
|
|
@class OWSPreferences;
|
|
@class OWSSounds;
|
|
@class OWSSyncManager;
|
|
@class OWSWindowManager;
|
|
|
|
/**
|
|
*
|
|
* Environment is a data and data accessor class.
|
|
* It handles application-level component wiring in order to support mocks for testing.
|
|
* It also handles network configuration for testing/deployment server configurations.
|
|
*
|
|
**/
|
|
// TODO: Rename to AppEnvironment?
|
|
@interface Environment : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithPreferences:(OWSPreferences *)preferences
|
|
syncManager:(OWSSyncManager *)syncManager
|
|
sounds:(OWSSounds *)sounds
|
|
lockInteractionController:(LockInteractionController *)lockInteractionController
|
|
windowManager:(OWSWindowManager *)windowManager;
|
|
|
|
@property (nonatomic, readonly) OWSContactsManager *contactsManager;
|
|
@property (nonatomic, readonly) OWSPreferences *preferences;
|
|
@property (nonatomic, readonly) OWSSyncManager *syncManager;
|
|
@property (nonatomic, readonly) OWSSounds *sounds;
|
|
@property (nonatomic, readonly) LockInteractionController *lockInteractionController;
|
|
@property (nonatomic, readonly) OWSWindowManager *windowManager;
|
|
|
|
@property (class, nonatomic) Environment *shared;
|
|
|
|
#ifdef DEBUG
|
|
// Should only be called by tests.
|
|
+ (void)clearSharedForTests;
|
|
#endif
|
|
|
|
@end
|