mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Moved the JobRunner into SessionUtilitiesKit so it can be used by SessionSnodeKit Exposed a 'sharedLokiProject' value on UserDefaults to remove the hard-coded group name used everywhere Added "blocking" job support for 'OnLaunch' and 'OnActive' jobs to the JobRunner (will retry until it succeeds) Added the UpdateProfilePicture and RetrieveDefaultOpenGroupRooms jobs
31 lines
836 B
Swift
31 lines
836 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
import SessionUtilitiesKit
|
|
|
|
public struct SNSnodeKitConfiguration {
|
|
internal static var shared: SNSnodeKitConfiguration!
|
|
}
|
|
|
|
public enum SNSnodeKit { // Just to make the external API nice
|
|
public static func migrations() -> TargetMigrations {
|
|
return TargetMigrations(
|
|
identifier: .snodeKit,
|
|
migrations: [
|
|
[
|
|
_001_InitialSetupMigration.self,
|
|
_002_SetupStandardJobs.self
|
|
],
|
|
[
|
|
_003_YDBToGRDBMigration.self
|
|
]
|
|
]
|
|
)
|
|
}
|
|
|
|
public static func configure() {
|
|
// Configure the job executors
|
|
JobRunner.add(executor: GetSnodePoolJob.self, for: .getSnodePool)
|
|
}
|
|
}
|