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.
|
|
|
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import GRDB
|
|
|
|
import SessionUtilitiesKit
|
|
|
|
|
|
|
|
public enum SNUIKit: MigratableTarget {
|
|
|
|
internal static let mainWindow: Atomic<UIWindow?> = Atomic(nil)
|
|
|
|
|
|
|
|
public static func migrations() -> TargetMigrations {
|
|
|
|
return TargetMigrations(
|
|
|
|
identifier: .uiKit,
|
|
|
|
migrations: [
|
|
|
|
// Want to ensure the initial DB stuff has been completed before doing any
|
|
|
|
// SNUIKit migrations
|
|
|
|
[], // Initial DB Creation
|
|
|
|
[], // YDB to GRDB Migration
|
|
|
|
[], // Legacy DB removal
|
|
|
|
[
|
|
|
|
_001_ThemePreferences.self
|
|
|
|
], // Add job priorities
|
|
|
|
[], // Fix thread FTS
|
|
|
|
[]
|
|
|
|
]
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
public static func configure() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public static func setMainWindow(_ mainWindow: UIWindow) {
|
|
|
|
SNUIKit.mainWindow.mutate { $0 = mainWindow }
|
|
|
|
}
|
|
|
|
}
|