2017-12-07 19:53:13 +01:00
|
|
|
//
|
2018-04-23 21:49:20 +02:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-12-07 19:53:13 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2022-03-24 00:03:51 +01:00
|
|
|
typedef void (^OWSDatabaseMigrationCompletion)(BOOL success, BOOL requiresConfigurationSync);
|
|
|
|
|
2017-12-07 19:53:13 +01:00
|
|
|
// This is _NOT_ a singleton and will be instantiated each time that the SAE is used.
|
|
|
|
@interface AppSetup : NSObject
|
|
|
|
|
2018-09-17 15:27:58 +02:00
|
|
|
+ (void)setupEnvironmentWithAppSpecificSingletonBlock:(dispatch_block_t)appSpecificSingletonBlock
|
2022-03-24 00:03:51 +01:00
|
|
|
migrationCompletion:(OWSDatabaseMigrationCompletion)migrationCompletion;
|
2017-12-07 19:53:13 +01:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|