Skip to content

Commit

Permalink
Add Migration manager (#176)
Browse files Browse the repository at this point in the history
* Add Migration manager

* Refactoring migration manager/publisher

* Update MigrationStateModel.swift

* Update MigrationRootView.swift

* Update MigrationTool logic

* Update MigrationTool
  • Loading branch information
DobbyWanKenoby authored and Vasiliy Usov committed Dec 29, 2023
1 parent 37b849a commit 5c54ff0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions FreeAPS/Sources/Services/Migration/MigrationManager.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
Main Migration tool of App
*/

import Combine
import Foundation
import SwiftUI
Expand Down
5 changes: 0 additions & 5 deletions FreeAPS/Sources/Services/Migration/MigrationPublisher.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
This file store code for working Migration manager with Combine
This is only combine's wrapper for Migration manager
*/

import Combine
import Foundation
import SwiftUI
Expand Down
9 changes: 0 additions & 9 deletions FreeAPS/Sources/Services/Migration/MigrationWorkItem.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/**
This file contains WorkItems with migration tasks
Each WorkItem have to execute one migration task
Each WorkItem can be run in Migration.StateModel.runMigration()
...
.migrate(startAtVersion: "0.2.6", MigrationWorkExample())
...
*/

import Foundation

protocol MigrationWorkItem {
Expand Down

0 comments on commit 5c54ff0

Please sign in to comment.