mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
5285d81177
Sorted out some more threading issues Removed a redundant SyncPushTokensJob run Fixed an issue where the NotificationServiceExtension could incorrectly setup the database before setting up it's context Fixed a few warnings Removed a bunch of legacy code Refactored the MainAppContext from Objective C into Swift
17 lines
502 B
Swift
17 lines
502 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
import SessionUIKit
|
|
import SessionSnodeKit
|
|
import SessionMessagingKit
|
|
import SessionUtilitiesKit
|
|
|
|
public enum Configuration {
|
|
public static func performMainSetup() {
|
|
// Need to do this first to ensure the legacy database exists
|
|
SNUtilitiesKit.configure(maxFileSize: UInt(FileServerAPI.maxFileSize))
|
|
SNMessagingKit.configure()
|
|
SNSnodeKit.configure()
|
|
SNUIKit.configure()
|
|
}
|
|
}
|