Signal-iOS/SignalMessaging/environment/AppSetup.h
2021-11-03 19:48:48 -07:00

24 lines
886 B
Objective-C

//
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
@protocol MobileCoinHelper;
@protocol PaymentsEvents;
@protocol WebSocketFactory;
// This is _NOT_ a singleton and will be instantiated each time that the SAE is used.
@interface AppSetup : NSObject
+ (void)setupEnvironmentWithPaymentsEvents:(id<PaymentsEvents>)paymentsEvents
mobileCoinHelper:(id<MobileCoinHelper>)mobileCoinHelper
webSocketFactory:(id<WebSocketFactory>)webSocketFactory
appSpecificSingletonBlock:(dispatch_block_t)appSpecificSingletonBlock
migrationCompletion:(void (^)(NSError *_Nullable error))migrationCompletion
NS_SWIFT_NAME(setupEnvironment(paymentsEvents:mobileCoinHelper:webSocketFactory:appSpecificSingletonBlock:migrationCompletion:));
@end
NS_ASSUME_NONNULL_END