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.
25 lines
1.0 KiB
Swift
25 lines
1.0 KiB
Swift
import SessionMessagingKit
|
|
import SessionProtocolKit
|
|
import SessionSnodeKit
|
|
|
|
@objc(SNConfiguration)
|
|
final class Configuration : NSObject {
|
|
|
|
@objc static func performMainSetup() {
|
|
SNMessagingKit.configure(
|
|
storage: Storage.shared,
|
|
messageSenderDelegate: MessageSenderDelegate.shared,
|
|
messageReceiverDelegate: MessageReceiverDelegate.shared,
|
|
signalStorage: OWSPrimaryStorage.shared(),
|
|
identityKeyStore: OWSIdentityManager.shared(),
|
|
sessionRestorationImplementation: SessionRestorationImplementation(),
|
|
certificateValidator: SMKCertificateDefaultValidator(trustRoot: OWSUDManagerImpl.trustRoot()),
|
|
openGroupAPIDelegate: OpenGroupAPIDelegate.shared,
|
|
pnServerURL: PushNotificationAPI.server,
|
|
pnServerPublicKey: PushNotificationAPI.serverPublicKey
|
|
)
|
|
SessionProtocolKit.configure(storage: Storage.shared, sharedSenderKeysDelegate: MessageSenderDelegate.shared)
|
|
SessionSnodeKit.configure(storage: Storage.shared)
|
|
}
|
|
}
|