mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
18 lines
548 B
Swift
18 lines
548 B
Swift
|
|
@objc
|
|
public final class SNMessagingKitConfiguration : NSObject {
|
|
public let storage: SessionMessagingKitStorageProtocol
|
|
|
|
@objc public static var shared: SNMessagingKitConfiguration!
|
|
|
|
fileprivate init(storage: SessionMessagingKitStorageProtocol) {
|
|
self.storage = storage
|
|
}
|
|
}
|
|
|
|
public enum SNMessagingKit { // Just to make the external API nice
|
|
|
|
public static func configure(storage: SessionMessagingKitStorageProtocol) {
|
|
SNMessagingKitConfiguration.shared = SNMessagingKitConfiguration(storage: storage)
|
|
}
|
|
}
|