|
|
@ -112,9 +112,10 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
|
|
|
|
|
|
|
|
|
|
|
|
DDLogWarn(@"%@ application: didFinishLaunchingWithOptions.", self.logTag);
|
|
|
|
DDLogWarn(@"%@ application: didFinishLaunchingWithOptions.", self.logTag);
|
|
|
|
|
|
|
|
|
|
|
|
// We need to do this _after_ we set up logging but _before_ we do
|
|
|
|
SetRandFunctionSeed();
|
|
|
|
// anything else.
|
|
|
|
|
|
|
|
[self ensureIsReadyForAppExtensions];
|
|
|
|
// XXX - careful when moving this. It must happen before we initialize TSStorageManager.
|
|
|
|
|
|
|
|
[self verifyDBKeysAvailableBeforeBackgroundLaunch];
|
|
|
|
|
|
|
|
|
|
|
|
#if RELEASE
|
|
|
|
#if RELEASE
|
|
|
|
// ensureIsReadyForAppExtensions may have changed the state of the logging
|
|
|
|
// ensureIsReadyForAppExtensions may have changed the state of the logging
|
|
|
@ -125,14 +126,14 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// We need to do this _after_ we set up logging, when the keychain is unlocked,
|
|
|
|
|
|
|
|
// but before we access YapDatabase, files on disk, or NSUserDefaults
|
|
|
|
|
|
|
|
[self ensureIsReadyForAppExtensions];
|
|
|
|
|
|
|
|
|
|
|
|
[AppVersion instance];
|
|
|
|
[AppVersion instance];
|
|
|
|
|
|
|
|
|
|
|
|
[self startupLogging];
|
|
|
|
[self startupLogging];
|
|
|
|
|
|
|
|
|
|
|
|
SetRandFunctionSeed();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// XXX - careful when moving this. It must happen before we initialize TSStorageManager.
|
|
|
|
|
|
|
|
[self verifyDBKeysAvailableBeforeBackgroundLaunch];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If a backup restore is in progress, try to complete it.
|
|
|
|
// If a backup restore is in progress, try to complete it.
|
|
|
|
// Otherwise, cleanup backup state.
|
|
|
|
// Otherwise, cleanup backup state.
|
|
|
|