mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Added the ability to define requirements for migrations (in case some data or state needs to be loaded for a migration to be able to be performed correctly)
13 lines
312 B
Swift
13 lines
312 B
Swift
// Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
|
|
import Foundation
|
|
|
|
public enum MigrationRequirement: CaseIterable {
|
|
case sessionUtilStateLoaded
|
|
|
|
var shouldProcessAtCompletionIfNotRequired: Bool {
|
|
switch self {
|
|
case .sessionUtilStateLoaded: return true
|
|
}
|
|
}
|
|
}
|