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