2020-11-05 07:04:39 +01:00
|
|
|
|
|
|
|
public struct Configuration {
|
|
|
|
public let storage: SessionProtocolKitStorageProtocol
|
|
|
|
public let sharedSenderKeysDelegate: SharedSenderKeysDelegate
|
|
|
|
|
|
|
|
internal static var shared: Configuration!
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum SessionProtocolKit { // Just to make the external API nice
|
|
|
|
|
2020-11-11 23:30:03 +01:00
|
|
|
public static func configure(storage: SessionProtocolKitStorageProtocol, sharedSenderKeysDelegate: SharedSenderKeysDelegate) {
|
|
|
|
Configuration.shared = Configuration(storage: storage, sharedSenderKeysDelegate: sharedSenderKeysDelegate)
|
2020-11-05 07:04:39 +01:00
|
|
|
}
|
|
|
|
}
|