Manages blocks of code that need to run once on version updates in iOS apps. This could be anything from data normalization routines, "What's New In This Version" screens, or bug fixes.
This is the Swift version of MTMigration.
Migration
could be installed via Swift Package Manager. Open Xcode and go to File -> Add Packages..., search https://github.com/hengyu/Migration.git
, and add the package as one of your project's dependency.
Migration.applicationUpdate {
// do your migration code here
self.cache.clear()
self.preferenceStore.reset()
}
Migration assumes version numbers are incremented in a logical way, i.e. 1.0.1 -> 1.0.2, 1.1 -> 1.2, etc.
Migration is released under the MIT License.
link |
Stars: 2 |
Last commit: 19 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics