mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
14 lines
579 B
Swift
14 lines
579 B
Swift
|
|
public struct SNProtocolKitConfiguration {
|
|
public let storage: SessionProtocolKitStorageProtocol
|
|
public let sharedSenderKeysDelegate: SharedSenderKeysDelegate
|
|
|
|
internal static var shared: SNProtocolKitConfiguration!
|
|
}
|
|
|
|
public enum SNProtocolKit { // Just to make the external API nice
|
|
|
|
public static func configure(storage: SessionProtocolKitStorageProtocol, sharedSenderKeysDelegate: SharedSenderKeysDelegate) {
|
|
SNProtocolKitConfiguration.shared = SNProtocolKitConfiguration(storage: storage, sharedSenderKeysDelegate: sharedSenderKeysDelegate)
|
|
}
|
|
}
|