mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Swift
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Swift
		
	
| // Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
 | |
| 
 | |
| import Foundation
 | |
| import GRDB
 | |
| import SessionUtilitiesKit
 | |
| 
 | |
| open class SSKDependencies: Dependencies {
 | |
|     public var _onionApi: Atomic<OnionRequestAPIType.Type?>
 | |
|     public var onionApi: OnionRequestAPIType.Type {
 | |
|         get { Dependencies.getValueSettingIfNull(&_onionApi) { OnionRequestAPI.self } }
 | |
|         set { _onionApi.mutate { $0 = newValue } }
 | |
|     }
 | |
|     
 | |
|     // MARK: - Initialization
 | |
|     
 | |
|     public init(
 | |
|         queue: DispatchQueue? = nil,
 | |
|         onionApi: OnionRequestAPIType.Type? = nil,
 | |
|         generalCache: Atomic<GeneralCacheType>? = nil,
 | |
|         storage: Storage? = nil,
 | |
|         scheduler: ValueObservationScheduler? = nil,
 | |
|         standardUserDefaults: UserDefaultsType? = nil,
 | |
|         date: Date? = nil
 | |
|     ) {
 | |
|         _onionApi = Atomic(onionApi)
 | |
|         
 | |
|         super.init(
 | |
|             queue: queue,
 | |
|             generalCache: generalCache,
 | |
|             storage: storage,
 | |
|             scheduler: scheduler,
 | |
|             standardUserDefaults: standardUserDefaults,
 | |
|             date: date
 | |
|         )
 | |
|     }
 | |
| }
 |