mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
21 lines
711 B
Swift
21 lines
711 B
Swift
|
|
@objc(SNUtilitiesKitConfiguration)
|
|
public final class Configuration : NSObject {
|
|
@objc public let owsPrimaryStorage: OWSPrimaryStorageProtocol
|
|
public let maxFileSize: UInt
|
|
|
|
@objc public static var shared: Configuration!
|
|
|
|
fileprivate init(owsPrimaryStorage: OWSPrimaryStorageProtocol, maxFileSize: UInt) {
|
|
self.owsPrimaryStorage = owsPrimaryStorage
|
|
self.maxFileSize = maxFileSize
|
|
}
|
|
}
|
|
|
|
public enum SessionUtilitiesKit { // Just to make the external API nice
|
|
|
|
public static func configure(owsPrimaryStorage: OWSPrimaryStorageProtocol, maxFileSize: UInt) {
|
|
Configuration.shared = Configuration(owsPrimaryStorage: owsPrimaryStorage, maxFileSize: maxFileSize)
|
|
}
|
|
}
|